Win32 portability.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Mar 2004 05:33:29 +0000 (05:33 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Mar 2004 05:33:29 +0000 (05:33 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@912 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/QT.py

index a46d3ef640aa04e5bfe53e9e91a509f199667642..8fe6e2a572d1eabfbe6aa07cc33d0f9e0ed739c0 100644 (file)
@@ -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
 }
 """)