From 12d9516ec3a7d511db14866b5226fe7891380e3e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 18 Jan 2020 14:36:41 +0100 Subject: [PATCH] sigrok-cross-android: Enable Qt translations support. An additional workaround is needed in android-qt.patch, since there is an (upstream) build issue in "qtplugininfo" from qttools. --- cross-compile/android/android-qt.patch | 12 ++++++++++++ cross-compile/android/sigrok-cross-android | 5 +---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/cross-compile/android/android-qt.patch b/cross-compile/android/android-qt.patch index 762ac85..417cee5 100644 --- a/cross-compile/android/android-qt.patch +++ b/cross-compile/android/android-qt.patch @@ -22,3 +22,15 @@ diff --git a/qtbase/mkspecs/features/qt_common.prf b/qtbase/mkspecs/features/qt_ + SUBDIRS = qdbus + qtHaveModule(widgets): SUBDIRS += qdbusviewer +} +--- a/qttools/src/src.pro 2020-01-17 17:05:25.333379076 +0100 ++++ b/qttools/src/src.pro 2020-01-17 17:05:32.037403499 +0100 +@@ -14,8 +14,7 @@ qtHaveModule(widgets) { + } + + SUBDIRS += linguist \ +- qdoc \ +- qtplugininfo ++ qdoc + if(!android|android_app):!ios: SUBDIRS += qtpaths + + mac { diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index a88f1c3..817b0ae 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -466,21 +466,18 @@ CC= CXX= ./configure \ -android-arch "$TARGET_ARCH" \ -android-toolchain-version "$NDK_TOOLCHAIN_VERSION" \ -skip qtconnectivity \ - -skip qtdeclarative \ -skip qtlocation \ -skip qtmultimedia \ -skip qtscript \ -skip qtsensors \ -skip qtserialport \ - -skip qttools \ - -skip qttranslations \ -skip qtwebchannel \ -skip qtwebsockets \ -skip qtxmlpatterns \ -opensource -confirm-license -silent -no-warnings-are-errors export ANDROID_API_VERSION=android-$VER_AND_API export ANDROID_BUILD_TOOLS_REVISION=$VER_AND_BT -make module-qtbase module-qtandroidextras module-qtsvg module-qtimageformats $PARALLEL $V +make module-qtbase module-qtandroidextras module-qtsvg module-qtimageformats module-qttranslations $PARALLEL $V make install $V cd .. -- 2.30.2