summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-23 21:12:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-24 18:14:46 (GMT)
commit442420335b9533b2a43c6e3f09758a94af045a84 (patch)
tree3fa350e115340f7db4dfbf1a4aa5845bf4a724c5 /Sluift/SConscript
parentf0142e0ea71a1f89b8c46ab6bde7e188c0bc79f4 (diff)
downloadswift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.zip
swift-contrib-442420335b9533b2a43c6e3f09758a94af045a84.tar.bz2
Added initial version of Sluift.
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",
+ ])