1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
import os,sys
from utils.util_scripts.path import path as upath
Import('env', 'opts')
if env.has_key('LIBS'):
libs = list(env['LIBS'])
libs.append(opts['TESTLIBS'])
else:
libs = ""
if env.has_key('LIBPATH'):
lib_path = list(env['LIBPATH'])
lib_path.append(opts['LIBPATH'])
else:
lib_path = ""
source_path = opts['SRC']
if env.has_key('CPPPATH'):
core_path = list(env['CPPPATH'])
core_path.append(os.path.join(source_path, 'core'))
else:
core_path = ""
Alias('test_dat1',
env.Program('test_dat1',
'test_dat1.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_dat2',
env.Program('test_dat2',
'test_dat2.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_gui',
env.Program('test_gui',
'test_gui.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_imagepool',
env.Program('test_imagepool',
'test_imagepool.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_images',
env.Program('test_images',
'test_images.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_rect',
env.Program('test_rect',
'test_rect.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_vgs',
env.Program('test_vfs',
'test_vfs.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_zip',
env.Program('test_zip',
'test_zip.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('test_sharedptr',
env.Program('test_sharedptr',
'test_sharedptr.cpp',
CPPPATH=core_path,
LIBS=libs,
LIBPATH=lib_path))
Alias('tests', ['test_dat1','test_dat2','test_gui','test_imagepool','test_images','test_rect','test_vfs','test_zip', 'test_sharedptr'])
|