From f903432048b8553f37d9b2dfe27374565f5d2aed Mon Sep 17 00:00:00 2001 From: Jean-Francois Doyon Date: Sun, 26 Mar 2006 22:36:55 +0000 Subject: [PATCH] Add support for building pyprojection. --- SConstruct | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 8a332c199..b45532ea3 100644 --- a/SConstruct +++ b/SConstruct @@ -33,6 +33,8 @@ opts.Add(PathOption('TIFF_INCLUDES', 'Search path for libtiff include files', '/ opts.Add(PathOption('TIFF_LIBS', 'Search path for libtiff library files', '/usr/lib')) opts.Add(PathOption('PGSQL_INCLUDES', 'Search path for PostgreSQL include files', '/usr/include')) opts.Add(PathOption('PGSQL_LIBS', 'Search path for PostgreSQL library files', '/usr/lib')) +opts.Add(PathOption('PROJ_INCLUDES', 'Search path for PROJ.4 include files', '/usr/local/include')) +opts.Add(PathOption('PROJ_LIBS', 'Search path for PROJ.4 include files', '/usr/local/lib')) opts.Add(PathOption('PYTHON','Python executable', sys.executable)) opts.Add(ListOption('INPUT_PLUGINS','Input drivers to include','all',['postgis','shape','raster'])) opts.Add(ListOption('BINDINGS','Language bindings to build','all',['python'])) @@ -64,7 +66,8 @@ C_LIBSHEADERS = [ ['tiff', 'tiff.h', True], ['z', 'zlib.h', True], ['jpeg', ['stdio.h', 'jpeglib.h'], True], - ['pq', 'libpq-fe.h', False] + ['pq', 'libpq-fe.h', False], + ['proj', 'proj_api.h', False] ] BOOST_LIBSHEADERS = [ @@ -141,6 +144,10 @@ if 'boost_program_options%s' % env['BOOST_APPEND'] in env['LIBS']: SConscript('utils/shapeindex/SConscript') env['LIBS'].remove('boost_program_options%s' % env['BOOST_APPEND']) +if 'proj' in env['LIBS']: + SConscript('bindings/python/pyprojection/SConscript') + env['LIBS'].remove('proj') + # Build the input plug-ins if 'postgis' in inputplugins and 'pq' in env['LIBS']: