2010-07-20 00:40:37 +00:00
|
|
|
import os
|
|
|
|
import glob
|
2011-11-02 00:39:27 +00:00
|
|
|
from copy import copy
|
2010-07-20 00:40:37 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2011-11-02 00:39:27 +00:00
|
|
|
libraries = copy(env['LIBMAPNIK_LIBS'])
|
|
|
|
libraries.append('mapnik2')
|
2010-07-20 00:40:37 +00:00
|
|
|
|
2011-11-02 00:39:27 +00:00
|
|
|
for cpp_test in glob.glob('*_test.cpp'):
|
|
|
|
test_program = env.Program(cpp_test.replace('.cpp',''), [cpp_test], CPPPATH=headers, LIBS=libraries, LINKFLAGS=env['CUSTOM_LDFLAGS'])
|
|
|
|
Depends(test_program, env.subst('../../../src/%s' % env['MAPNIK_LIB_NAME']))
|