From 6fce63a2480ff7231ca56e88883828f8901ad38f Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Wed, 3 Mar 2004 05:33:29 +0000 Subject: Win32 portability. --- test/QT.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/QT.py b/test/QT.py index a46d3ef..8fe6e2a 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 } """) -- cgit v0.12