2012-08-28 02:58:49 +02:00
|
|
|
import os
|
|
|
|
from glob import glob
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
2012-08-28 03:45:04 +02:00
|
|
|
base = './mapnik/'
|
2012-09-16 01:22:34 +02:00
|
|
|
subdirs = ['','svg','wkt','grid','json','util','text','text/placements','text/formatting']
|
2012-08-28 02:58:49 +02:00
|
|
|
|
|
|
|
#if env['SVG_RENDERER']:
|
|
|
|
# subdirs.append('svg/output')
|
|
|
|
|
|
|
|
if 'install' in COMMAND_LINE_TARGETS:
|
|
|
|
for subdir in subdirs:
|
|
|
|
pathdir = os.path.join(base,subdir,'*.hpp')
|
2012-08-28 03:54:08 +02:00
|
|
|
includes = glob(pathdir)
|
|
|
|
inc_target = os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik/'+subdir)
|
2012-08-28 02:58:49 +02:00
|
|
|
env.Alias(target='install', source=env.Install(inc_target, includes))
|
|
|
|
|
2012-08-28 03:54:08 +02:00
|
|
|
env['create_uninstall_target'](env, os.path.normpath(env['INSTALL_PREFIX']+'/include/mapnik/'))
|