From 2f3d74e471022d21477adccf013a0430956bddbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 30 Aug 2010 19:13:35 +0200 Subject: Track dependencies of resource dirs correctly in Windows bundle. 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") -- cgit v0.10.2-6-g49f6