summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-30 17:13:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-30 17:14:31 (GMT)
commit2f3d74e471022d21477adccf013a0430956bddbf (patch)
tree2cbb1804b274531a107419de0c2277ea9083ed85
parentb9b535ffd46382c413504a1781400c1a554e04a8 (diff)
downloadswift-contrib-2f3d74e471022d21477adccf013a0430956bddbf.zip
swift-contrib-2f3d74e471022d21477adccf013a0430956bddbf.tar.bz2
Track dependencies of resource dirs correctly in Windows bundle.
-rw-r--r--BuildTools/SCons/Tools/WindowsBundle.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/WindowsBundle.py b/BuildTools/SCons/Tools/WindowsBundle.py
index bc690af..7d0f4ff 100644
--- a/BuildTools/SCons/Tools/WindowsBundle.py
+++ b/BuildTools/SCons/Tools/WindowsBundle.py
@@ -8,7 +8,12 @@ def generate(env) :
env.Install(os.path.join(bundle, "imageformats"), [os.path.join(env["QTDIR"], "plugins", "imageformats", "q" + codec + "4.dll") for codec in qtimageformats])
for resource in resources :
- env.Install(bundle, resource)
+ e = env.Entry(resource)
+ if e.isdir() :
+ for subresource in env.Glob(str(e) + "/*") :
+ env.Install(os.path.join(bundle, e.name), subresource)
+ else :
+ env.Install(bundle, resource)
env.AddMethod(createWindowsBundle, "WindowsBundle")