From 057ae707985d672d6a0dbed05b88a2063811c18f Mon Sep 17 00:00:00 2001 From: stevenknight Date: Wed, 3 Mar 2004 05:33:29 +0000 Subject: [PATCH] Win32 portability. git-svn-id: http://scons.tigris.org/svn/scons/trunk@912 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- test/QT.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } """) -- 2.26.2