Skip to content

Commit

Permalink
scons: ensure you can build pgsql2sqlite even if the sqlite datasourc…
Browse files Browse the repository at this point in the history
…e plugin is not requested
  • Loading branch information
Dane Springmeyer committed Aug 16, 2012
1 parent e0608a4 commit 9ef6c0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SConstruct
Expand Up @@ -1243,6 +1243,10 @@ if not preconfigured:
env.PrependUnique(LIBPATH = '#src', delete_existing=True)

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():
env['SKIPPED_DEPS'].append('pgsql2sqlite_rtree')
env['PGSQL2SQLITE'] = False
Expand Down

0 comments on commit 9ef6c0d

Please sign in to comment.