mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
e43d75bca2
168e5e4a50
Merge bitcoin/bitcoin#28877: bench: Update nanobench to 4.3.11 (fanquake)417c86b949
Merge bitcoin/bitcoin#28105: doc: Clarify that -fstack-reuse=all bugs exist on all versions of GCC (fanquake)a620cccd81
Merge bitcoin/bitcoin#26970: test: fix immediate tx relay in wallet_groups.py (merge-script)f115d9c27f
Merge bitcoin/bitcoin#27061: doc: Document affected gcc versions for -fstack-reuse=none workaround (fanquake)6889a8db29
Merge bitcoin/bitcoin#27056: doc: use arch agnostic clang path in fuzzing doc (macOS) (MarcoFalke)97858384ec
Merge bitcoin/bitcoin#21995: build: Make dependency package archive timestamps deterministic (fanquake)c4760bb32e
Merge bitcoin/bitcoin#27030: Update nanobench to version v4.3.10 (fanquake)a7e3c2c916
Merge bitcoin-core/gui#705: doc: Fix comment about how wallet txs are sorted (Hennadii Stepanov)44e6c9e902
Merge bitcoin/bitcoin#27004: test: Use std::unique_ptr over manual delete in coins_tests (fanquake)2ab1989a39
Merge bitcoin/bitcoin#27010: refactor: use `Hash` helpers for double-SHA256 calculations (MarcoFalke)c681aaad30
Merge bitcoin/bitcoin#22811: build: Fix depends build system when working with subtargets (fanquake)d1b7386374
Merge bitcoin/bitcoin#26930: fuzz: Actually use mocked mempool in tx_pool target (MarcoFalke)cd53a195a6
Merge bitcoin/bitcoin#26873: doc: add databases/py-sqlite3 to FreeBSD test suite deps (fanquake)8cc5f11a2f
Merge bitcoin/bitcoin#26506: refactor: rpc: use convenience fn to auto parse non-string parameters (MarcoFalke)662302c42b
Merge bitcoin/bitcoin#26805: tests: Use unique port for ZMQ tests to allow for multiple test instances (MarcoFalke)66a3981a7a
Merge bitcoin/bitcoin#24279: build: Make `$(package)_*_env` available to all `$(package)_*_cmds` (fanquake)3261092f85
Merge bitcoin/bitcoin#26520: doc: test: update/fix TestShell example instructions (fanquake)5f78859562
Merge bitcoin/bitcoin#25248: refactor: Add LIFETIMEBOUND / -Wdangling-gsl to Assert() (fanquake)459425776c
Merge bitcoin/bitcoin#26229: test: Use proper Boost macros instead of assertions (MacroFake)3be81a2d4c
Merge bitcoin/bitcoin#25915: test: Fix wallet_balance intermittent issue (Andrew Chow)da1d3f2654
Merge bitcoin/bitcoin#25663: tracing: do not use `coin` after move in `CCoinsViewCache::AddCoin` (MacroFake) Pull request description: ## Issue being fixed or feature implemented Batch of trivial backports ## What was done? See commits ## How Has This Been Tested? built locally; large combined merge passed tests locally ## Breaking Changes Should be none ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: UdjinM6: utACK168e5e4a50
Tree-SHA512: 3099e09bc500a86bffafea0db136e3213f69b69e7af74304c171780e56ff1ff4c973a228962cf80aec62158ded19365d6f8506ef202a15751a43851574f082e2
299 lines
15 KiB
Makefile
299 lines
15 KiB
Makefile
package=qt
|
|
$(package)_version=5.15.11
|
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.15/$($(package)_version)/submodules
|
|
$(package)_suffix=everywhere-opensource-src-$($(package)_version).tar.xz
|
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
|
$(package)_sha256_hash=425ad301acd91ca66c10c0dabee0704e2d0cd2801a6b670115800cbb95f84846
|
|
$(package)_linux_dependencies=freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
|
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
|
$(package)_linguist_tools = lrelease lupdate lconvert
|
|
$(package)_patches = qt.pro
|
|
$(package)_patches += qttools_src.pro
|
|
$(package)_patches += mac-qmake.conf
|
|
$(package)_patches += fix_qt_pkgconfig.patch
|
|
$(package)_patches += fix_qt_placeholders.patch
|
|
$(package)_patches += no-xlib.patch
|
|
$(package)_patches += fix_android_jni_static.patch
|
|
$(package)_patches += dont_hardcode_pwd.patch
|
|
$(package)_patches += qtbase-moc-ignore-gcc-macro.patch
|
|
$(package)_patches += use_android_ndk23.patch
|
|
$(package)_patches += rcc_hardcode_timestamp.patch
|
|
$(package)_patches += duplicate_lcqpafonts.patch
|
|
$(package)_patches += guix_cross_lib_path.patch
|
|
$(package)_patches += fast_fixed_dtoa_no_optimize.patch
|
|
$(package)_patches += fix-macos-linker.patch
|
|
$(package)_patches += memory_resource.patch
|
|
$(package)_patches += windows_lto.patch
|
|
$(package)_patches += fix-minimum-macos.patch
|
|
|
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
|
$(package)_qttranslations_sha256_hash=a31785948c640b7c66d9fe2db4993728ca07f64e41c560b3625ad191b276ff20
|
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
|
$(package)_qttools_sha256_hash=7cd847ae6ff09416df617136eadcaf0eb98e3bc9b89979219a3ea8111fb8d339
|
|
|
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_env = QT_MAC_SDK_NO_VERSION_CHECK=1
|
|
$(package)_config_opts_release = -release
|
|
$(package)_config_opts_release += -silent
|
|
$(package)_config_opts_debug = -debug
|
|
$(package)_config_opts_debug += -optimized-tools
|
|
$(package)_config_opts += -bindir $(build_prefix)/bin
|
|
$(package)_config_opts += -c++std c++17
|
|
$(package)_config_opts += -confirm-license
|
|
$(package)_config_opts += -hostprefix $(build_prefix)
|
|
$(package)_config_opts += -no-compile-examples
|
|
$(package)_config_opts += -no-cups
|
|
$(package)_config_opts += -no-egl
|
|
$(package)_config_opts += -no-eglfs
|
|
$(package)_config_opts += -no-evdev
|
|
$(package)_config_opts += -no-gif
|
|
$(package)_config_opts += -no-glib
|
|
$(package)_config_opts += -no-icu
|
|
$(package)_config_opts += -no-ico
|
|
$(package)_config_opts += -no-iconv
|
|
$(package)_config_opts += -no-kms
|
|
$(package)_config_opts += -no-linuxfb
|
|
$(package)_config_opts += -no-libjpeg
|
|
$(package)_config_opts += -no-libproxy
|
|
$(package)_config_opts += -no-libudev
|
|
$(package)_config_opts += -no-mimetype-database
|
|
$(package)_config_opts += -no-mtdev
|
|
$(package)_config_opts += -no-openssl
|
|
$(package)_config_opts += -no-openvg
|
|
$(package)_config_opts += -no-reduce-relocations
|
|
$(package)_config_opts += -no-schannel
|
|
$(package)_config_opts += -no-sctp
|
|
$(package)_config_opts += -no-securetransport
|
|
$(package)_config_opts += -no-sql-db2
|
|
$(package)_config_opts += -no-sql-ibase
|
|
$(package)_config_opts += -no-sql-oci
|
|
$(package)_config_opts += -no-sql-tds
|
|
$(package)_config_opts += -no-sql-mysql
|
|
$(package)_config_opts += -no-sql-odbc
|
|
$(package)_config_opts += -no-sql-psql
|
|
$(package)_config_opts += -no-sql-sqlite
|
|
$(package)_config_opts += -no-sql-sqlite2
|
|
$(package)_config_opts += -no-system-proxies
|
|
$(package)_config_opts += -no-use-gold-linker
|
|
$(package)_config_opts += -no-zstd
|
|
$(package)_config_opts += -nomake examples
|
|
$(package)_config_opts += -nomake tests
|
|
$(package)_config_opts += -nomake tools
|
|
$(package)_config_opts += -opensource
|
|
$(package)_config_opts += -pkg-config
|
|
$(package)_config_opts += -prefix $(host_prefix)
|
|
$(package)_config_opts += -qt-libpng
|
|
$(package)_config_opts += -qt-pcre
|
|
$(package)_config_opts += -qt-harfbuzz
|
|
$(package)_config_opts += -qt-zlib
|
|
$(package)_config_opts += -static
|
|
$(package)_config_opts += -v
|
|
$(package)_config_opts += -no-feature-bearermanagement
|
|
$(package)_config_opts += -no-feature-colordialog
|
|
$(package)_config_opts += -no-feature-commandlineparser
|
|
$(package)_config_opts += -no-feature-concurrent
|
|
$(package)_config_opts += -no-feature-dial
|
|
$(package)_config_opts += -no-feature-fontcombobox
|
|
$(package)_config_opts += -no-feature-ftp
|
|
$(package)_config_opts += -no-feature-http
|
|
$(package)_config_opts += -no-feature-image_heuristic_mask
|
|
$(package)_config_opts += -no-feature-keysequenceedit
|
|
$(package)_config_opts += -no-feature-lcdnumber
|
|
$(package)_config_opts += -no-feature-networkdiskcache
|
|
$(package)_config_opts += -no-feature-networkproxy
|
|
$(package)_config_opts += -no-feature-pdf
|
|
$(package)_config_opts += -no-feature-printdialog
|
|
$(package)_config_opts += -no-feature-printer
|
|
$(package)_config_opts += -no-feature-printpreviewdialog
|
|
$(package)_config_opts += -no-feature-printpreviewwidget
|
|
$(package)_config_opts += -no-feature-sessionmanager
|
|
$(package)_config_opts += -no-feature-socks5
|
|
$(package)_config_opts += -no-feature-sql
|
|
$(package)_config_opts += -no-feature-sqlmodel
|
|
$(package)_config_opts += -no-feature-statemachine
|
|
$(package)_config_opts += -no-feature-syntaxhighlighter
|
|
$(package)_config_opts += -no-feature-textbrowser
|
|
$(package)_config_opts += -no-feature-textmarkdownwriter
|
|
$(package)_config_opts += -no-feature-textodfwriter
|
|
$(package)_config_opts += -no-feature-topleveldomain
|
|
$(package)_config_opts += -no-feature-undocommand
|
|
$(package)_config_opts += -no-feature-undogroup
|
|
$(package)_config_opts += -no-feature-undostack
|
|
$(package)_config_opts += -no-feature-undoview
|
|
$(package)_config_opts += -no-feature-vnc
|
|
$(package)_config_opts += -no-feature-wizard
|
|
$(package)_config_opts += -no-feature-xml
|
|
|
|
$(package)_config_opts_darwin = -no-dbus
|
|
$(package)_config_opts_darwin += -no-opengl
|
|
$(package)_config_opts_darwin += -pch
|
|
$(package)_config_opts_darwin += -no-feature-corewlan
|
|
$(package)_config_opts_darwin += -no-freetype
|
|
$(package)_config_opts_darwin += QMAKE_MACOSX_DEPLOYMENT_TARGET=$(OSX_MIN_VERSION)
|
|
|
|
ifneq ($(build_os),darwin)
|
|
$(package)_config_opts_darwin += -xplatform macx-clang-linux
|
|
$(package)_config_opts_darwin += -device-option MAC_SDK_PATH=$(OSX_SDK)
|
|
$(package)_config_opts_darwin += -device-option MAC_SDK_VERSION=$(OSX_SDK_VERSION)
|
|
$(package)_config_opts_darwin += -device-option CROSS_COMPILE="$(host)-"
|
|
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
|
|
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION)
|
|
endif
|
|
|
|
ifneq ($(build_arch),$(host_arch))
|
|
$(package)_config_opts_aarch64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64
|
|
$(package)_config_opts_x86_64_darwin += -device-option QMAKE_APPLE_DEVICE_ARCHS=x86_64
|
|
endif
|
|
|
|
$(package)_config_opts_linux = -xcb
|
|
$(package)_config_opts_linux += -no-xcb-xlib
|
|
$(package)_config_opts_linux += -no-feature-xlib
|
|
$(package)_config_opts_linux += -system-freetype
|
|
$(package)_config_opts_linux += -fontconfig
|
|
$(package)_config_opts_linux += -no-opengl
|
|
$(package)_config_opts_linux += -no-feature-vulkan
|
|
$(package)_config_opts_linux += -dbus-runtime
|
|
ifneq ($(LTO),)
|
|
$(package)_config_opts_linux += -ltcg
|
|
endif
|
|
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
|
ifneq (,$(findstring -stdlib=libc++,$($(1)_cxx)))
|
|
$(package)_config_opts_x86_64_linux = -xplatform linux-clang-libc++
|
|
else
|
|
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
|
endif
|
|
$(package)_config_opts_aarch64_linux = -xplatform linux-aarch64-gnu-g++
|
|
$(package)_config_opts_powerpc64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
$(package)_config_opts_powerpc64le_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
$(package)_config_opts_riscv64_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
$(package)_config_opts_s390x_linux = -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
|
|
$(package)_config_opts_mingw32 = -no-opengl
|
|
$(package)_config_opts_mingw32 += -no-dbus
|
|
$(package)_config_opts_mingw32 += -no-freetype
|
|
$(package)_config_opts_mingw32 += -xplatform win32-g++
|
|
$(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(package)_cppflags)'"
|
|
$(package)_config_opts_mingw32 += "QMAKE_CXX = '$($(package)_cxx)'"
|
|
$(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cxxflags) $($(package)_cppflags)'"
|
|
$(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'"
|
|
$(package)_config_opts_mingw32 += "QMAKE_LIB = '$($(package)_ar) rc'"
|
|
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
|
|
$(package)_config_opts_mingw32 += -pch
|
|
ifneq ($(LTO),)
|
|
$(package)_config_opts_mingw32 += -ltcg
|
|
endif
|
|
|
|
$(package)_config_opts_android = -xplatform android-clang
|
|
$(package)_config_opts_android += -android-sdk $(ANDROID_SDK)
|
|
$(package)_config_opts_android += -android-ndk $(ANDROID_NDK)
|
|
$(package)_config_opts_android += -android-ndk-platform android-$(ANDROID_API_LEVEL)
|
|
$(package)_config_opts_android += -egl
|
|
$(package)_config_opts_android += -qpa xcb
|
|
$(package)_config_opts_android += -no-dbus
|
|
$(package)_config_opts_android += -opengl es2
|
|
$(package)_config_opts_android += -qt-freetype
|
|
$(package)_config_opts_android += -no-fontconfig
|
|
$(package)_config_opts_android += -L $(host_prefix)/lib
|
|
$(package)_config_opts_android += -I $(host_prefix)/include
|
|
$(package)_config_opts_android += -pch
|
|
$(package)_config_opts_android += -no-feature-vulkan
|
|
|
|
$(package)_config_opts_aarch64_android += -android-arch arm64-v8a
|
|
$(package)_config_opts_armv7a_android += -android-arch armeabi-v7a
|
|
$(package)_config_opts_x86_64_android += -android-arch x86_64
|
|
endef
|
|
|
|
define $(package)_fetch_cmds
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_download_file),$($(package)_file_name),$($(package)_sha256_hash)) && \
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttranslations_file_name),$($(package)_qttranslations_file_name),$($(package)_qttranslations_sha256_hash)) && \
|
|
$(call fetch_file,$(package),$($(package)_download_path),$($(package)_qttools_file_name),$($(package)_qttools_file_name),$($(package)_qttools_sha256_hash))
|
|
endef
|
|
|
|
define $(package)_extract_cmds
|
|
mkdir -p $($(package)_extract_dir) && \
|
|
echo "$($(package)_sha256_hash) $($(package)_source)" > $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
echo "$($(package)_qttranslations_sha256_hash) $($(package)_source_dir)/$($(package)_qttranslations_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
echo "$($(package)_qttools_sha256_hash) $($(package)_source_dir)/$($(package)_qttools_file_name)" >> $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
$(build_SHA256SUM) -c $($(package)_extract_dir)/.$($(package)_file_name).hash && \
|
|
mkdir qtbase && \
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source) -C qtbase && \
|
|
mkdir qttranslations && \
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttranslations_file_name) -C qttranslations && \
|
|
mkdir qttools && \
|
|
$(build_TAR) --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
|
|
endef
|
|
|
|
# Preprocessing steps work as follows:
|
|
#
|
|
# 1. Apply our patches to the extracted source. See each patch for more info.
|
|
#
|
|
# 2. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
|
|
#
|
|
# 3. After making a copy of the mkspec for the linux-arm-gnueabi host, named
|
|
# bitcoin-linux-g++, replace instances of linux-arm-gnueabi with $(host). This
|
|
# way we can generically support hosts like riscv64-linux-gnu, which Qt doesn't
|
|
# ship a mkspec for. See it's usage in config_opts_* above.
|
|
#
|
|
# 4. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
|
|
#
|
|
# 5. Do similar for the win32-g++ mkspec.
|
|
#
|
|
# 6. In clang.conf, swap out clang & clang++, for our compiler + flags. See #17466.
|
|
#
|
|
# 7. Adjust a regex in toolchain.prf, to accommodate Guix's usage of
|
|
# CROSS_LIBRARY_PATH. See #15277.
|
|
define $(package)_preprocess_cmds
|
|
cp $($(package)_patch_dir)/qt.pro qt.pro && \
|
|
cp $($(package)_patch_dir)/qttools_src.pro qttools/src/src.pro && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix-minimum-macos.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix-macos-linker.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/dont_hardcode_pwd.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_placeholders.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_android_jni_static.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/use_android_ndk23.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/memory_resource.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/rcc_hardcode_timestamp.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/duplicate_lcqpafonts.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fast_fixed_dtoa_no_optimize.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/guix_cross_lib_path.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/windows_lto.patch && \
|
|
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
|
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
|
cp -r qtbase/mkspecs/linux-arm-gnueabi-g++ qtbase/mkspecs/bitcoin-linux-g++ && \
|
|
sed -i.old "s/arm-linux-gnueabi-/$(host)-/g" qtbase/mkspecs/bitcoin-linux-g++/qmake.conf && \
|
|
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
|
sed -i.old "s|QMAKE_CC = \$$$$\$$$${CROSS_COMPILE}clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
|
|
sed -i.old "s|QMAKE_CXX = \$$$$\$$$${CROSS_COMPILE}clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
cd qtbase && \
|
|
./configure -top-level $($(package)_config_opts)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) -C qtbase/src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && \
|
|
$(MAKE) -C qttools/src/linguist INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_linguist_tools))) && \
|
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf native/mkspecs/ native/lib/ lib/cmake/ && \
|
|
rm -f lib/lib*.la
|
|
endef
|