# 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)