aboutsummaryrefslogtreecommitdiffstats
path: root/HACKING.md
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2014-05-08 15:06:07 -0400
committerJon Lund Steffensen <jonlst@gmail.com>2014-05-08 15:06:07 -0400
commit4a198668d7a6b743d8dc0cc37cf7da67d1bcea0a (patch)
treeb52b6f14880fa181543e16d7b43120426465779a /HACKING.md
parentredshift-gtk: Notify desktop about startup completion (diff)
downloadredshift-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.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/HACKING.md b/HACKING.md
index 20ccb31..bea8d0e 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