mapnik/tests/cpp_tests/svg_renderer_tests/SConscript
2010-07-20 02:12:43 +00:00

22 lines
No EOL
546 B
Python

import os
import glob
Import ('env')
headers = env['CPPPATH']
filesystem = 'boost_filesystem%s' % env['BOOST_APPEND']
system = 'boost_system%s' % env['BOOST_APPEND']
regex = 'boost_regex%s' % env['BOOST_APPEND']
libraries = [filesystem, 'mapnik2']
if env['PLATFORM'] == 'Darwin':
libraries.append(env['ICU_LIB_NAME'])
libraries.append(regex)
if env['HAS_BOOST_SYSTEM']:
libraries.append(system)
for cpp_test in glob.glob('*_test.cpp'):
env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries)