mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
partial bitcoin#17227: Add Android packaging support
This commit is contained in:
parent
1763f727b5
commit
ae45b570c2
@ -9,7 +9,7 @@ $(package)_qt_libs=corelib network widgets gui plugins testlib
|
|||||||
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch
|
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no-xlib.patch
|
||||||
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
||||||
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
|
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
|
||||||
$(package)_patches+= fix_qpainter_non_determinism.patch fix_lib_paths.patch
|
$(package)_patches+= fix_qpainter_non_determinism.patch fix_lib_paths.patch fix_android_pch.patch
|
||||||
$(package)_patches+= fix_limits_header.patch
|
$(package)_patches+= fix_limits_header.patch
|
||||||
|
|
||||||
# Update OSX_QT_TRANSLATIONS when this is updated
|
# Update OSX_QT_TRANSLATIONS when this is updated
|
||||||
@ -156,6 +156,7 @@ $(package)_config_opts_android += -qt-freetype
|
|||||||
$(package)_config_opts_android += -no-fontconfig
|
$(package)_config_opts_android += -no-fontconfig
|
||||||
$(package)_config_opts_android += -L $(host_prefix)/lib
|
$(package)_config_opts_android += -L $(host_prefix)/lib
|
||||||
$(package)_config_opts_android += -I $(host_prefix)/include
|
$(package)_config_opts_android += -I $(host_prefix)/include
|
||||||
|
$(package)_config_opts_android += -no-feature-vulkan
|
||||||
|
|
||||||
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
|
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
|
||||||
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
|
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
|
||||||
@ -215,6 +216,7 @@ define $(package)_preprocess_cmds
|
|||||||
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/fix_android_qmake_conf.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_android_qmake_conf.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/fix_android_jni_static.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_android_jni_static.patch && \
|
||||||
|
patch -p1 -i $($(package)_patch_dir)/fix_android_pch.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
|
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/fix_qpainter_non_determinism.patch &&\
|
patch -p1 -i $($(package)_patch_dir)/fix_qpainter_non_determinism.patch &&\
|
||||||
patch -p1 -i $($(package)_patch_dir)/no_sdk_version_check.patch && \
|
patch -p1 -i $($(package)_patch_dir)/no_sdk_version_check.patch && \
|
||||||
|
10
depends/patches/qt/fix_android_pch.patch
Normal file
10
depends/patches/qt/fix_android_pch.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- old/qtbase/mkspecs/common/android-base-head.conf
|
||||||
|
+++ new/qtbase/mkspecs/common/android-base-head.conf
|
||||||
|
@@ -73,6 +73,6 @@ CROSS_COMPILE = $$NDK_TOOLCHAIN_PATH/bin/$$NDK_TOOLS_PREFIX-
|
||||||
|
QMAKE_PCH_OUTPUT_EXT = .gch
|
||||||
|
|
||||||
|
QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
||||||
|
-QMAKE_CFLAGS_USE_PRECOMPILE = -include ${QMAKE_PCH_OUTPUT_BASE}
|
||||||
|
+QMAKE_CFLAGS_USE_PRECOMPILE = -include-pch ${QMAKE_PCH_OUTPUT}
|
||||||
|
QMAKE_CXXFLAGS_PRECOMPILE = -x c++-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
|
||||||
|
QMAKE_CXXFLAGS_USE_PRECOMPILE = $$QMAKE_CFLAGS_USE_PRECOMPILE
|
Loading…
Reference in New Issue
Block a user