2010-07-16 01:09:33 +02:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
headers = env['CPPPATH']
|
|
|
|
|
|
|
|
boost_filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
|
|
|
|
boost_system = 'boost_system%s' % env['BOOST_APPEND']
|
2011-03-16 14:32:04 +01:00
|
|
|
boost_regex = 'boost_regex%s' % env['BOOST_APPEND']
|
2010-07-16 01:09:33 +02:00
|
|
|
|
2011-05-25 22:26:47 +02:00
|
|
|
libraries = [boost_filesystem, boost_regex, 'mapnik2']
|
2010-07-16 01:09:33 +02:00
|
|
|
|
|
|
|
if env['PLATFORM'] == 'Darwin':
|
|
|
|
libraries.append(env['ICU_LIB_NAME'])
|
|
|
|
|
|
|
|
if env['HAS_BOOST_SYSTEM']:
|
|
|
|
libraries.append(boost_system)
|
|
|
|
|
|
|
|
for cpp_test in glob.glob('*_test.cpp'):
|
2011-05-25 22:26:47 +02:00
|
|
|
env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries, LINKFLAGS=env['CUSTOM_LDFLAGS'])
|