summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-06-02 20:04:42 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-06-02 20:06:29 (GMT)
commitca39e52da0bf9027ab660fd31d1285b1c1d55659 (patch)
treeebbcf7dc2a2c063b9070a779f629ddefd21043bc /3rdParty/Boost/SConscript
parent60a1dfe187dbe11e61e7f867e4c04454a9d3a5e6 (diff)
downloadswift-contrib-ca39e52da0bf9027ab660fd31d1285b1c1d55659.zip
swift-contrib-ca39e52da0bf9027ab660fd31d1285b1c1d55659.tar.bz2
Add workaround for distros that don't have boost UUID.
Cherry pick UUID out of 3rdParty, and use this as an include path. Since UUID is a header-only lib, this shouldn't pose problems.
Diffstat (limited to '3rdParty/Boost/SConscript')
-rw-r--r--3rdParty/Boost/SConscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/3rdParty/Boost/SConscript b/3rdParty/Boost/SConscript
index a7019e1..49e66e5 100644
--- a/3rdParty/Boost/SConscript
+++ b/3rdParty/Boost/SConscript
@@ -1,6 +1,15 @@
Import("env")
-if env.get("BOOST_BUNDLED", False) :
+# FIXME: Remove this when Boost UUID is present on most distros
+if env.get("BOOST_BUNDLED_UUID_ONLY", False) :
+ # Cherry pick UUID out of the 3rdParty dir, install it in a separate
+ # dir, and use this as an include path.
+ if env["SCONS_STAGE"] == "flags" :
+ env["BOOST_FLAGS"]["CPPFLAGS"] = env["BOOST_FLAGS"].get("CPPFLAGS", []) + ["-I" + env.Dir("uuid").abspath]
+ elif env["SCONS_STAGE"] == "build" :
+ env.Install("uuid/boost", "src/boost/uuid")
+
+elif env.get("BOOST_BUNDLED", False) :
################################################################################
# Common