Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 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 |
Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 20 | |
| 21 | deploy.program = "RockboxUtility" |
| 22 | deploy.project = "rbutil/rbutilqt/rbutilqt.pro" |
| 23 | deploy.svnserver = "svn://svn.rockbox.org/rockbox/" |
| 24 | deploy.svnpaths = \ |
| 25 | [ "rbutil/", |
| 26 | "tools/ucl", |
| 27 | "tools/rbspeex", |
| 28 | "apps/codecs/libspeex", |
| 29 | "docs/COPYING", |
Dominik Riebeling | 839f777 | 2010-09-04 18:50:12 +0000 | [diff] [blame] | 30 | "docs/gpl-2.0.html", |
Dominik Riebeling | 9b7b653 | 2011-06-04 20:31:11 +0000 | [diff] [blame] | 31 | "docs/logo/rockbox-clef.svg", |
Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 32 | "docs/CREDITS", |
| 33 | "tools/iriver.c", |
| 34 | "tools/Makefile", |
| 35 | "tools/mkboot.h", |
| 36 | "tools/voicefont.c", |
| 37 | "tools/VOICE_PAUSE.wav", |
Dominik Riebeling | b458d33 | 2011-10-19 21:50:01 +0000 | [diff] [blame] | 38 | "tools/voice-corrections.txt", |
Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 39 | "tools/wavtrim.h", |
| 40 | "tools/iriver.h", |
| 41 | "tools/mkboot.c", |
| 42 | "tools/telechips.c", |
| 43 | "tools/telechips.h", |
| 44 | "tools/voicefont.h", |
| 45 | "tools/wavtrim.c", |
| 46 | "tools/sapi_voice.vbs" ] |
| 47 | deploy.useupx = False |
| 48 | deploy.bundlecopy = { |
| 49 | "icons/rbutilqt.icns" : "Contents/Resources/", |
| 50 | "Info.plist" : "Contents/" |
| 51 | } |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 52 | deploy.progexe = { |
| 53 | "win32" : "release/RockboxUtility.exe", |
| 54 | "darwin" : "RockboxUtility.app", |
Dominik Riebeling | 8059347 | 2011-03-07 21:22:57 +0000 | [diff] [blame] | 55 | "linux2" : "RockboxUtility" |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 56 | } |
Dominik Riebeling | 2c29776 | 2011-04-06 20:17:29 +0000 | [diff] [blame] | 57 | deploy.regreplace = { |
Dominik Riebeling | 6ba552c | 2011-05-05 17:19:00 +0000 | [diff] [blame] | 58 | "rbutil/rbutilqt/version.h" : [["SVN \$.*\$", "SVN r%REVISION%"], |
| 59 | ["(^#define BUILDID).*", "\\1 \"-%BUILDID%\""]], |
| 60 | "rbutil/rbutilqt/Info.plist" : [["SVN \$.*\$", "SVN r%REVISION%"]], |
Dominik Riebeling | 2c29776 | 2011-04-06 20:17:29 +0000 | [diff] [blame] | 61 | } |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 62 | # OS X 10.6 defaults to gcc 4.2. Building universal binaries that are |
| 63 | # compatible with 10.4 requires using gcc-4.0. |
| 64 | deploy.qmakespec = { |
| 65 | "win32" : "", |
| 66 | "darwin" : "macx-g++40", |
Dominik Riebeling | 8059347 | 2011-03-07 21:22:57 +0000 | [diff] [blame] | 67 | "linux2" : "" |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 68 | } |
| 69 | deploy.make = { |
| 70 | "win32" : "mingw32-make", |
| 71 | "darwin" : "make", |
Dominik Riebeling | 8059347 | 2011-03-07 21:22:57 +0000 | [diff] [blame] | 72 | "linux2" : "make" |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 73 | } |
| 74 | |
Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 75 | # all files of the program. Will get put into an archive after building |
| 76 | # (zip on w32, tar.bz2 on Linux). Does not apply on Mac which uses dmg. |
Dominik Riebeling | 43a40ca | 2011-03-06 00:04:26 +0000 | [diff] [blame] | 77 | # progexe will get added automatically. |
| 78 | deploy.programfiles = [ ] |
| 79 | deploy.nsisscript = "" |
Dominik Riebeling | a9acd1f | 2010-07-28 18:37:12 +0000 | [diff] [blame] | 80 | |
| 81 | deploy.deploy() |