diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-07-28 18:46:20 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-07-28 18:46:20 +0000 |
commit | 05e5fbf5e2faa46e7d8470ee4d095153d06322cb (patch) | |
tree | 1dcf299300421bd430520f5ddae882dab4d43490 /utils/common/deploy-rbutil.py | |
parent | 7722c1d459a1c9d8d7be995e83b65daf70f7714a (diff) | |
download | rockbox-05e5fbf5e2faa46e7d8470ee4d095153d06322cb.tar.gz 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
Diffstat (limited to 'utils/common/deploy-rbutil.py')
-rwxr-xr-x | utils/common/deploy-rbutil.py | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/utils/common/deploy-rbutil.py b/utils/common/deploy-rbutil.py new file mode 100755 index 0000000000..10c3159fe2 --- /dev/null +++ b/utils/common/deploy-rbutil.py | |||
@@ -0,0 +1,68 @@ | |||
1 | #!/usr/bin/python | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # $Id$ | ||
9 | # | ||
10 | # Copyright (c) 2010 Dominik Riebeling | ||
11 | # | ||
12 | # All files in this archive are subject to the GNU General Public License. | ||
13 | # See the file COPYING in the source tree root for full license agreement. | ||
14 | # | ||
15 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | # KIND, either express or implied. | ||
17 | # | ||
18 | |||
19 | import deploy | ||
20 | import sys | ||
21 | |||
22 | deploy.program = "RockboxUtility" | ||
23 | deploy.project = "rbutil/rbutilqt/rbutilqt.pro" | ||
24 | deploy.svnserver = "svn://svn.rockbox.org/rockbox/" | ||
25 | deploy.svnpaths = \ | ||
26 | [ "rbutil/", | ||
27 | "tools/ucl", | ||
28 | "tools/rbspeex", | ||
29 | "apps/codecs/libspeex", | ||
30 | "docs/COPYING", | ||
31 | "docs/CREDITS", | ||
32 | "tools/iriver.c", | ||
33 | "tools/Makefile", | ||
34 | "tools/mkboot.h", | ||
35 | "tools/voicefont.c", | ||
36 | "tools/VOICE_PAUSE.wav", | ||
37 | "tools/wavtrim.h", | ||
38 | "tools/iriver.h", | ||
39 | "tools/mkboot.c", | ||
40 | "tools/telechips.c", | ||
41 | "tools/telechips.h", | ||
42 | "tools/voicefont.h", | ||
43 | "tools/wavtrim.c", | ||
44 | "tools/sapi_voice.vbs" ] | ||
45 | deploy.useupx = False | ||
46 | deploy.bundlecopy = { | ||
47 | "icons/rbutilqt.icns" : "Contents/Resources/", | ||
48 | "Info.plist" : "Contents/" | ||
49 | } | ||
50 | # Windows nees some special treatment. Differentiate between program name | ||
51 | # and executable filename. | ||
52 | if sys.platform == "win32": | ||
53 | deploy.progexe = "Release/" + deploy.program + ".exe" | ||
54 | deploy.make = "mingw32-make" | ||
55 | elif sys.platform == "darwin": | ||
56 | deploy.progexe = deploy.program + ".app" | ||
57 | # OS X 10.6 defaults to gcc 4.2. Building universal binaries that are | ||
58 | # compatible with 10.4 requires using gcc-4.0. | ||
59 | if not "QMAKESPEC" in deploy.environment: | ||
60 | deploy.environment["QMAKESPEC"] = "macx-g++40" | ||
61 | else: | ||
62 | deploy.progexe = deploy.program | ||
63 | # all files of the program. Will get put into an archive after building | ||
64 | # (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg. | ||
65 | deploy.programfiles = [ deploy.progexe ] | ||
66 | |||
67 | deploy.deploy() | ||
68 | |||