From fae4d63821c96b954d47dd0520d82f21caa757ee Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Mon, 8 Oct 2012 16:30:27 -0700 Subject: update mingw docs for ubuntu precise --- HACKING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HACKING.md b/HACKING.md index a777b57..885d2d7 100644 --- a/HACKING.md +++ b/HACKING.md @@ -159,8 +159,15 @@ it's locked while in use. ### Via mingw on Linux (not well supported) +Setup on Ubuntu Lucid: * `sudo apt-get install gcc-mingw32 wine` * `export CC=i586-mingw32msvc-cc CXX=i586-mingw32msvc-c++ AR=i586-mingw32msvc-ar` + +Setup on Ubuntu Precise: +* `sudo apt-get install gcc-mingw-w64-i686 g++-mingw-w64-i686 wine` +* `export CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ AR=i686-w64-mingw32-ar` + +Then run: * `./configure.py --platform=mingw --host=linux` * Build `ninja.exe` using a Linux ninja binary: `/path/to/linux/ninja` * Run: `./ninja.exe` (implicitly runs through wine(!)) -- cgit v0.12