For example, add period for all comments and printed text, add \n yourself for logging. There are still some coding style clang-format cannot change, please keep the same as existing code.It will keep most coding style consistent. clang-format for this project, please run clang-format yourself before committing something. When you are coding please use Linux kernel coding style.Try not to pull new dependency into project other than SDL2 and SDL2_ttf, it's too brain damage to add dependency when building on Windows, building on this platform is a disaster and packaging on this platform is a mistery.Do use preprocessor ( _WIN32, _ANDROID_, _linux_) for platform-dependent code. Try to use C standard functions only and first, until you are implementing some platform-dependent features that libc does not support.If your comment is longer than Column 80, break it into block comment with /* */ (but don't break lone URL, it's fine), don't use // for block comment. Comments should always occupy a new line. If you are writing multi-line comment, please use the same style with existing comments.If you want some features and you can implement it, a PR is always welcome, but there are some rules or personal habits: On Windows, program will use nf under the same directory as program.įnf will be automatically created if program does not find it, so please run program once before editing configuration file. On Linux, program will first use $XDG_CONFIG_HOME/nf, if XDG_CONFIG_HOME is not set, it will use $HOME/.config/nf.
When Configure finished, press Generate, then press Open Project to open Visual Studio.When Configure failed again, fill SDL2_TTF_DIR to where you extract SDL2_ttf devel files, then press Configure again. When Configure failed, set CMAKE_INSTALL_PREFIX to where you want to save all runtime files, fill SDL2_DIR to where you extract SDL2 devel files, then press Configure again.Open CMake GUI, select source as this project, then choose build path, press Configure and Finish.Please refer to deps/README.md for links. Download SDL2 and SDL2_ttf devel files and extract.Go to flipclock dir under your prefix directory, you can now find flipclock.scr and right click it to install it as a screensaver.You can change prefix argument to other path you created in Step 2, but you need to use UNIX style slash instead of backslash because it's escape character in C. Run mkdir build & cd build & meson setup -prefix=d:/flipclock-prefix -buildtype=release. Change dir to where you put this project.Open 圆4 Native Tools Command Prompt for VS 2019 from Start Menu, or other architectures you need.Create a prefix directory, for example d:/flipclock-prefix, program files will be installed into it.But thanks to Meson which handles all dirty things for me, it's SDL2 wrap works now and I managed to tweak it to build a static linked program automatically if no pre-built dependency found.
Windows is a horrible platform for developers: no package manager for easy distribution, slowly visual studio, complicated tool chains. It might be not so easy for some windows users to understand how complicated building static libraries is and what dynamically libraries are. This user knows nothing about compiling, linking and loading. NOTICE: I saw a windows user says "This program has dlls in its folder so it's not simple!" and I got angry.
Just download file with win in its name from lastest release page, extract it and right click flipclock.scr to install it as a screensaver.