diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-10 18:00:36 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-05-10 18:00:36 (GMT) |
commit | 2693fa1271512ee5ef09a057457e8f4e9f7098cf (patch) | |
tree | 4c8ae275afa0c48534356099dd1f8dd83d934c22 | |
parent | 29b9da828a6185c166a4b2691d9d7ceef9fd5a19 (diff) | |
download | swift-2693fa1271512ee5ef09a057457e8f4e9f7098cf.zip swift-2693fa1271512ee5ef09a057457e8f4e9f7098cf.tar.bz2 |
Add OpenSSL to Sluift bundle conditionally.
-rw-r--r-- | Sluift/SConscript | 12 |
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}) |