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
|
|
|
|
2012-03-14 23:44:48 +01:00
|
|
|
libraries = [filesystem, 'mapnik']
|
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
|
|
|
|
2010-08-10 10:23:02 +02:00
|
|
|
for cpp_test in glob.glob('path_element_test.cpp'):
|
2010-07-20 02:40:37 +02:00
|
|
|
env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries)
|