blob: 74b266c1ede354e489a1e633763d253bbc93c774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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"
elif myenv["PLATFORM"] == "posix" :
myenv.Append(CCFLAGS = ["-fPIC"])
myenv.SharedLibrary("sluift", [
"sluift.cpp",
])
|