summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJon <jon.forums@gmail.com>2012-09-20 14:05:11 (GMT)
committerJon <jon.forums@gmail.com>2012-09-20 14:05:11 (GMT)
commit3b3e1c831cc49d8c02928aaad7683c820cce9400 (patch)
tree993c5b27b81e96c041bb9d0ef7a40d84110e0cc9 /configure.py
parente6c8bd91c22b64374aa7a1c84ae0a462f4fe2896 (diff)
downloadNinja-3b3e1c831cc49d8c02928aaad7683c820cce9400.zip
Ninja-3b3e1c831cc49d8c02928aaad7683c820cce9400.tar.gz
Ninja-3b3e1c831cc49d8c02928aaad7683c820cce9400.tar.bz2
Give MinGW builds MSVC build helper superpowers
Note: _WIN32 is used instead of WIN32 to enable builds with MSVC IDE, Windows SDK non-IDE command line tools, and mingw/mingw-w64 based toolchains
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.py b/configure.py
index 98274e6..e458605 100755
--- a/configure.py
+++ b/configure.py
@@ -277,11 +277,12 @@ for name in ['build',
'util']:
objs += cxx(name)
if platform in ('mingw', 'windows'):
- objs += cxx('subprocess-win32')
+ for name in ['subprocess-win32',
+ 'includes_normalize-win32',
+ 'msvc_helper-win32',
+ 'msvc_helper_main-win32']:
+ objs += cxx(name)
if platform == 'windows':
- objs += cxx('includes_normalize-win32')
- objs += cxx('msvc_helper-win32')
- objs += cxx('msvc_helper_main-win32')
objs += cxx('minidump-win32')
objs += cc('getopt')
else:
@@ -349,7 +350,7 @@ for name in ['build_log_test',
'test',
'util_test']:
objs += cxx(name, variables=[('cflags', test_cflags)])
-if platform == 'windows':
+if platform in ('windows', 'mingw'):
for name in ['includes_normalize_test', 'msvc_helper_test']:
objs += cxx(name, variables=[('cflags', test_cflags)])