summaryrefslogtreecommitdiffstats
blob: 3928ff08c4ba1b2dc88f63ad3ee6938a16618160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Import("env")


if env["SCONS_STAGE"] == "build":
	myenv = env.Clone()
	myenv.MergeFlags(myenv["SWIFTEN_FLAGS"])
	myenv.MergeFlags(myenv["LIBIDN_FLAGS"])
	myenv.MergeFlags(myenv["BOOST_FLAGS"])
	myenv.MergeFlags(myenv["ZLIB_FLAGS"])
	myenv.MergeFlags(myenv["OPENSSL_FLAGS"])
	myenv.MergeFlags(myenv.get("SQLITE_FLAGS", {}))
	myenv.MergeFlags(myenv.get("LIBXML_FLAGS", ""))
	myenv.MergeFlags(myenv.get("EXPAT_FLAGS", ""))
	myenv.MergeFlags(myenv["PLATFORM_FLAGS"])
	myenv.MergeFlags(myenv.get("LUA_FLAGS", {}))
	sources = [
		"linit.c", # This is horrible!
		"Swiftob.cpp",
		"Users.cpp",
		"Commands.cpp",
		"MUCs.cpp",
		"Storage.cpp",
		"LuaCommands.cpp",
		"main.cpp"
	]
	swiftob = myenv.Program("swiftob", sources)