mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Merge bitcoin/bitcoin#23757: [build] Android: fix GUI not loading on Qt 5.15
27f353d8ef
build, android: Fix Android GUI not loading on Qt 5.15 (Igor Cota)6fc5c772d4
build, qt: use static QAndroidPlatformIntegrationPlugin (Igor Cota) Pull request description: PR moved from https://github.com/bitcoin-core/gui/pull/504 as it escaped the confines of `src/qt`. ACKs for top commit: hebasto: re-ACK27f353d8ef
promag: utACK27f353d8ef
Tree-SHA512: 4b6e6b2fb1923b89934f11caa8c05c6f340881689273f0c08916144e623f03fd5b781f1a53af83f6e87dce211fe02a1cb87e5943d13811c791cc8aa458184d9f
This commit is contained in:
commit
965ffe2bed
7 changed files with 26 additions and 7 deletions
|
@ -394,8 +394,7 @@ bitcoin_qt_apk: FORCE
|
|||
cp $(dir $(lastword $(CC)))../sysroot/usr/lib/$(host_alias)/libc++_shared.so $(APK_LIB_DIR)
|
||||
tar xf $(QT_BASE_PATH) -C qt/android/src/ $(QT_BASE_TLD)src/android/jar/src --strip-components=5
|
||||
tar xf $(QT_BASE_PATH) -C qt/android/src/ $(QT_BASE_TLD)src/android/java/src --strip-components=5
|
||||
tar xf $(QT_BASE_PATH) -C qt/android/res/ $(QT_BASE_TLD)src/android/java/res --strip-components=5
|
||||
cp qt/bitcoin-qt $(APK_LIB_DIR)/libbitcoin-qt.so
|
||||
cp qt/bitcoin-qt $(APK_LIB_DIR)/libbitcoin-qt_$(ANDROID_ARCH).so
|
||||
cd qt/android && gradle wrapper --gradle-version=6.6.1
|
||||
cd qt/android && ./gradlew build
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ if ENABLE_ZMQ
|
|||
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_ZMQ) $(ZMQ_LIBS)
|
||||
endif
|
||||
qt_test_test_bitcoin_qt_LDADD += $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBBITCOIN_UTIL) $(LIBBITCOIN_CONSENSUS) $(LIBBITCOIN_CRYPTO) $(LIBUNIVALUE) $(LIBLEVELDB) \
|
||||
$(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) $(QT_LIBS) \
|
||||
$(LIBLEVELDB_SSE42) $(LIBMEMENV) $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) \
|
||||
$(QR_LIBS) $(BDB_LIBS) $(MINIUPNPC_LIBS) $(NATPMP_LIBS) $(LIBSECP256K1) \
|
||||
$(EVENT_PTHREADS_LIBS) $(EVENT_LIBS) $(SQLITE_LIBS)
|
||||
qt_test_test_bitcoin_qt_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(QT_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS)
|
||||
|
|
4
src/qt/android/.gitignore
vendored
4
src/qt/android/.gitignore
vendored
|
@ -1,9 +1,7 @@
|
|||
/.gradle
|
||||
/build
|
||||
/gradle/wrapper
|
||||
/gradle
|
||||
/gradlew*
|
||||
/libs
|
||||
/res/layout
|
||||
/res/values*
|
||||
/src/org/kde
|
||||
/src/org/qtproject
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
<meta-data android:name="android.app.background_running" android:value="true"/>
|
||||
<meta-data android:name="android.app.auto_screen_scale_factor" android:value="true"/>
|
||||
<meta-data android:name="android.app.extract_android_style" android:value="default"/>
|
||||
</activity>
|
||||
<meta-data android:name="android.app.load_local_libs_resource_id" android:resource="@array/load_local_libs"/>
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
17
src/qt/android/res/values/libs.xml
Normal file
17
src/qt/android/res/values/libs.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<array name="load_local_libs">
|
||||
<item>
|
||||
arm64-v8a;libbitcoin-qt_arm64-v8a.so
|
||||
</item>
|
||||
<item>
|
||||
armeabi-v7a;libbitcoin-qt_armeabi-v7a.so
|
||||
</item>
|
||||
<item>
|
||||
x86_64;libbitcoin-qt_x86_64.so
|
||||
</item>
|
||||
<item>
|
||||
x86;libbitcoin-qt_x86.so
|
||||
</item>
|
||||
</array>
|
||||
</resources>
|
|
@ -65,6 +65,8 @@ Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin);
|
|||
#elif defined(QT_QPA_PLATFORM_COCOA)
|
||||
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
|
||||
Q_IMPORT_PLUGIN(QMacStylePlugin);
|
||||
#elif defined(QT_QPA_PLATFORM_ANDROID)
|
||||
Q_IMPORT_PLUGIN(QAndroidPlatformIntegrationPlugin)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
|
|||
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
|
||||
#elif defined(QT_QPA_PLATFORM_COCOA)
|
||||
Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
|
||||
#elif defined(QT_QPA_PLATFORM_ANDROID)
|
||||
Q_IMPORT_PLUGIN(QAndroidPlatformIntegrationPlugin)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue