diff options
author | Evan Martin <martine@danga.com> | 2011-05-06 21:24:02 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-05-06 21:24:02 (GMT) |
commit | 464cfad8b8c025937f1d7c899c7af28578c9f675 (patch) | |
tree | baa9d5489efe9ad9efbcdca3bf539dff9c310652 /HACKING | |
parent | 2f289b8b361349a3d53dd6299bc677f18c0771f5 (diff) | |
download | Ninja-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-- | HACKING | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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(!)) |