From ed53e89795ade2ff069a189b7c88ad153f9ee400 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Thu, 1 Dec 2011 21:35:27 -0800 Subject: [PATCH] HACKING: windows notes --- HACKING | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.7.4