summaryrefslogtreecommitdiffstats
blob: 515c9e430be0c685b69b7a842c3fb28f24e4fb76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"] == "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"])