2010-07-20 02:40:37 +02:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
headers = env['CPPPATH']
|
|
|
|
|
2010-07-20 04:12:43 +02:00
|
|
|
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
|
|
|
|
system = 'boost_system%s' % env['BOOST_APPEND']
|
|
|
|
regex = 'boost_regex%s' % env['BOOST_APPEND']
|
2010-07-20 02:40:37 +02:00
|
|
|
|
2010-07-20 04:12:43 +02:00
|
|
|
libraries = [filesystem, 'mapnik2']
|
2010-07-20 02:40:37 +02:00
|
|
|
|
|
|
|
if env['PLATFORM'] == 'Darwin':
|
|
|
|
libraries.append(env['ICU_LIB_NAME'])
|
2010-07-20 04:12:43 +02:00
|
|
|
libraries.append(regex)
|
2010-07-20 02:40:37 +02:00
|
|
|
|
|
|
|
if env['HAS_BOOST_SYSTEM']:
|
2010-07-20 04:12:43 +02:00
|
|
|
libraries.append(system)
|
2010-07-20 02:40:37 +02:00
|
|
|
|
|
|
|
for cpp_test in glob.glob('*_test.cpp'):
|
|
|
|
env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries)
|