2010-07-16 01:09:33 +02:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
headers = env['CPPPATH']
|
|
|
|
|
2011-08-11 23:11:11 +02:00
|
|
|
libraries = env['LIBMAPNIK_LIBS']
|
|
|
|
libraries.append('mapnik2')
|
2010-07-16 01:09:33 +02:00
|
|
|
|
|
|
|
for cpp_test in glob.glob('*_test.cpp'):
|
2011-08-11 23:11:11 +02:00
|
|
|
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']))
|