mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-02-14 17:00:20 +01:00
15 lines
519 B
Python
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)
|