summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-07-28 18:46:20 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-07-28 18:46:20 +0000
commit05e5fbf5e2faa46e7d8470ee4d095153d06322cb (patch)
tree1dcf299300421bd430520f5ddae882dab4d43490
parent7722c1d459a1c9d8d7be995e83b65daf70f7714a (diff)
downloadrockbox-05e5fbf5e2faa46e7d8470ee4d095153d06322cb.tar.gz
rockbox-05e5fbf5e2faa46e7d8470ee4d095153d06322cb.tar.bz2
rockbox-05e5fbf5e2faa46e7d8470ee4d095153d06322cb.zip
Add deployment script for Theme Editor.
Also move scripts to utils folder, in preparation of merging rbutil and utils folders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27600 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xutils/common/deploy-rbutil.py (renamed from rbutil/rbutilqt/deploy-rbutil.py)0
-rwxr-xr-xutils/common/deploy-themeeditor.py51
-rwxr-xr-xutils/common/deploy.py (renamed from rbutil/rbutilqt/deploy.py)0
3 files changed, 51 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/deploy-rbutil.py b/utils/common/deploy-rbutil.py
index 10c3159fe2..10c3159fe2 100755
--- a/rbutil/rbutilqt/deploy-rbutil.py
+++ b/utils/common/deploy-rbutil.py
diff --git a/utils/common/deploy-themeeditor.py b/utils/common/deploy-themeeditor.py
new file mode 100755
index 0000000000..527976616c
--- /dev/null
+++ b/utils/common/deploy-themeeditor.py
@@ -0,0 +1,51 @@
+#!/usr/bin/python
+# __________ __ ___.
+# Open \______ \ ____ ____ | | _\_ |__ _______ ___
+# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+# \/ \/ \/ \/ \/
+# $Id$
+#
+# Copyright (c) 2010 Dominik Riebeling
+#
+# All files in this archive are subject to the GNU General Public License.
+# See the file COPYING in the source tree root for full license agreement.
+#
+# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+# KIND, either express or implied.
+#
+
+import deploy
+import sys
+
+deploy.program = "rbthemeeditor"
+deploy.project = "utils/themeeditor/themeeditor.pro"
+deploy.svnserver = "svn://svn.rockbox.org/rockbox/"
+deploy.svnpaths = \
+ [ "utils/themeeditor/",
+ "lib/skin_parser/" ]
+deploy.useupx = False
+deploy.bundlecopy = {
+ "resources/windowicon.icns" : "Contents/Resources/",
+ "Info.plist" : "Contents/"
+}
+# Windows nees some special treatment. Differentiate between program name
+# and executable filename.
+if sys.platform == "win32":
+ deploy.progexe = "Release/" + deploy.program + ".exe"
+ deploy.make = "mingw32-make"
+elif sys.platform == "darwin":
+ deploy.progexe = deploy.program + ".app"
+ # OS X 10.6 defaults to gcc 4.2. Building universal binaries that are
+ # compatible with 10.4 requires using gcc-4.0.
+ if not "QMAKESPEC" in deploy.environment:
+ deploy.environment["QMAKESPEC"] = "macx-g++40"
+else:
+ deploy.progexe = deploy.program
+# all files of the program. Will get put into an archive after building
+# (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg.
+deploy.programfiles = [ deploy.progexe ]
+
+deploy.deploy()
+
diff --git a/rbutil/rbutilqt/deploy.py b/utils/common/deploy.py
index f4f3fac786..f4f3fac786 100755
--- a/rbutil/rbutilqt/deploy.py
+++ b/utils/common/deploy.py