extra option EXTENSIONS (defaults to none)
This commit is contained in:
parent
aaba4d08cf
commit
bbd82b7950
1 changed files with 14 additions and 6 deletions
18
SConstruct
18
SConstruct
|
@ -28,7 +28,8 @@ opts.Add(PathOption('AGG_ROOT','agg source root directory','/opt/agg23'))
|
||||||
opts.Add(PathOption('FREETYPE2_ROOT','freetype2 root directory','/opt/freetype2'))
|
opts.Add(PathOption('FREETYPE2_ROOT','freetype2 root directory','/opt/freetype2'))
|
||||||
opts.Add(PathOption('PYTHON_ROOT','python root directory','/opt/python'))
|
opts.Add(PathOption('PYTHON_ROOT','python root directory','/opt/python'))
|
||||||
opts.Add('PYTHON_VERSION','python version','2.4')
|
opts.Add('PYTHON_VERSION','python version','2.4')
|
||||||
opts.Add(ListOption('DATASOURCES','list of available datasources','shape',['postgis','shape','raster']))
|
opts.Add(ListOption('DATASOURCES','list of available datasources','all',['postgis','shape','raster']))
|
||||||
|
opts.Add(ListOption('EXTENSIONS','list of available extensions','none',['python']))
|
||||||
opts.Add('POSTGRESQL_ROOT','path to postgresql prefix','/usr/local')
|
opts.Add('POSTGRESQL_ROOT','path to postgresql prefix','/usr/local')
|
||||||
|
|
||||||
platform = ARGUMENTS.get("OS",Platform())
|
platform = ARGUMENTS.get("OS",Platform())
|
||||||
|
@ -86,16 +87,23 @@ env.SConscript('agg/SConscript')
|
||||||
#main lib
|
#main lib
|
||||||
SConscript('src/SConscript')
|
SConscript('src/SConscript')
|
||||||
|
|
||||||
#python ext
|
import string
|
||||||
|
|
||||||
|
#python bindings
|
||||||
|
|
||||||
|
if 'python' in [string.strip(m) for m in Split(env['EXTENSIONS'])]:
|
||||||
SConscript('python/SConscript')
|
SConscript('python/SConscript')
|
||||||
|
|
||||||
#shapeindex
|
#shapeindex
|
||||||
SConscript('util/shapeindex/SConscript')
|
SConscript('util/shapeindex/SConscript')
|
||||||
|
|
||||||
#datasources
|
#datasources
|
||||||
for datasource in Split(env['DATASOURCES']):
|
def build_datasource(name):
|
||||||
env.BuildDir('build/datasources/'+datasource,'src/datasources/'+datasource,duplicate=0)
|
env.BuildDir('build/datasources/' + name,'src/datasources/'+name,duplicate=0)
|
||||||
SConscript('datasources/'+datasource+'/SConscript')
|
SConscript('datasources/' + name + '/SConscript')
|
||||||
|
|
||||||
|
[build_datasource(name) for name in Split(env['DATASOURCES'])]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue