diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-15 21:04:28 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-24 18:05:53 +0100 |
commit | c876d3bbefe0dc00c27ca0c12d29da5874946962 (patch) | |
tree | 69f468a185a369b01998314bc3ecc19b70f4fcaa /utils/rbutil.pro | |
parent | 6c6f0757d7a902feb293be165d1490c42bc8e7ad (diff) | |
download | rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.tar.gz rockbox-c876d3bbefe0dc00c27ca0c12d29da5874946962.zip |
rbutil: Merge rbutil with utils folder.
rbutil uses several components from the utils folder, and can be
considered part of utils too. Having it in a separate folder is an
arbitrary split that doesn't help anymore these days, so merge them.
This also allows other utils to easily use libtools.make without the
need to navigate to a different folder.
Change-Id: I3fc2f4de19e3e776553efb5dea5f779dfec0dc21
Diffstat (limited to 'utils/rbutil.pro')
-rw-r--r-- | utils/rbutil.pro | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/utils/rbutil.pro b/utils/rbutil.pro new file mode 100644 index 0000000000..d5d9053d6d --- /dev/null +++ b/utils/rbutil.pro | |||
@@ -0,0 +1,83 @@ | |||
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 | |||