summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-25 19:55:03 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-25 22:09:39 (GMT)
commit7e4b8e330c99a1db81bdf12b7aab41f5890625e5 (patch)
treea9d4fe06c68048d339e6e79b9f6e0f6496beac8e /Sluift/SConscript
parent707eae7dafbbe0625e2392d19072ff6d3be2c14a (diff)
downloadswift-7e4b8e330c99a1db81bdf12b7aab41f5890625e5.zip
swift-7e4b8e330c99a1db81bdf12b7aab41f5890625e5.tar.bz2
Add statically linked sluift.
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript13
1 files changed, 12 insertions, 1 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
index dbf7459..49d6de3 100644
--- a/Sluift/SConscript
+++ b/Sluift/SConscript
@@ -1,4 +1,4 @@
-Import("env")
+Import(["env", "conf_env"])
if env["SCONS_STAGE"] == "build" :
myenv = env.Clone()
@@ -15,3 +15,14 @@ if env["SCONS_STAGE"] == "build" :
myenv.SharedLibrary("sluift", [
"sluift.cpp",
])
+
+ sluift_bin_env = myenv.Clone()
+ sluift_bin_env.Install(".", "#/3rdParty/Lua/src/lua.c")
+ if sluift_bin_env.get("HAVE_READLINE", False) :
+ sluift_bin_env.Append(CPPDEFINES = ["LUA_USE_READLINE"])
+ sluift_bin_env.MergeFlags(sluift_bin_env["READLINE_FLAGS"])
+ sluift_bin_env.Program("sluift", [
+ "sluift.cpp",
+ "lua.c",
+ "linit.c",
+ ])