summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-05-10 18:00:36 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-05-10 18:00:36 (GMT)
commit2693fa1271512ee5ef09a057457e8f4e9f7098cf (patch)
tree4c8ae275afa0c48534356099dd1f8dd83d934c22 /Sluift/SConscript
parent29b9da828a6185c166a4b2691d9d7ceef9fd5a19 (diff)
downloadswift-contrib-2693fa1271512ee5ef09a057457e8f4e9f7098cf.zip
swift-contrib-2693fa1271512ee5ef09a057457e8f4e9f7098cf.tar.bz2
Add OpenSSL to Sluift bundle conditionally.
Diffstat (limited to 'Sluift/SConscript')
-rw-r--r--Sluift/SConscript12
1 files changed, 7 insertions, 5 deletions
diff --git a/Sluift/SConscript b/Sluift/SConscript
index 7c434de..f6388a0 100644
--- a/Sluift/SConscript
+++ b/Sluift/SConscript
@@ -55,8 +55,10 @@ if env["SCONS_STAGE"] == "build" :
myenv.SharedLibrary("sluift", ["dll.c"])
if env["PLATFORM"] == "win32" :
- myenv.WindowsBundle("Sluift",
- resources = {"": [
- os.path.join(env["OPENSSL_DIR"], "bin", "ssleay32.dll"),
- os.path.join(env["OPENSSL_DIR"], "bin", "libeay32.dll")
- ]})
+ ssl_libs = []
+ if myenv.get("OPENSSL_DIR", False) :
+ ssl_libs = [
+ os.path.join(env["OPENSSL_DIR"], "bin", "ssleay32.dll"),
+ os.path.join(env["OPENSSL_DIR"], "bin", "libeay32.dll")
+ ]
+ myenv.WindowsBundle("Sluift", resources = {"": ssl_libs})