diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-30 17:13:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-30 17:14:31 (GMT) |
commit | 2f3d74e471022d21477adccf013a0430956bddbf (patch) | |
tree | 2cbb1804b274531a107419de0c2277ea9083ed85 /BuildTools | |
parent | b9b535ffd46382c413504a1781400c1a554e04a8 (diff) | |
download | swift-2f3d74e471022d21477adccf013a0430956bddbf.zip swift-2f3d74e471022d21477adccf013a0430956bddbf.tar.bz2 |
Track dependencies of resource dirs correctly in Windows bundle.
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/Tools/WindowsBundle.py | 7 |
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") |