diff options
author | Steven Knight <knight@baldmt.com> | 2004-03-03 05:33:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-03-03 05:33:29 (GMT) |
commit | 6fce63a2480ff7231ca56e88883828f8901ad38f (patch) | |
tree | 3a65ea7942a7b4f5e8ff2e9966b8b46485b91b33 | |
parent | cb489b3e8f8587f60b4f2bf25cbd737803b55eb0 (diff) | |
download | SCons-6fce63a2480ff7231ca56e88883828f8901ad38f.zip SCons-6fce63a2480ff7231ca56e88883828f8901ad38f.tar.gz SCons-6fce63a2480ff7231ca56e88883828f8901ad38f.tar.bz2 |
Win32 portability.
-rw-r--r-- | test/QT.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 } """) |