2010-07-20 02:40:37 +02:00
|
|
|
import os
|
|
|
|
import glob
|
2011-11-02 01:39:27 +01:00
|
|
|
from copy import copy
|
2010-07-20 02:40:37 +02:00
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
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']
|
2011-11-02 01:39:27 +01:00
|
|
|
libraries = copy(env['LIBMAPNIK_LIBS'])
|
2011-11-23 12:33:58 +01:00
|
|
|
libraries.append('mapnik')
|
2010-07-20 02:40:37 +02:00
|
|
|
|
2011-11-02 01:39:27 +01:00
|
|
|
for cpp_test in glob.glob('*_test.cpp'):
|
2013-10-22 22:35:46 +02:00
|
|
|
test_program = env.Program(cpp_test.replace('.cpp',''), [cpp_test], LIBS=libraries)
|
2011-11-23 12:33:58 +01:00
|
|
|
Depends(test_program, env.subst('../../../src/%s' % env['MAPNIK_LIB_NAME']))
|