From: stevenknight Date: Wed, 3 Mar 2004 05:33:29 +0000 (+0000) Subject: Win32 portability. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=057ae707985d672d6a0dbed05b88a2063811c18f;p=scons.git Win32 portability. git-svn-id: http://scons.tigris.org/svn/scons/trunk@912 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/QT.py b/test/QT.py index a46d3ef6..8fe6e2a5 100644 --- a/test/QT.py +++ b/test/QT.py @@ -343,7 +343,7 @@ createSConstruct(test, ['work5', 'SConstruct']) test.write( ['work5', 'SConscript'], """ Import("env") env = env.Copy(tools=['qt']) -env.Program('main', 'main.cpp', CXXFLAGS=['-g'], LIBS=[]) +env.Program('main', 'main.cpp', CPPDEFINES=['FOO'], LIBS=[]) """) test.write(['work5', 'main.cpp'], r""" @@ -356,7 +356,9 @@ test.write(['qt', 'include', 'foo5.h'], """\ void foo5(void) { +#ifdef FOO printf("qt/include/foo5.h\\n"); +#endif } """) @@ -376,7 +378,7 @@ env = orig.Copy(QTDIR = r'%s', QT_MOC = r'%s', QT_UIC = r'%s', tools=['qt']) -env.Program('main', 'main.cpp', CXXFLAGS=['-g'], LIBS=[]) +env.Program('main', 'main.cpp', CPPDEFINES=['FOO'], LIBS=[]) """ % (QT, QT_LIB, QT_MOC, QT_UIC)) test.write(['work6', 'main.cpp'], r""" @@ -389,7 +391,9 @@ test.write(['qt', 'include', 'foo6.h'], """\ void foo6(void) { +#ifdef FOO printf("qt/include/foo6.h\\n"); +#endif } """)