mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
2e1336dbfe
2f5dfe4a7f
depends: build qt in c++17 mode (fanquake)104e859c97
builds: don't pass -silent to qt when building in debug mode (fanquake)e2c500636c
depends: build zeromq with -std=c++17 (fanquake)2374f2fbef
depends: build Boost with -std=c++17 (fanquake)2dde55702d
depends: build bdb with -std=c++17 (fanquake) Pull request description: In packages where we are passing `-std=c++11` switch to `-std=c++17`, or, `-std=c++1z` in the case of Qt. This PR also contains a [commit](104e859c97
) that improves debug output when building Qt for debugging (`DEBUG=1`). Now we'll get output like this: ```bash g++ -c -pipe -ffunction-sections -O2 -fPIC -std=c++11 -fno-exceptions <lots more> ../../corelib/kernel/qcoreapplication.cpp ``` rather than just: ```bash compiling ../../corelib/kernel/qcoreapplication.cpp ``` Note that when you look at the DEBUG output for these changes when building Qt, you'll see objects being compiled with a mix of C++11 and C++17. The breakdown is roughly: 1. `qmake` built with `-std=c++11`: ```bash Creating qmake... make[1]: Entering directory '<trim>/qt/5.9.8-4110fa99945/qtbase/qmake' g++ -c -o project.o -std=c++11 -ffunction-sections -O2 -g <trim> <trim>/qt/5.9.8-4110fa99945/qtbase/qmake/project.cpp # when qmake, Qt also builds some of it's corelib, such as corelib/global/qmalloc.cpp g++ -c -o qmalloc.o -std=c++11 -ffunction-sections -O2 -g <trim> <trim>/qt/5.9.8-4110fa99945/qtbase/src/corelib/global/qmalloc.cpp ``` 2. `qmake` is run, and passed our build options, including `-c++std`: ```bash make[1]: Entering directory '<trim>/qt/5.9.8-4110fa99945/qtbase' <trim>qt/5.9.8-4110fa99945/qtbase/bin/qmake -o Makefile qtbase.pro -- -bindir <trim>/native/bin -c++std c++1z -confirm-license <trim> ``` 3. After some cleaning and configuring, we actually start to build Qt, as well as it's tools and internal libs: ```bash Building qt... make[1]: Entering directory '<trim>/qt/5.9.8-4110fa99945/qtbase/src' # build libpng, zlib etc gcc -c -m64 -pipe -pipe -O1 <trim> -o .obj/png.o png.c # build libQt5Bootstrap, using C++11, which again compiles qmalloc.cpp make[2]: Entering directory '<trim>/qt/5.9.8-4110fa99945/qtbase/src/tools/bootstrap' g++ -c -pipe -ffunction-sections -O2 -fPIC -std=c++11 <trim> -o .obj/qmalloc.o ../../corelib/global/qmalloc.cpp # build a bunch of tools like moc, rcc, uic, qfloat16-tables, qdbuscpp2xml, using C++11 g++ -c -pipe -O2 -std=c++11 -fno-exceptions -Wall -W <trim> -o .obj/rcc.o rcc.cpp # from here, Qt is compiled with -std=c++1z, including qmalloc.cpp, for the third and final time: g++ -c -include .pch/Qt5Core <trim> -g -Og -fPIC -std=c++1z -fvisibility=hidden <trim> -o .obj/qmalloc.o global/qmalloc.cpp ``` 4. Finally, build tools like `lrelease`, `lupdate`, etc, but back to using -std=c++11 ```bash make[1]: Entering directory '<trim>/qt/5.9.8-4110fa99945/qttools/src/linguist/lrelease' g++ -c -pipe -O2 -std=c++11 -fno-exceptions -Wall -W <trim> -o .obj/translator.o ../shared/translator.cpp ``` If you dump the debug info from the built Qt libs, they should also tell you that they were compiled with `C++17`: ```bash objdump -g bitcoin/depends/x86_64-pc-linux-gnu/lib/libQt5Core.a GNU C++17 9.3.0 -m64 -mtune=generic -march=x86-64 -g -O1 -Og -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -fcf-protection ``` ACKs for top commit: laanwj: Code review ACK2f5dfe4a7f
practicalswift: cr ACK2f5dfe4a7f
: patch looks correct fjahr: Code review ACK2f5dfe4a7f
hebasto: ACK2f5dfe4a7f
, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: fc5e9d7c7518c68349c8228fb1aead829850373efc960c9b8c079096a83d1dad19c62a9730fce5802322bf07e320960fd47851420d429eda0a87c307f4e8b03a
286 lines
15 KiB
Makefile
286 lines
15 KiB
Makefile
PACKAGE=qt
|
|
$(package)_version=5.9.8
|
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
|
|
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
|
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
|
$(package)_sha256_hash=9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
|
|
$(package)_dependencies=zlib
|
|
$(package)_linux_dependencies=freetype fontconfig libxcb
|
|
$(package)_build_subdir=qtbase
|
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
|
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
|
|
$(package)_patches+= fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
|
|
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
|
$(package)_patches+= freetype_back_compat.patch drop_lrelease_dependency.patch fix_powerpc_libpng.patch
|
|
$(package)_patches+= fix_mingw_cross_compile.patch fix_qpainter_non_determinism.patch
|
|
|
|
# Update OSX_QT_TRANSLATIONS when this is updated
|
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
|
$(package)_qttranslations_sha256_hash=fb5a47799754af73d3bf501fe513342cfe2fc37f64e80df5533f6110e804220c
|
|
|
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
|
$(package)_qttools_sha256_hash=a97556eb7b2f30252cdd8a598c396cfce2b2f79d2bae883af6d3b26a2cdcc63c
|
|
|
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts_release = -release
|
|
$(package)_config_opts_release += -silent
|
|
$(package)_config_opts_debug = -debug
|
|
$(package)_config_opts += -bindir $(build_prefix)/bin
|
|
$(package)_config_opts += -c++std c++1z
|
|
$(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-freetype
|
|
$(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-mtdev
|
|
$(package)_config_opts += -no-openssl
|
|
$(package)_config_opts += -no-openvg
|
|
$(package)_config_opts += -no-reduce-relocations
|
|
$(package)_config_opts += -no-qml-debug
|
|
$(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-xinput2
|
|
$(package)_config_opts += -nomake examples
|
|
$(package)_config_opts += -nomake tests
|
|
$(package)_config_opts += -opensource
|
|
$(package)_config_opts += -optimized-tools
|
|
$(package)_config_opts += -pch
|
|
$(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 += -system-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-regularexpression
|
|
$(package)_config_opts += -no-feature-sessionmanager
|
|
$(package)_config_opts += -no-feature-socks5
|
|
$(package)_config_opts += -no-feature-sql
|
|
$(package)_config_opts += -no-feature-statemachine
|
|
$(package)_config_opts += -no-feature-syntaxhighlighter
|
|
$(package)_config_opts += -no-feature-textbrowser
|
|
$(package)_config_opts += -no-feature-textodfwriter
|
|
$(package)_config_opts += -no-feature-topleveldomain
|
|
$(package)_config_opts += -no-feature-udpsocket
|
|
$(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
|
|
|
|
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_MIN_VERSION=$(OSX_MIN_VERSION)
|
|
$(package)_config_opts_darwin += -device-option MAC_TARGET=$(host)
|
|
$(package)_config_opts_darwin += -device-option XCODE_VERSION=$(XCODE_VERSION)
|
|
endif
|
|
|
|
$(package)_config_opts_linux = -qt-xkbcommon-x11
|
|
$(package)_config_opts_linux += -qt-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 += -dbus-runtime
|
|
$(package)_config_opts_arm_linux += -platform linux-g++ -xplatform bitcoin-linux-g++
|
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
|
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
|
$(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 += -xplatform win32-g++
|
|
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"
|
|
|
|
$(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 += -device-option CROSS_COMPILE="$(host)-"
|
|
$(package)_config_opts_android += -egl
|
|
$(package)_config_opts_android += -qpa xcb
|
|
$(package)_config_opts_android += -no-eglfs
|
|
$(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_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
|
|
$(package)_config_opts_i686_android += -android-arch i686
|
|
|
|
$(package)_build_env = QT_RCC_TEST=1
|
|
$(package)_build_env += QT_RCC_SOURCE_DATE_OVERRIDE=1
|
|
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 && \
|
|
tar --no-same-owner --strip-components=1 -xf $($(package)_source) -C qtbase && \
|
|
mkdir qttranslations && \
|
|
tar --no-same-owner --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttranslations_file_name) -C qttranslations && \
|
|
mkdir qttools && \
|
|
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. Point to lrelease in qttools/bin/lrelease; otherwise Qt will look for it in
|
|
# $(host)/native/bin/lrelease and not find it.
|
|
#
|
|
# 3. Create a macOS-Clang-Linux mkspec using our mac-qmake.conf.
|
|
#
|
|
# 4. 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.
|
|
#
|
|
# 5. Put our C, CXX and LD FLAGS into gcc-base.conf. Only used for non-host builds.
|
|
#
|
|
# 6. Do similar for the win32-g++ mkspec.
|
|
#
|
|
# 7. In clang.conf, swap out clang & clang++, for our compiler + flags. See #17466.
|
|
#
|
|
# 8. Adjust a regex in toolchain.prf, to accomodate Guix's usage of
|
|
# CROSS_LIBRARY_PATH. See #15277.
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 -i $($(package)_patch_dir)/freetype_back_compat.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_powerpc_libpng.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/drop_lrelease_dependency.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_configure_mac.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_rcc_determinism.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/xkb-default.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_riscv64_arch.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/no-xlib.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_mingw_cross_compile.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix_qpainter_non_determinism.patch &&\
|
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
|
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_CFLAGS += |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
sed -i.old "s|QMAKE_CXXFLAGS += |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
sed -i.old "0,/^QMAKE_LFLAGS_/s|^QMAKE_LFLAGS_|!host_build: QMAKE_LFLAGS = $($(package)_ldflags)\n&|" qtbase/mkspecs/win32-g++/qmake.conf && \
|
|
sed -i.old "s|QMAKE_CC = clang|QMAKE_CC = $($(package)_cc)|" qtbase/mkspecs/common/clang.conf && \
|
|
sed -i.old "s|QMAKE_CXX = clang++|QMAKE_CXX = $($(package)_cxx)|" qtbase/mkspecs/common/clang.conf && \
|
|
sed -i.old "s/LIBRARY_PATH/(CROSS_)?\0/g" qtbase/mkspecs/features/toolchain.prf
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
export PKG_CONFIG_SYSROOT_DIR=/ && \
|
|
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
|
|
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
|
|
./configure $($(package)_config_opts) && \
|
|
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
|
|
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
|
|
$(MAKE) sub-src-clean && \
|
|
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
|
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
|
|
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
|
|
cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
|
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
|
$(MAKE) -C ../qttools/src/linguist/lupdate && \
|
|
$(MAKE) -C ../qttranslations
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
|
|
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
|
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
|
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
|
|
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
|
|
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \
|
|
fi
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm -rf native/mkspecs/ native/lib/ lib/cmake/ && \
|
|
rm -f lib/lib*.la lib/*.prl plugins/*/*.prl
|
|
endef
|