diff options
author | Remko Tronçon <git@el-tramo.be> | 2013-09-14 08:17:17 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2013-09-15 12:25:11 (GMT) |
commit | 534a87a59c15de5024fbf58a11225f17c683f76c (patch) | |
tree | dfd6804664809542b1300a699a54c8a343147bd1 /Sluift/SConscript.variant | |
parent | 211a59d837e0260456931f4b6a4d030afa07ea0c (diff) | |
download | swift-contrib-534a87a59c15de5024fbf58a11225f17c683f76c.zip swift-contrib-534a87a59c15de5024fbf58a11225f17c683f76c.tar.bz2 |
Install Sluift
Change-Id: Ia08269b51528b4458418939e5478cb320f4ba40d
Diffstat (limited to 'Sluift/SConscript.variant')
-rw-r--r-- | Sluift/SConscript.variant | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Sluift/SConscript.variant b/Sluift/SConscript.variant index bf5d85e..92ee493 100644 --- a/Sluift/SConscript.variant +++ b/Sluift/SConscript.variant @@ -1,3 +1,5 @@ +import os + Import('env') Import('sluift_env') Import('sluift_variant') @@ -8,7 +10,16 @@ if sluift_variant == 'exe' : "#/Sluift/lua.c", "#/Sluift/linit.c", ]) + if sluift_env.get("SLUIFT_INSTALLDIR", "") : + sluift_env.Install(os.path.join(sluift_env["SLUIFT_INSTALLDIR"], "bin"), env["SLUIFT"]) else : - sluift_env.SharedLibrary("sluift", sluift_sources + [ - "#/Sluift/dll.c" - ]) + sluift_env["SLUIFT_DLL_SUFFIX"] = "${SHLIBSUFFIX}" + if sluift_env["PLATFORM"] == "darwin" : + sluift_env["SLUIFT_DLL_SUFFIX"] = ".so" + sluift_dll = sluift_env.SharedLibrary(sluift_env.File("sluift${SLUIFT_DLL_SUFFIX}"), + sluift_sources + ["#/Sluift/dll.c"]) + if sluift_env.get("SLUIFT_INSTALLDIR", False) and sluift_env.get("LUA_VERSION", False) : + sluift_env.Install( + os.path.join(sluift_env["SLUIFT_INSTALLDIR"], "lib", "lua", sluift_env["LUA_VERSION"]), + sluift_dll) + |