HACKING: windows notes
authorEvan Martin <martine@danga.com>
Fri, 2 Dec 2011 05:35:27 +0000 (21:35 -0800)
committerEvan Martin <martine@danga.com>
Fri, 2 Dec 2011 05:36:19 +0000 (21:36 -0800)
HACKING

diff --git a/HACKING b/HACKING
index 1650eb5c8c0d34943583bb26ea4d661850d3274b..fc7712a080bb482f067629471205f5eedc1494ab 100644 (file)
--- 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