diff options
Diffstat (limited to 'BuildTools')
-rw-r--r-- | BuildTools/SCons/Tools/AppBundle.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/AppBundle.py b/BuildTools/SCons/Tools/AppBundle.py index 2849435..3d06e97 100644 --- a/BuildTools/SCons/Tools/AppBundle.py +++ b/BuildTools/SCons/Tools/AppBundle.py @@ -1,9 +1,10 @@ import SCons.Util def generate(env) : - def createAppBundle(env, bundle, version = "1.0", resources = [], info = {}) : + def createAppBundle(env, bundle, version = "1.0", resources = [], frameworks = [], info = {}) : bundleContentsDir = bundle + ".app" + "/Contents" resourcesDir = bundleContentsDir + "/Resources" + frameworksDir = bundleContentsDir + "/Frameworks" env.Install(bundleContentsDir + "/MacOS", bundle) env.WriteVal(bundleContentsDir + "/PkgInfo", env.Value("APPL\77\77\77\77")) @@ -38,6 +39,9 @@ def generate(env) : for resource in resources : env.Install(resourcesDir, resource) + for framework in frameworks : + env.Install(frameworksDir, framework) + env.AddMethod(createAppBundle, "AppBundle") |