From fa5a2195d740c09fb8a11245e2df666a3bba8e68 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 3 Mar 2009 19:31:05 +0000 Subject: [PATCH] scons: add boolean options to build the rundemo and pgsql2sqlite programs - off by default --- SConstruct | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 76de93465..9a482c795 100644 --- a/SConstruct +++ b/SConstruct @@ -151,8 +151,9 @@ opts.AddVariables( EnumVariable('THREADING','Set threading support','multi', ['multi','single']), EnumVariable('XMLPARSER','Set xml parser ','libxml2', ['tinyxml','spirit','libxml2']), ('JOBS', 'Set the number of parallel compilations', "1", lambda key, value, env: int(value), int), + BoolVariable('DEMO', 'Compile demo c++ application', 'False'), + BoolVariable('PGSQL2SQLITE', 'Compile and install a utility to convert postgres tables to sqlite', 'False'), ) - # variables to pickle after successful configure step # these include all scons core variables as well as custom # env variables needed in Sconscript files @@ -795,6 +796,14 @@ if env['INTERNAL_LIBAGG']: # Build the core library SConscript('src/SConscript') +# Build the c++ rundemo app if requested +if env['DEMO']: + SConscript('demo/c++/SConscript') + +# Build the pgsql2psqlite app if requested +if env['PGSQL2SQLITE']: + SConscript('utils/pgsql2sqlite/SConscript') + # Build shapeindex and remove its dependency from the LIBS if 'boost_program_options%s' % env['BOOST_APPEND'] in env['LIBS']: SConscript('utils/shapeindex/SConscript')