win32 build fixes

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-06-07 11:38:45 +01:00
1 parent f57af0bd74
commit a3639efe18
2 files changed
+10 -6

No files matched your search

+3 -2
View File
@@ -8,8 +8,9 @@ import Task
def build(bld):
bindgen = bld.create_obj('command-output')
bindgen.stdout = 'foomodule.cc'
bindgen.stdin = 'foomodulegen.py'
bindgen.command = 'foomodulegen.py'
bindgen.argv = [bindgen.input_file('foomodulegen.py')]
bindgen.command = 'python'
bindgen.command_is_external = True
bindgen.prio = 3 # must run after the 'py' objects in ../pybindgen
obj = bld.create_obj('cpp', 'shlib', 'pyext')
+7 -4
View File
@@ -7,17 +7,20 @@ import pproc as subprocess
def build(bld):
top_srcdir = bld.m_srcnode.abspath()
gen = bld.create_obj('command-output')
gen.command = 'test-generation.py'
gen.stdout = 'test.cc'
gen.stdin = 'test-generation.py'
top_srcdir = bld.m_srcnode.abspath()
gen.argv = [top_srcdir]
gen.argv = [gen.input_file('test-generation.py'), top_srcdir]
gen.command = 'python'
gen.command_is_external = True
gen.prio = 5
obj = bld.create_obj('cpp', 'objects', 'pyext')
obj.source = 'test.cc'
obj.env.append_value('CXXFLAGS', ['-Wall', '-Werror', '-Wno-unused'])
if os.path.basename(obj.env['CXX']).startswith("g++"):
obj.env.append_value('CXXFLAGS', ['-Wall', '-Werror', '-Wno-unused'])
cwd = os.getcwd()
os.chdir(top_srcdir)