diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-05-08 15:06:07 -0400 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-05-08 15:06:07 -0400 |
commit | 4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a (patch) | |
tree | b52b6f14880fa181543e16d7b43120426465779a /HACKING.md | |
parent | redshift-gtk: Notify desktop about startup completion (diff) | |
download | redshift-ng-4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a.tar.gz redshift-ng-4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a.tar.bz2 redshift-ng-4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a.tar.xz |
HACKING: Add notes on packaging, cross-compiling
Diffstat (limited to '')
-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 |