summaryrefslogtreecommitdiffstats
blob: a8d985ea2f3c7e1e2fd191910d25448cfd229141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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",
		])