summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-16 19:28:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-16 19:28:27 (GMT)
commit0199071e626b5d06d4291d28a05761b495b0fc4c (patch)
tree8434d5337a73db92a3b9b260902e0b78338ef50d /Swiften/Config/SConscript
parent2838a65f140269fad84fb61129cf0080d714244f (diff)
downloadswift-0199071e626b5d06d4291d28a05761b495b0fc4c.zip
swift-0199071e626b5d06d4291d28a05761b495b0fc4c.tar.bz2
Install Swiften if requested.
Diffstat (limited to 'Swiften/Config/SConscript')
-rw-r--r--Swiften/Config/SConscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Config/SConscript b/Swiften/Config/SConscript
index b162e69..933e4a3 100644
--- a/Swiften/Config/SConscript
+++ b/Swiften/Config/SConscript
@@ -1,3 +1,5 @@
+import os.path
+
Import("env")
def replaceSwiftenPath(input) :
@@ -29,6 +31,9 @@ config_env.MergeFlags(config_env["SWIFTEN_FLAGS"])
config_env.MergeFlags(config_env["BOOST_FLAGS"])
config_env.MergeFlags(config_env["PLATFORM_FLAGS"])
config_env.WriteVal("swiften-config.h", config_env.Value(config_flags))
-config_env.Program("swiften-config", [
+swiften_config = config_env.Program("swiften-config", [
"swiften-config.cpp"
])
+
+if swiften_env.get("SWIFTEN_INSTALLDIR", "") :
+ swiften_env.Install(os.path.join(swiften_env["SWIFTEN_INSTALLDIR"], "bin"), swiften_config)