summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-28 10:19:54 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-28 10:19:54 (GMT)
commit647213f7c9bdc5b60c863ee56302f380869befe7 (patch)
treeb4c2e1afbdb1ba96a5afbe8954435153a77ab12b /BuildTools
parentbafe5e6d6386f40f254b5da752545b5f9f41d316 (diff)
downloadswift-647213f7c9bdc5b60c863ee56302f380869befe7.zip
swift-647213f7c9bdc5b60c863ee56302f380869befe7.tar.bz2
Create a dist target for mac DMG bundling.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/Tools/AppBundle.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/AppBundle.py b/BuildTools/SCons/Tools/AppBundle.py
index 3d06e97..12667f0 100644
--- a/BuildTools/SCons/Tools/AppBundle.py
+++ b/BuildTools/SCons/Tools/AppBundle.py
@@ -2,7 +2,8 @@ import SCons.Util
def generate(env) :
def createAppBundle(env, bundle, version = "1.0", resources = [], frameworks = [], info = {}) :
- bundleContentsDir = bundle + ".app" + "/Contents"
+ bundleDir = bundle + ".app"
+ bundleContentsDir = bundleDir + "/Contents"
resourcesDir = bundleContentsDir + "/Resources"
frameworksDir = bundleContentsDir + "/Frameworks"
env.Install(bundleContentsDir + "/MacOS", bundle)
@@ -42,6 +43,8 @@ def generate(env) :
for framework in frameworks :
env.Install(frameworksDir, framework)
+ return env.Dir(bundleDir)
+
env.AddMethod(createAppBundle, "AppBundle")