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)