summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
new file mode 100644
index 0000000..a8d985e
--- /dev/null
+++ b/Sluift/SConscript
@@ -0,0 +1,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",
+ ])