2010-07-20 00:40:37 +00:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
headers = env['CPPPATH']
|
|
|
|
|
2010-07-20 02:12:43 +00: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 00:40:37 +00:00
|
|
|
|
2010-07-20 02:12:43 +00:00
|
|
|
libraries = [filesystem, 'mapnik2']
|
2010-07-20 00:40:37 +00:00
|
|
|
|
|
|
|
if env['PLATFORM'] == 'Darwin':
|
|
|
|
libraries.append(env['ICU_LIB_NAME'])
|
2010-07-20 02:12:43 +00:00
|
|
|
libraries.append(regex)
|
2010-07-20 00:40:37 +00:00
|
|
|
|
|
|
|
if env['HAS_BOOST_SYSTEM']:
|
2010-07-20 02:12:43 +00:00
|
|
|
libraries.append(system)
|
2010-07-20 00:40:37 +00:00
|
|
|
|
2010-08-10 08:23:02 +00:00
|
|
|
for cpp_test in glob.glob('path_element_test.cpp'):
|
2010-07-20 00:40:37 +00:00
|
|
|
env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries)
|