summaryrefslogtreecommitdiffstats
blob: 9159bc68d0555f7c5dbfd29c94c9d36e3b2017f6 (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": ["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("SQLite", ["sqlite3.c", "sqlite3async.c"], CPPPATH = ["."])