scons: enable control of shpindex and svg2png tools
This commit is contained in:
parent
e802943469
commit
b472cd0e14
1 changed files with 6 additions and 2 deletions
|
@ -366,6 +366,8 @@ PathVariable.PathAccept),
|
||||||
('JOBS', 'Set the number of parallel compilations', "1", lambda key, value, env: int(value), int),
|
('JOBS', 'Set the number of parallel compilations', "1", lambda key, value, env: int(value), int),
|
||||||
BoolVariable('DEMO', 'Compile demo c++ application', 'True'),
|
BoolVariable('DEMO', 'Compile demo c++ application', 'True'),
|
||||||
BoolVariable('PGSQL2SQLITE', 'Compile and install a utility to convert postgres tables to sqlite', 'False'),
|
BoolVariable('PGSQL2SQLITE', 'Compile and install a utility to convert postgres tables to sqlite', 'False'),
|
||||||
|
BoolVariable('SHAPEINDEX', 'Compile and install a utility to generate shapefile indexes in the custom format (.index) Mapnik supports', 'True'),
|
||||||
|
BoolVariable('SVG2PNG', 'Compile and install a utility to generate render an svg file to a png on the command line', 'False'),
|
||||||
BoolVariable('COLOR_PRINT', 'Print build status information in color', 'True'),
|
BoolVariable('COLOR_PRINT', 'Print build status information in color', 'True'),
|
||||||
BoolVariable('SAMPLE_INPUT_PLUGINS', 'Compile and install sample plugins', 'False'),
|
BoolVariable('SAMPLE_INPUT_PLUGINS', 'Compile and install sample plugins', 'False'),
|
||||||
BoolVariable('BIGINT', 'Compile support for 64-bit integers in mapnik::value', 'True'),
|
BoolVariable('BIGINT', 'Compile support for 64-bit integers in mapnik::value', 'True'),
|
||||||
|
@ -1800,13 +1802,15 @@ if not HELP_REQUESTED:
|
||||||
|
|
||||||
# Build shapeindex and remove its dependency from the LIBS
|
# Build shapeindex and remove its dependency from the LIBS
|
||||||
if 'boost_program_options%s' % env['BOOST_APPEND'] in env['LIBS']:
|
if 'boost_program_options%s' % env['BOOST_APPEND'] in env['LIBS']:
|
||||||
SConscript('utils/shapeindex/build.py')
|
if env['SHAPEINDEX']:
|
||||||
|
SConscript('utils/shapeindex/build.py')
|
||||||
|
|
||||||
# Build the pgsql2psqlite app if requested
|
# Build the pgsql2psqlite app if requested
|
||||||
if env['PGSQL2SQLITE']:
|
if env['PGSQL2SQLITE']:
|
||||||
SConscript('utils/pgsql2sqlite/build.py')
|
SConscript('utils/pgsql2sqlite/build.py')
|
||||||
|
|
||||||
SConscript('utils/svg2png/build.py')
|
if env['SVG2PNG']:
|
||||||
|
SConscript('utils/svg2png/build.py')
|
||||||
|
|
||||||
# devtools not ready for public
|
# devtools not ready for public
|
||||||
#SConscript('utils/ogrindex/build.py')
|
#SConscript('utils/ogrindex/build.py')
|
||||||
|
|
Loading…
Reference in a new issue