summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-09-12 18:25:54 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-09-12 18:25:54 (GMT)
commit55a5d78d1e9e5c56173d13345e2b303422389737 (patch)
treebc2e5c287464ee1c0c2258c2b7e8b458573b57b9 /3rdParty/SQLiteAsync
parent50c339268eea3dcba3f8b8c9c745975b12bbe152 (diff)
downloadswift-55a5d78d1e9e5c56173d13345e2b303422389737.zip
swift-55a5d78d1e9e5c56173d13345e2b303422389737.tar.bz2
Don't use SQLite in non-experimental.
Diffstat (limited to '3rdParty/SQLiteAsync')
-rw-r--r--3rdParty/SQLiteAsync/SConscript24
1 files changed, 12 insertions, 12 deletions
diff --git a/3rdParty/SQLiteAsync/SConscript b/3rdParty/SQLiteAsync/SConscript
index 1bb4268..515c9e4 100644
--- a/3rdParty/SQLiteAsync/SConscript
+++ b/3rdParty/SQLiteAsync/SConscript
@@ -1,20 +1,20 @@
Import("env")
+if env.get("SQLITE_ASYNC_BUNDLED", False) :
################################################################################
# Flags
################################################################################
+ if env["SCONS_STAGE"] == "flags" :
+ env["SQLITE_ASYNC_FLAGS"] = {
+ "CPPPATH": [Dir(".")],
+ "LIBPATH": [Dir(".")],
+ "LIBS": ["Swiften_SQLiteAsync"],
+ }
-if env["SCONS_STAGE"] == "flags" :
- env["SQLITE_ASYNC_FLAGS"] = {
- "CPPPATH": [Dir(".")],
- "LIBPATH": [Dir(".")],
- "LIBS": ["SQLiteAsync"],
- }
-
-if env["SCONS_STAGE"] == "build" :
- myenv = env.Clone()
- myenv.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]])
- myenv.UseFlags(env.get("SQLITE_FLAGS", {}))
- myenv.StaticLibrary("SQLiteAsync", ["sqlite3async.c"])
+ if env["SCONS_STAGE"] == "build" :
+ myenv = env.Clone()
+ myenv.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]])
+ myenv.UseFlags(env.get("SQLITE_FLAGS", {}))
+ myenv.StaticLibrary("Swiften_SQLiteAsync", ["sqlite3async.c"])