summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-08-13 15:46:26 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-08-13 15:53:51 (GMT)
commitd51d1a462876ee547f618eabc21674276e2f3db3 (patch)
treeac6b739f8f2147139742fae54d9dd9345a6c8bc7 /BuildTools
parent20136e351257a4cc4c033d8e0ef0212984389999 (diff)
downloadswift-d51d1a462876ee547f618eabc21674276e2f3db3.zip
swift-d51d1a462876ee547f618eabc21674276e2f3db3.tar.bz2
Fix Windows bundling.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/Tools/WindowsBundle.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/BuildTools/SCons/Tools/WindowsBundle.py b/BuildTools/SCons/Tools/WindowsBundle.py
new file mode 100644
index 0000000..1cada9d
--- /dev/null
+++ b/BuildTools/SCons/Tools/WindowsBundle.py
@@ -0,0 +1,15 @@
+import SCons.Util, os
+
+def generate(env) :
+ def createWindowsBundle(env, bundle, resources = [], qtlibs = []) :
+ env.Install(bundle, bundle + ".exe")
+ for lib in qtlibs :
+ env.Install(bundle, os.path.join(env["QTDIR"], "bin", lib + ".dll"))
+ for resource in resources :
+ env.Install(bundle, resource)
+
+ env.AddMethod(createWindowsBundle, "WindowsBundle")
+
+def exists(env) :
+ return env["PLATFORM"] == "win32"
+