annotate tests/core_tests/SConscript @ 42:4c8334b0ab30

switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 13 Jul 2008 07:43:33 +0000
parents 4a0efb7baf70
children 5a2db5e7ab54
rev   line source
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 import glob, sys
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 Import('env')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5 env = env.Copy()
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 env.Append(CPPPATH = ['#/engine/core'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 env.Append(LIBPATH = ['#/engine/core'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8
42
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
9 env.Append(LIBS = ['libfife','libUnitTest++'])
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 if sys.platform == 'darwin':
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12 env.Append(LIBPATH = ['/System/Library'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 env.Append(LINKFLAGS='-framework SDL')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
14 env.Append(LINKFLAGS='-framework SDL_image')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
15 env.Append(LINKFLAGS='-framework SDL_ttf')
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16 env.Append(LINKFLAGS=['-Wl'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17 else:
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
18 env.Append(LINKFLAGS=['-Wl,-rpath,../../ext/install/lib,-rpath,../../engine'])
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19
42
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
20 # The test_fife.py script relies on this specific layout.
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
21 # Check it, if you change something here
42
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
22 env.Program('testprog_rect', ['test_rect++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
23 env.Program('testprog_dat1', ['test_dat1++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
24 env.Program('testprog_dat2', ['test_dat2++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
25 env.Program('testprog_gui', ['test_gui++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
26 env.Program('testprog_images', ['test_images++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
27 env.Program('testprog_imagepool', ['test_imagepool++.cpp'])
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
28 env.Program('testprog_vfs', ['test_vfs++.cpp'])
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
30
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
31 if env['zip']:
42
4c8334b0ab30 switched scons tests=1 to build unittest++ tests instead of boost ones. Tests kept in separate executables to make it work in the same way as with old tests (integrated part of test_fife unit testing script). Audio tests shortened.
jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
parents: 0
diff changeset
32 env.Program('testprog_zip', ['test_zip++.cpp'])
0
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
33
4a0efb7baf70 * Datasets becomes the new trunk and retires after that :-)
mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
34 # vim: set filetype=python :