summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
index 3a7d32f..1e36b6e 100644
--- a/Sluift/SConscript
+++ b/Sluift/SConscript
@@ -12,8 +12,18 @@ if env["SCONS_STAGE"] == "build" :
elif myenv["PLATFORM"] == "darwin" :
myenv["SHLIBSUFFIX"] = ".so"
+ def patchLua(env, target, source) :
+ f = open(source[0].abspath, "r")
+ contents = f.read()
+ f.close()
+ contents = contents.replace("LUA_RELEASE", "\"Sluift XMPP Console\"")
+ contents = contents.replace("LUA_COPYRIGHT", "")
+ f = open(target[0].abspath, "w")
+ f.write(contents)
+ f.close()
+
sluift_bin_env = myenv.Clone()
- sluift_bin_env.Install(".", "#/3rdParty/Lua/src/lua.c")
+ sluift_bin_env.Command("lua.c", ["#/3rdParty/Lua/src/lua.c"], env.Action(patchLua, cmdstr = "$GENCOMSTR"))
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"])