summaryrefslogtreecommitdiffstats
blob: dbf7459d13f6582c6752f2b2c6e2b638ffb495c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Import("env")

if env["SCONS_STAGE"] == "build" :
	myenv = env.Clone()
	myenv.UseFlags(env["LUA_FLAGS"])
	myenv.UseFlags(env["SWIFTEN_FLAGS"])
	myenv.UseFlags(env["SWIFTEN_DEP_FLAGS"])
	myenv["SHLIBPREFIX"] = ""

	if myenv["PLATFORM"] == "win32" :
		myenv.Append(CPPDEFINES = ["SLUIFT_BUILD_DLL"])
	elif myenv["PLATFORM"] == "darwin" :
		myenv["SHLIBSUFFIX"] = ".so"

	myenv.SharedLibrary("sluift", [
			"sluift.cpp",
		])