diff options
Diffstat (limited to 'utils/rbutil.pro')
-rw-r--r-- | utils/rbutil.pro | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/utils/rbutil.pro b/utils/rbutil.pro deleted file mode 100644 index d5d9053d6d..0000000000 --- a/utils/rbutil.pro +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | # | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # | ||
9 | # All files in this archive are subject to the GNU General Public License. | ||
10 | # See the file COPYING in the source tree root for full license agreement. | ||
11 | # | ||
12 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
13 | # KIND, either express or implied. | ||
14 | # | ||
15 | |||
16 | unix:!mac{ | ||
17 | CCACHE = $$system(which ccache) | ||
18 | !isEmpty(CCACHE) { | ||
19 | message("using ccache at $$CCACHE") | ||
20 | QMAKE_CXX = ccache $$QMAKE_CXX | ||
21 | QMAKE_CC = ccache $$QMAKE_CC | ||
22 | } | ||
23 | } | ||
24 | |||
25 | TEMPLATE = subdirs | ||
26 | SUBDIRS = rbutilqt ipodpatcher sansapatcher | ||
27 | |||
28 | rbutilqt.depends = ipodpatcher sansapatcher | ||
29 | |||
30 | |||
31 | unix:!macx { | ||
32 | LINUXDEPLOYQTURL = https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage | ||
33 | LINUXDEPLOYURL = https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
34 | |||
35 | appimage_dl.commands = \ | ||
36 | curl -C- -fLO $$LINUXDEPLOYQTURL -fLO $$LINUXDEPLOYURL ; \ | ||
37 | chmod +x *.AppImage; \ | ||
38 | touch appimage_dl | ||
39 | |||
40 | appimage_prepare.commands = \ | ||
41 | mkdir -p AppImage/usr/bin; \ | ||
42 | cp sansapatcher/sansapatcher AppImage/usr/bin; \ | ||
43 | cp ipodpatcher/ipodpatcher AppImage/usr/bin; \ | ||
44 | cp rbutilqt/RockboxUtility AppImage/usr/bin | ||
45 | |||
46 | appimage_prepare.depends = ipodpatcher sansapatcher rbutilqt appimage_dl | ||
47 | |||
48 | appimage.commands = \ | ||
49 | ./linuxdeploy-x86_64.AppImage \ | ||
50 | --appdir AppImage \ | ||
51 | --verbosity 2 --plugin qt --output appimage \ | ||
52 | -e AppImage/usr/bin/RockboxUtility \ | ||
53 | -d $$_PRO_FILE_PWD_/rbutilqt/RockboxUtility.desktop \ | ||
54 | -i $$_PRO_FILE_PWD_/../docs/logo/rockbox-clef.svg | ||
55 | appimage.depends = appimage_prepare | ||
56 | |||
57 | QMAKE_EXTRA_TARGETS += appimage_dl appimage_prepare appimage | ||
58 | } | ||
59 | |||
60 | macx { | ||
61 | dmgbuild.commands = \ | ||
62 | python3 -m venv venv; \ | ||
63 | venv/bin/python -m pip install dmgbuild | ||
64 | |||
65 | appbundle_merge.commands = \ | ||
66 | cp -pr rbutilqt/RockboxUtility.app .; \ | ||
67 | cp ipodpatcher/ipodpatcher.app/Contents/MacOS/ipodpatcher RockboxUtility.app/Contents/MacOS; \ | ||
68 | cp sansapatcher/sansapatcher.app/Contents/MacOS/sansapatcher RockboxUtility.app/Contents/MacOS | ||
69 | |||
70 | appbundle_deploy.commands = \ | ||
71 | $$[QT_INSTALL_BINS]/macdeployqt RockboxUtility.app | ||
72 | appbundle_deploy.depends = appbundle_merge | ||
73 | |||
74 | dmg.commands = \ | ||
75 | venv/bin/dmgbuild -s $$_PRO_FILE_PWD_/rbutilqt/dmgbuild.cfg \ | ||
76 | -Dbasepath=$$_PRO_FILE_PWD_ \"Rockbox Utility\" RockboxUtility.dmg | ||
77 | |||
78 | dmg.depends = appbundle_merge appbundle_deploy dmgbuild | ||
79 | |||
80 | QMAKE_EXTRA_TARGETS += dmgbuild appbundle_merge appbundle_deploy dmg | ||
81 | } | ||
82 | |||
83 | |||