summaryrefslogtreecommitdiffstats
path: root/HACKING
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-06 21:24:02 (GMT)
committerEvan Martin <martine@danga.com>2011-05-06 21:24:02 (GMT)
commit464cfad8b8c025937f1d7c899c7af28578c9f675 (patch)
treebaa9d5489efe9ad9efbcdca3bf539dff9c310652 /HACKING
parent2f289b8b361349a3d53dd6299bc677f18c0771f5 (diff)
downloadNinja-464cfad8b8c025937f1d7c899c7af28578c9f675.zip
Ninja-464cfad8b8c025937f1d7c899c7af28578c9f675.tar.gz
Ninja-464cfad8b8c025937f1d7c899c7af28578c9f675.tar.bz2
amend HACKING with how to dev for windows
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING11
1 files changed, 11 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index f146546..ff22519 100644
--- a/HACKING
+++ b/HACKING
@@ -32,3 +32,14 @@ Documentation guidelines:
- It's not necessary to document each argument, especially when they're
relatively self-evident (e.g. in CanonicalizePath(string* path, string* err),
the arguments are hopefully obvious)
+
+Windows development:
+- sudo apt-get install gcc-mingw32 wine
+- NINJA_PLATFORM=mingw ./gen-build-file.py > build.ninja
+- Build gtest:
+ - unpack it into your source dir
+ - ./configure CC=i586-mingw32msvc-cc CXX=i586-mingw32msvc-c++
+ - 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(!))