Skip to content

Commit a6d14b1

Browse files
committed
Merge #12971: depends: Upgrade Qt to 5.9.6
800dea8 Upgrade Qt depends to 5.9.6 (Sebastian Kung) 70afa65 Fix depends Qt5.9.4 mac build (Ken Lee) 28482ef Ugrade Qt depends to Qt5.9.4 (Sebastian Kung) Pull request description: With the introduction of Ubuntu 18.04 (Bionic Beaver) modern versions of gcc and mingw that allow cross compilation of versions of Qt greater than 5.8 are now readily available. This pull requests upgrades the Qt depends recipe from Qt 5.7.1 to Qt 5.9.6. Qt 5.9.x is the current LTS version and should be supported by Qt until 2020. Tree-SHA512: 439295d594ff8954a5ba5e348a0452713721c805485be2edcb9f8603ee59e96db5a61e1c684bdff36bbfd643a79cd35c289817257af88f489d2890e7843460bf
2 parents a247594 + 800dea8 commit a6d14b1

File tree

10 files changed

+188
-312
lines changed

10 files changed

+188
-312
lines changed

build-aux/m4/bitcoin_qt.m4

Lines changed: 95 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -276,35 +276,56 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
276276
#endif
277277
]],
278278
[[
279-
#if QT_VERSION < 0x050000
279+
#if QT_VERSION < 0x050000 || QT_VERSION_MAJOR < 5
280280
choke
281281
#endif
282282
]])],
283283
[bitcoin_cv_qt5=yes],
284284
[bitcoin_cv_qt5=no])
285285
])])
286286
287-
dnl Internal. Check if the linked version of Qt was built as static libs.
288-
dnl Requires: Qt5.
289-
dnl Requires: INCLUDES and LIBS must be populated as necessary.
290-
dnl Output: bitcoin_cv_static_qt=yes|no
291-
dnl Output: Defines QT_STATICPLUGIN if plugins are static.
292-
AC_DEFUN([_BITCOIN_QT_IS_STATIC],[
293-
AC_CACHE_CHECK(for static Qt, bitcoin_cv_static_qt,[
287+
dnl Internal. Check if the included version of Qt is greater than Qt58.
288+
dnl Requires: INCLUDES must be populated as necessary.
289+
dnl Output: bitcoin_cv_qt5=yes|no
290+
AC_DEFUN([_BITCOIN_QT_CHECK_QT58],[
291+
AC_CACHE_CHECK(for > Qt 5.7, bitcoin_cv_qt58,[
294292
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
295293
#include <QtCore/qconfig.h>
296294
#ifndef QT_VERSION
297295
# include <QtCore/qglobal.h>
298296
#endif
299297
]],
300298
[[
301-
#if !defined(QT_STATIC)
299+
#if QT_VERSION_MINOR < 8
302300
choke
303301
#endif
304302
]])],
305-
[bitcoin_cv_static_qt=yes],
306-
[bitcoin_cv_static_qt=no])
307-
])
303+
[bitcoin_cv_qt58=yes],
304+
[bitcoin_cv_qt58=no])
305+
])])
306+
307+
308+
dnl Internal. Check if the linked version of Qt was built as static libs.
309+
dnl Requires: Qt5.
310+
dnl Requires: INCLUDES and LIBS must be populated as necessary.
311+
dnl Output: bitcoin_cv_static_qt=yes|no
312+
dnl Output: Defines QT_STATICPLUGIN if plugins are static.
313+
AC_DEFUN([_BITCOIN_QT_IS_STATIC],[
314+
AC_CACHE_CHECK(for static Qt, bitcoin_cv_static_qt,[
315+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
316+
#include <QtCore/qconfig.h>
317+
#ifndef QT_VERSION OR QT_VERSION_STR
318+
# include <QtCore/qglobal.h>
319+
#endif
320+
]],
321+
[[
322+
#if !defined(QT_STATIC)
323+
choke
324+
#endif
325+
]])],
326+
[bitcoin_cv_static_qt=yes],
327+
[bitcoin_cv_static_qt=no])
328+
])
308329
if test "x$bitcoin_cv_static_qt" = xyes; then
309330
AC_DEFINE(QT_STATICPLUGIN, 1, [Define this symbol for static Qt plugins])
310331
fi
@@ -338,39 +359,60 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
338359
if test -d "$qt_plugin_path/accessible"; then
339360
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
340361
fi
341-
fi
342-
if test "x$use_pkgconfig" = xyes; then
343-
: dnl
344-
m4_ifdef([PKG_CHECK_MODULES],[
345-
PKG_CHECK_MODULES([QTPLATFORM], [Qt5PlatformSupport], [QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"])
346-
if test "x$TARGET_OS" = xlinux; then
347-
PKG_CHECK_MODULES([X11XCB], [x11-xcb], [QT_LIBS="$X11XCB_LIBS $QT_LIBS"])
348-
if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
349-
PKG_CHECK_MODULES([QTXCBQPA], [Qt5XcbQpa], [QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"])
362+
if test "x$use_pkgconfig" = xyes; then
363+
: dnl
364+
m4_ifdef([PKG_CHECK_MODULES],[
365+
if test x$bitcoin_cv_qt58 = xno; then
366+
PKG_CHECK_MODULES([QTPLATFORM], [Qt5PlatformSupport], [QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"])
367+
else
368+
PKG_CHECK_MODULES([QTFONTDATABASE], [Qt5FontDatabaseSupport], [QT_LIBS="-lQt5FontDatabaseSupport $QT_LIBS"])
369+
PKG_CHECK_MODULES([QTEVENTDISPATCHER], [Qt5EventDispatcherSupport], [QT_LIBS="-lQt5EventDispatcherSupport $QT_LIBS"])
370+
PKG_CHECK_MODULES([QTTHEME], [Qt5ThemeSupport], [QT_LIBS="-lQt5ThemeSupport $QT_LIBS"])
371+
PKG_CHECK_MODULES([QTDEVICEDISCOVERY], [Qt5DeviceDiscoverySupport], [QT_LIBS="-lQt5DeviceDiscoverySupport $QT_LIBS"])
372+
PKG_CHECK_MODULES([QTACCESSIBILITY], [Qt5AccessibilitySupport], [QT_LIBS="-lQt5AccessibilitySupport $QT_LIBS"])
373+
PKG_CHECK_MODULES([QTFB], [Qt5FbSupport], [QT_LIBS="-lQt5FbSupport $QT_LIBS"])
374+
fi
375+
if test "x$TARGET_OS" = xlinux; then
376+
PKG_CHECK_MODULES([X11XCB], [x11-xcb], [QT_LIBS="$X11XCB_LIBS $QT_LIBS"])
377+
if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
378+
PKG_CHECK_MODULES([QTXCBQPA], [Qt5XcbQpa], [QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"])
379+
fi
380+
elif test "x$TARGET_OS" = xdarwin; then
381+
PKG_CHECK_MODULES([QTCLIPBOARD], [Qt5ClipboardSupport], [QT_LIBS="-lQt5ClipboardSupport $QT_LIBS"])
382+
PKG_CHECK_MODULES([QTGRAPHICS], [Qt5GraphicsSupport], [QT_LIBS="-lQt5GraphicsSupport $QT_LIBS"])
383+
PKG_CHECK_MODULES([QTCGL], [Qt5CglSupport], [QT_LIBS="-lQt5CglSupport $QT_LIBS"])
350384
fi
351-
elif test "x$TARGET_OS" = xdarwin; then
352-
PKG_CHECK_MODULES([QTPRINT], [Qt5PrintSupport], [QT_LIBS="$QTPRINT_LIBS $QT_LIBS"])
353-
fi
354-
])
355-
else
356-
if test "x$TARGET_OS" = xwindows; then
357-
AC_CACHE_CHECK(for Qt >= 5.6, bitcoin_cv_need_platformsupport,[
358-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
359-
#include <QtCore/qconfig.h>
360-
#ifndef QT_VERSION
361-
# include <QtCore/qglobal.h>
362-
#endif
363-
]],
364-
[[
365-
#if QT_VERSION < 0x050600
366-
choke
367-
#endif
368-
]])],
369-
[bitcoin_cv_need_platformsupport=yes],
370-
[bitcoin_cv_need_platformsupport=no])
371-
])
372-
if test "x$bitcoin_cv_need_platformsupport" = xyes; then
373-
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}PlatformSupport],[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}PlatformSupport not found)))
385+
])
386+
else
387+
if test "x$TARGET_OS" = xwindows; then
388+
AC_CACHE_CHECK(for Qt >= 5.6, bitcoin_cv_need_platformsupport,[
389+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
390+
#include <QtCore/qconfig.h>
391+
#ifndef QT_VERSION
392+
# include <QtCore/qglobal.h>
393+
#endif
394+
]],
395+
[[
396+
#if QT_VERSION < 0x050600 || QT_VERSION_MINOR < 6
397+
choke
398+
#endif
399+
]])],
400+
[bitcoin_cv_need_platformsupport=yes],
401+
[bitcoin_cv_need_platformsupport=no])
402+
])
403+
if test "x$bitcoin_cv_need_platformsupport" = xyes; then
404+
if test x$bitcoin_cv_qt58 = xno; then
405+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}PlatformSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXPlatformSupport not found)))
406+
else
407+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}FontDatabaseSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXFontDatabaseSupport not found)))
408+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}EventDispatcherSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXEventDispatcherSupport not found)))
409+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}ThemeSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXThemeSupport not found)))
410+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}FbSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXFbSupport not found)))
411+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}DeviceDiscoverySupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXDeviceDiscoverySupport not found)))
412+
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}AccessibilitySupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXAccessibilitySupport not found)))
413+
QT_LIBS="$QT_LIBS -lversion -ldwmapi -luxtheme"
414+
fi
415+
fi
374416
fi
375417
fi
376418
fi
@@ -430,6 +472,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
430472
BITCOIN_QT_CHECK([
431473
if test "x$bitcoin_qt_want_version" = xauto; then
432474
_BITCOIN_QT_CHECK_QT5
475+
_BITCOIN_QT_CHECK_QT58
433476
fi
434477
QT_LIB_PREFIX=Qt5
435478
])
@@ -446,10 +489,15 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
446489
])
447490
448491
BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in])))
449-
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
450492
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([jpeg_create_decompress] ,[qtjpeg jpeg],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in])))
451-
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in])))
452-
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([hb_ot_tags_from_script] ,[qtharfbuzzng harfbuzz],,AC_MSG_WARN([libharfbuzz not found. Assuming qt has it built-in or support is disabled])))
493+
if test x$bitcoin_cv_qt58 = xno; then
494+
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
495+
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in])))
496+
else
497+
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtlibpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
498+
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre2_match_16], [qtpcre2 libqtpcre2],,AC_MSG_WARN([libqtpcre2 not found. Assuming qt has it built-in])))
499+
fi
500+
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([hb_ot_tags_from_script] ,[qtharfbuzzng qtharfbuzz harfbuzz],,AC_MSG_WARN([libharfbuzz not found. Assuming qt has it built-in or support is disabled])))
453501
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Core] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Core not found)))
454502
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Gui] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Gui not found)))
455503
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Network],[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Network not found)))

depends/packages/qt.mk

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
PACKAGE=qt
2-
$(package)_version=5.7.1
3-
$(package)_download_path=https://download.qt.io/archive/qt/5.7/$($(package)_version)/submodules
4-
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
2+
$(package)_version=5.9.6
3+
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
4+
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
55
$(package)_file_name=qtbase-$($(package)_suffix)
6-
$(package)_sha256_hash=95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
6+
$(package)_sha256_hash=eed620cb268b199bd83b3fc6a471c51d51e1dc2dbb5374fc97a0cc75facbe36f
77
$(package)_dependencies=openssl zlib
88
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
99
$(package)_build_subdir=qtbase
1010
$(package)_qt_libs=corelib network widgets gui plugins testlib
11-
$(package)_patches=mac-qmake.conf mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch
12-
$(package)_patches+=fix_qt_pkgconfig.patch fix-cocoahelpers-macos.patch qfixed-coretext.patch
11+
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
1312

1413
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
15-
$(package)_qttranslations_sha256_hash=3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
16-
14+
$(package)_qttranslations_sha256_hash=9822084f8e2d2939ba39f4af4c0c2320e45d5996762a9423f833055607604ed8
1715

1816
$(package)_qttools_file_name=qttools-$($(package)_suffix)
19-
$(package)_qttools_sha256_hash=22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
17+
$(package)_qttools_sha256_hash=50e75417ec0c74bb8b1989d1d8e981ee83690dce7dfc0c2169f7c00f397e5117
2018

2119
$(package)_extra_sources = $($(package)_qttranslations_file_name)
2220
$(package)_extra_sources += $($(package)_qttools_file_name)
@@ -29,25 +27,18 @@ $(package)_config_opts += -c++std c++11
2927
$(package)_config_opts += -confirm-license
3028
$(package)_config_opts += -dbus-runtime
3129
$(package)_config_opts += -hostprefix $(build_prefix)
32-
$(package)_config_opts += -no-alsa
33-
$(package)_config_opts += -no-audio-backend
3430
$(package)_config_opts += -no-cups
3531
$(package)_config_opts += -no-egl
3632
$(package)_config_opts += -no-eglfs
37-
$(package)_config_opts += -no-feature-style-windowsmobile
38-
$(package)_config_opts += -no-feature-style-windowsce
3933
$(package)_config_opts += -no-freetype
4034
$(package)_config_opts += -no-gif
4135
$(package)_config_opts += -no-glib
42-
$(package)_config_opts += -no-gstreamer
4336
$(package)_config_opts += -no-icu
4437
$(package)_config_opts += -no-iconv
4538
$(package)_config_opts += -no-kms
4639
$(package)_config_opts += -no-linuxfb
4740
$(package)_config_opts += -no-libudev
48-
$(package)_config_opts += -no-mitshm
4941
$(package)_config_opts += -no-mtdev
50-
$(package)_config_opts += -no-pulseaudio
5142
$(package)_config_opts += -no-openvg
5243
$(package)_config_opts += -no-reduce-relocations
5344
$(package)_config_opts += -no-qml-debug
@@ -62,7 +53,6 @@ $(package)_config_opts += -no-sql-sqlite
6253
$(package)_config_opts += -no-sql-sqlite2
6354
$(package)_config_opts += -no-use-gold-linker
6455
$(package)_config_opts += -no-xinput2
65-
$(package)_config_opts += -no-xrender
6656
$(package)_config_opts += -nomake examples
6757
$(package)_config_opts += -nomake tests
6858
$(package)_config_opts += -opensource
@@ -75,12 +65,13 @@ $(package)_config_opts += -qt-libpng
7565
$(package)_config_opts += -qt-libjpeg
7666
$(package)_config_opts += -qt-pcre
7767
$(package)_config_opts += -system-zlib
78-
$(package)_config_opts += -reduce-exports
7968
$(package)_config_opts += -static
8069
$(package)_config_opts += -silent
8170
$(package)_config_opts += -v
8271
$(package)_config_opts += -no-feature-printer
8372
$(package)_config_opts += -no-feature-printdialog
73+
$(package)_config_opts += -no-feature-concurrent
74+
$(package)_config_opts += -no-feature-xml
8475

8576
ifneq ($(build_os),darwin)
8677
$(package)_config_opts_darwin = -xplatform macx-clang-linux
@@ -95,11 +86,12 @@ endif
9586
$(package)_config_opts_linux = -qt-xkbcommon
9687
$(package)_config_opts_linux += -qt-xcb
9788
$(package)_config_opts_linux += -system-freetype
98-
$(package)_config_opts_linux += -no-sm
89+
$(package)_config_opts_linux += -no-feature-sessionmanager
9990
$(package)_config_opts_linux += -fontconfig
10091
$(package)_config_opts_linux += -no-opengl
10192
$(package)_config_opts_arm_linux = -platform linux-g++ -xplatform $(host)
10293
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
94+
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
10395
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-"
10496
$(package)_build_env = QT_RCC_TEST=1
10597
endef
@@ -124,11 +116,10 @@ define $(package)_extract_cmds
124116
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
125117
endef
126118

127-
128119
define $(package)_preprocess_cmds
129120
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
130121
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
131-
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
122+
sed -i.old "s/src_plugins.depends = src_sql src_network/src_plugins.depends = src_network/" qtbase/src/src.pro && \
132123
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
133124
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
134125
sed -i.old 's/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0)/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft)/' qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm && \
@@ -137,19 +128,17 @@ define $(package)_preprocess_cmds
137128
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
138129
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
139130
cp -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
140-
patch -p1 < $($(package)_patch_dir)/mingw-uuidof.patch && \
141-
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
142-
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
143-
patch -p1 < $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
144-
patch -p1 < $($(package)_patch_dir)/fix-cocoahelpers-macos.patch && \
145-
patch -p1 < $($(package)_patch_dir)/qfixed-coretext.patch && \
131+
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch &&\
132+
patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.patch &&\
133+
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch &&\
146134
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
147135
echo "!host_build: QMAKE_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
148136
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
137+
echo "QMAKE_LINK_OBJECT_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
138+
echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
149139
sed -i.old "s|QMAKE_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
150140
sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
151141
sed -i.old "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
152-
153142
endef
154143

155144
define $(package)_config_cmds
@@ -161,19 +150,22 @@ define $(package)_config_cmds
161150
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
162151
$(MAKE) sub-src-clean && \
163152
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
164-
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. &&\
165-
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile
153+
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
154+
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
155+
cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
166156
endef
167157

168158
define $(package)_build_cmds
169159
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
170160
$(MAKE) -C ../qttools/src/linguist/lrelease && \
161+
$(MAKE) -C ../qttools/src/linguist/lupdate && \
171162
$(MAKE) -C ../qttranslations
172163
endef
173164

174165
define $(package)_stage_cmds
175-
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. &&\
166+
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
176167
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
168+
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
177169
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
178170
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
179171
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \

0 commit comments

Comments
 (0)