mapnik/tests/cpp_tests/svg_renderer_tests/build.py
2014-01-20 11:07:18 -08:00

12 lines
341 B
Python

import os
import glob
from copy import copy
Import ('env')
libraries = ['mapnik']
libraries.extend(copy(env['LIBMAPNIK_LIBS']))
for cpp_test in glob.glob('*_test.cpp'):
test_program = env.Program(cpp_test.replace('.cpp',''), [cpp_test], LIBS=libraries)
Depends(test_program, env.subst('../../../src/%s' % env['MAPNIK_LIB_NAME']))