From 4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Thu, 8 May 2014 15:06:07 -0400 Subject: [PATCH] HACKING: Add notes on packaging, cross-compiling --- HACKING.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/HACKING.md b/HACKING.md index 20ccb318..bea8d0eb 100644 --- a/HACKING.md +++ b/HACKING.md @@ -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