scons_gd/scons/test/MSVC/msvc_fixture/SConstruct
2022-10-15 16:06:26 +02:00

15 lines
519 B
Python

# msvc_fixture's SConstruct
DefaultEnvironment(tools=[])
# TODO: this is order-dependent (putting 'mssdk' second or third breaks),
# and ideally we shouldn't need to specify the tools= list anyway.
env = Environment(tools=['mssdk', 'msvc', 'mslink'])
env.Append(CCFLAGS='/DPCHDEF')
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = 'StdAfx.h'
env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', ['test.cpp', env.RES('test.rc')], LIBS=['user32'])
env.Object('fast', 'foo.cpp')
env.Object('slow', 'foo.cpp', PCH=0)