diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-08-09 20:50:57 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-08-09 20:50:57 (GMT) |
commit | 4e0d6417402bc410e6918a2f41a9db43568c23ab (patch) | |
tree | 66d87716375cbe61016e2b131cd96535c442e1a6 /Swift | |
parent | 8b1a1c9b925e2f80e2f495fd54d99f7b3537017c (diff) | |
download | swift-4e0d6417402bc410e6918a2f41a9db43568c23ab.zip swift-4e0d6417402bc410e6918a2f41a9db43568c23ab.tar.bz2 |
Added quick'n dirty OS X bundle generation.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/.gitignore | 1 | ||||
-rw-r--r-- | Swift/QtUI/SConscript | 18 |
2 files changed, 18 insertions, 1 deletions
diff --git a/Swift/QtUI/.gitignore b/Swift/QtUI/.gitignore new file mode 100644 index 0000000..c1390ab --- /dev/null +++ b/Swift/QtUI/.gitignore @@ -0,0 +1 @@ +Swift diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript index b07f1de..a5993be 100644 --- a/Swift/QtUI/SConscript +++ b/Swift/QtUI/SConscript @@ -15,6 +15,15 @@ def generateDefaultTheme(env, target, source) : output.write("</qresource>") output.write("</RCC>") +def createBundle(env, target, source) : + target = target[0].abspath + source = source[0].abspath + os.makedirs(target + "/Contents/MacOS") + Execute(Copy(target + "/Contents/MacOS", source)) + pkgInfo = open(target + "/Contents/PkgInfo", "w") + pkgInfo.write("APPL\77\77\77\77") + pkgInfo.close() + Import("env") myenv = env.Clone() @@ -68,7 +77,14 @@ sources = [ if env["PLATFORM"] == "win32" : sources += ["../resources/Windows/Swift.rc"] -myenv.Program("swift", sources) +if env["PLATFORM"] == "darwin" or env["PLATFORM"] == "win32" : + myenv.Program("Swift", sources) +else : + myenv.Program("swift", sources) + myenv.Uic4("QtJoinMUCDialog.ui") myenv.Qrc("DefaultTheme.qrc") myenv.Qrc("Swift.qrc") + +if env["PLATFORM"] == "darwin" : + myenv.Command("Swift.app", "Swift", createBundle) |