mapnik/tests/cpp_tests/svg_renderer_tests/build.py

13 lines
351 B
Python
Raw Normal View History

import os
import glob
from copy import copy
Import ('env')
libraries = [env['MAPNIK_NAME']]
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']))