File: build.py

package info (click to toggle)
mapnik 2.0.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 35,496 kB
  • sloc: cpp: 91,793; python: 6,051; xml: 3,528; sh: 848; makefile: 70; lisp: 10
file content (16 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
import glob
from copy import copy

Import ('env')

test_env = env.Clone()

headers = env['CPPPATH'] 

libraries =  copy(env['LIBMAPNIK_LIBS'])
libraries.append('mapnik2')

for cpp_test in glob.glob('*_test.cpp'):
    test_program = test_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']))