summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-09-01 19:15:46 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-09-01 19:16:16 (GMT)
commit903f044aea9c7b356c072bc85379d0e9825929d3 (patch)
tree6aa3da086c2a697c80da4add98e52e443bfcae18 /3rdParty
parent9bc48bf7e580a2a0962e9f62069f061315f1b3f2 (diff)
downloadswift-contrib-903f044aea9c7b356c072bc85379d0e9825929d3.zip
swift-contrib-903f044aea9c7b356c072bc85379d0e9825929d3.tar.bz2
Move async into its own module so it'll work with system sqlite too
Diffstat (limited to '3rdParty')
-rw-r--r--3rdParty/SQLite/SConscript2
-rw-r--r--3rdParty/SQLiteAsync/SConscript20
-rw-r--r--3rdParty/SQLiteAsync/sqlite3async.c (renamed from 3rdParty/SQLite/sqlite3async.c)0
-rw-r--r--3rdParty/SQLiteAsync/sqlite3async.h (renamed from 3rdParty/SQLite/sqlite3async.h)0
4 files changed, 21 insertions, 1 deletions
diff --git a/3rdParty/SQLite/SConscript b/3rdParty/SQLite/SConscript
index 9159bc6..9b9fead 100644
--- a/3rdParty/SQLite/SConscript
+++ b/3rdParty/SQLite/SConscript
@@ -16,4 +16,4 @@ if env.get("SQLITE_BUNDLED", False) :
if env["SCONS_STAGE"] == "build" :
myenv = env.Clone()
myenv.Replace(CCFLAGS = [flag for flag in env["CCFLAGS"] if flag not in ["-W", "-Wall"]])
- myenv.StaticLibrary("SQLite", ["sqlite3.c", "sqlite3async.c"], CPPPATH = ["."])
+ myenv.StaticLibrary("SQLite", ["sqlite3.c"], CPPPATH = ["."])
diff --git a/3rdParty/SQLiteAsync/SConscript b/3rdParty/SQLiteAsync/SConscript
new file mode 100644
index 0000000..90f70d3
--- /dev/null
+++ b/3rdParty/SQLiteAsync/SConscript
@@ -0,0 +1,20 @@
+Import("env")
+
+
+################################################################################
+# Flags
+################################################################################
+
+
+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.MergeFlags(env.get("SQLITE_FLAGS", {}))
+ myenv.StaticLibrary("SQLiteAsync", ["sqlite3async.c"], CPPPATH = ["."])
diff --git a/3rdParty/SQLite/sqlite3async.c b/3rdParty/SQLiteAsync/sqlite3async.c
index 0814da7..0814da7 100644
--- a/3rdParty/SQLite/sqlite3async.c
+++ b/3rdParty/SQLiteAsync/sqlite3async.c
diff --git a/3rdParty/SQLite/sqlite3async.h b/3rdParty/SQLiteAsync/sqlite3async.h
index 143cdc7..143cdc7 100644
--- a/3rdParty/SQLite/sqlite3async.h
+++ b/3rdParty/SQLiteAsync/sqlite3async.h