summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-02 05:35:27 (GMT)
committerEvan Martin <martine@danga.com>2011-12-02 05:36:19 (GMT)
commited53e89795ade2ff069a189b7c88ad153f9ee400 (patch)
tree288dcf8e69e34b97b9d9eb1823c047308831943b /HACKING
parent70623a8dce092fb2bf182583d86ff56440355df9 (diff)
downloadNinja-ed53e89795ade2ff069a189b7c88ad153f9ee400.zip
Ninja-ed53e89795ade2ff069a189b7c88ad153f9ee400.tar.gz
Ninja-ed53e89795ade2ff069a189b7c88ad153f9ee400.tar.bz2
HACKING: windows notes
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING11
1 files changed, 10 insertions, 1 deletions
diff --git a/HACKING b/HACKING
index 1650eb5..fc7712a 100644
--- a/HACKING
+++ b/HACKING
@@ -35,15 +35,24 @@ Generating the manual:
Windows development on Linux (this is kind of hacky right now):
- sudo apt-get install gcc-mingw32 wine
+- export CC=i586-mingw32msvc-cc CXX=i586-mingw32msvc-c++ AR=i586-mingw32msvc-ar
- ./configure.py --platform=mingw
- Build gtest:
- unpack it into your source dir
- - ./configure CC=i586-mingw32msvc-cc CXX=i586-mingw32msvc-c++
+ - ./configure
- to work around missing _TlsAlloc I had to hack the libtool script to
append -lmingw32 -lkernel32 at the *end* of the link line
- Build ninja: /path/to/linux/ninja ninja
- Run: ./ninja (implicitly runs through wine(!))
+Windows development on Windows:
+- install mingw, msys, and python
+- in the mingw shell, put Python in your path, and: sh bootstrap.sh
+- to reconfigure, run 'python configure.py'
+- remember to strip the resulting executable if size matters to you
+- you'll need to rename ninja.exe into my-ninja.exe during development,
+ otherwise ninja won't be able to overwrite itself when building
+
Using clang:
- Enable colors manually:
CXX='/path/to/llvm/Release+Asserts/bin/clang++ -fcolor-diagnostics' ./configure.py