blob: ed08716e68446233ae6e0e5ce7ae4b71a6bdfb0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Import("env")
if env.get("SQLITE_BUNDLED", False) :
################################################################################
# Flags
################################################################################
if env["SCONS_STAGE"] == "flags" :
env["SQLITE_FLAGS"] = {
"CPPPATH": [Dir(".")],
"LIBPATH": [Dir(".")],
"LIBS": ["Swiften_SQLite"],
}
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("Swiften_SQLite", ["sqlite3.c"], CPPPATH = ["."])
|