to get the path to the SDK include directory (so our test program can
#include <windows.h>).
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4498
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
test.write('src/SConscript',"""
import os
-env = Environment()
+# 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(CPPPATH=os.environ.get('INCLUDE', ''),
LIBPATH=os.environ.get('LIB', ''))
env['PCH'] = 'StdAfx.pch'
test.write('SConstruct',"""
import os
-env = Environment()
+# 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(CPPPATH=os.environ.get('INCLUDE', ''),
LIBPATH=os.environ.get('LIB', ''),
CCFLAGS='/DPCHDEF')