Skip to content

Commit

Permalink
HACKING: Add notes on packaging, cross-compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jonls committed May 8, 2014
1 parent 241eff8 commit 4a19866
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a19866

Please sign in to comment.