scons: ensure you can build pgsql2sqlite even if the sqlite datasource plugin is not requested
This commit is contained in:
parent
e0608a4aa4
commit
9ef6c0dce1
1 changed files with 4 additions and 0 deletions
|
@ -1243,6 +1243,10 @@ if not preconfigured:
|
||||||
env.PrependUnique(LIBPATH = '#src', delete_existing=True)
|
env.PrependUnique(LIBPATH = '#src', delete_existing=True)
|
||||||
|
|
||||||
if env['PGSQL2SQLITE']:
|
if env['PGSQL2SQLITE']:
|
||||||
|
if 'sqlite3' not in env['LIBS']:
|
||||||
|
env.AppendUnique(LIBS='sqlite3')
|
||||||
|
env.AppendUnique(CPPPATH = os.path.realpath(env['SQLITE_INCLUDES']))
|
||||||
|
env.AppendUnique(LIBPATH = os.path.realpath(env['SQLITE_LIBS']))
|
||||||
if not conf.sqlite_has_rtree():
|
if not conf.sqlite_has_rtree():
|
||||||
env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree')
|
env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree')
|
||||||
env['PGSQL2SQLITE'] = False
|
env['PGSQL2SQLITE'] = False
|
||||||
|
|
Loading…
Reference in a new issue