windows: build win32 subprocess file on windows
authorEvan Martin <martine@danga.com>
Tue, 3 May 2011 04:43:18 +0000 (21:43 -0700)
committerEvan Martin <martine@danga.com>
Tue, 3 May 2011 04:43:18 +0000 (21:43 -0700)
gen-build-file.py

index c0f58c7705222713744697685c802ac16fc185e3..399dc623b0641e7a30e2239551765ecef34f76ad 100755 (executable)
@@ -103,12 +103,13 @@ if platform not in ('mingw'):
 
 n.comment('Core source files all build into ninja library.')
 for name in ['build', 'build_log', 'clean', 'eval_env', 'graph', 'graphviz',
-             'parsers', 'util', 'subprocess',
+             'parsers', 'util',
              'ninja_jumble']:
-    if platform == 'mingw' and name == 'subprocess':
-        # TODO: merge subprocess port
-        continue
     objs += cxx(name)
+if platform == 'mingw':
+    objs += cxx('subprocess-win32')
+else:
+    objs += cxx('subprocess')
 ninja_lib = n.build(built('libninja.a'), 'ar', objs)
 n.newline()