2013-01-09 03:07:11 +00:00
|
|
|
import os
|
|
|
|
import glob
|
|
|
|
from copy import copy
|
|
|
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
test_env = env.Clone()
|
|
|
|
|
|
|
|
test_env['LIBS'] = copy(env['LIBMAPNIK_LIBS'])
|
|
|
|
test_env.AppendUnique(LIBS='mapnik')
|
|
|
|
test_env.AppendUnique(CXXFLAGS='-g')
|
2013-11-15 07:11:21 +00:00
|
|
|
if 'g++' in env['CXX']:
|
|
|
|
test_env.Append(CXXFLAGS='-fPIC')
|
2013-02-27 22:48:51 +00:00
|
|
|
if env['PLATFORM'] == 'Darwin':
|
2013-10-22 20:35:46 +00:00
|
|
|
test_env.Append(LINKFLAGS='-F/ -framework CoreFoundation')
|
2013-01-09 03:07:11 +00:00
|
|
|
|
2013-11-15 07:11:21 +00:00
|
|
|
test_env_local = test_env.Clone()
|
|
|
|
|
|
|
|
for cpp_test in glob.glob('*cpp'):
|
|
|
|
test_program = test_env_local.Program('out/'+cpp_test.replace('.cpp',''), source=[cpp_test])
|
2013-01-09 03:07:11 +00:00
|
|
|
if 'install' in COMMAND_LINE_TARGETS:
|
|
|
|
env.Alias('install',test_program)
|
2013-11-15 07:11:21 +00:00
|
|
|
#Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME']))
|