summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/SQLiteAsync/SConscript')
-rw-r--r--3rdParty/SQLiteAsync/SConscript20
1 files changed, 20 insertions, 0 deletions
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 = ["."])