diff options
-rw-r--r-- | HACKING.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -71,6 +71,7 @@ note are: * Avoid Yoda conditions; they make the logic unnecessarily hard to comprehend. * Avoid multiline if-statements without braces; either use a single line or add the braces. +* Use only C-style comments (`/* */`). Creating a pull request @@ -135,6 +136,31 @@ Also remember to check before release that * Build files for distributions are updated +Build Fedora RPMs +----------------- + +Run `make dist-xz` and copy the `.tar.xz` file to `~/rpmbuild/SOURCES`. Then run + +``` shell +$ rpmbuild -ba contrib/redshift.spec +``` + +If successful this will place RPMs in `~/rpmbuild/RPMS`. + + +Cross-compile for Windows +------------------------- + +Install MinGW and run `configure` using the following command line. Use +`i686-w64-migw32` as host for 32-bit builds. + +``` shell +$ ./configure --disable-drm --disable-randr --disable-vidmode --enable-wingdi \ + --disable-geoclue --disable-gui --disable-ubuntu \ + --host=x86_64-w64-mingw32 +``` + + Notes ----- * verbose flag is (currently) only held in redshift.c; thus, write all |