From c8fa53050d30b667f224668ca5de2bb7f07a1b3d Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 2 Oct 2020 21:11:24 +0200 Subject: rbutil: Add project file for building multiple binaries. To use ipodpatcher and sansapatcher as external binaries (so we can do proper permission elevation) we need to build them using qmake as part of the main build. Add a subdirs template based project file to do that, and project files for the patchers. Move Linux appimage rules one level up, since it needs to include the patchers as well. Change-Id: I63ee59372668f4319402df65a77a6f04521d133b --- rbutil/rbutil.pro | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 rbutil/rbutil.pro (limited to 'rbutil/rbutil.pro') diff --git a/rbutil/rbutil.pro b/rbutil/rbutil.pro new file mode 100644 index 0000000000..db3391d9a8 --- /dev/null +++ b/rbutil/rbutil.pro @@ -0,0 +1,60 @@ +# +# __________ __ ___. +# Open \______ \ ____ ____ | | _\_ |__ _______ ___ +# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +# \/ \/ \/ \/ \/ +# +# 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. +# + +unix:!mac{ + CCACHE = $$system(which ccache) + !isEmpty(CCACHE) { + message("using ccache at $$CCACHE") + QMAKE_CXX = ccache $$QMAKE_CXX + QMAKE_CC = ccache $$QMAKE_CC + } +} + +TEMPLATE = subdirs +SUBDIRS = rbutilqt ipodpatcher sansapatcher + +rbutilqt.depends = ipodpatcher sansapatcher + + +unix:!macx { + LINUXDEPLOYQTURL = https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage + LINUXDEPLOYURL = https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage + + appimage_dl.commands = \ + curl -C- -fLO $$LINUXDEPLOYQTURL -fLO $$LINUXDEPLOYURL ; \ + chmod +x *.AppImage; \ + touch appimage_dl + + appimage_prepare.commands = \ + mkdir -p AppImage/usr/bin; \ + cp sansapatcher/sansapatcher AppImage/usr/bin; \ + cp ipodpatcher/ipodpatcher AppImage/usr/bin; \ + cp rbutilqt/RockboxUtility AppImage/usr/bin + + appimage_prepare.depends = ipodpatcher sansapatcher rbutilqt appimage_dl + + appimage.commands = \ + ./linuxdeploy-x86_64.AppImage \ + --appdir AppImage \ + --verbosity 2 --plugin qt --output appimage \ + -e AppImage/usr/bin/RockboxUtility \ + -d $$_PRO_FILE_PWD_/rbutilqt/RockboxUtility.desktop \ + -i $$_PRO_FILE_PWD_/../docs/logo/rockbox-clef.svg + appimage.depends = appimage_prepare + + QMAKE_EXTRA_TARGETS += appimage_dl appimage_prepare appimage +} + + -- cgit