Merge #12971: depends: Upgrade Qt to 5.9.6
800dea88a6
Upgrade Qt depends to 5.9.6 (Sebastian Kung)70afa65b17
Fix depends Qt5.9.4 mac build (Ken Lee)28482efefb
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
This commit is contained in:
commit
a6d14b1cf7
10 changed files with 191 additions and 315 deletions
|
@ -276,7 +276,7 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
|
||||||
#endif
|
#endif
|
||||||
]],
|
]],
|
||||||
[[
|
[[
|
||||||
#if QT_VERSION < 0x050000
|
#if QT_VERSION < 0x050000 || QT_VERSION_MAJOR < 5
|
||||||
choke
|
choke
|
||||||
#endif
|
#endif
|
||||||
]])],
|
]])],
|
||||||
|
@ -284,6 +284,27 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[
|
||||||
[bitcoin_cv_qt5=no])
|
[bitcoin_cv_qt5=no])
|
||||||
])])
|
])])
|
||||||
|
|
||||||
|
dnl Internal. Check if the included version of Qt is greater than Qt58.
|
||||||
|
dnl Requires: INCLUDES must be populated as necessary.
|
||||||
|
dnl Output: bitcoin_cv_qt5=yes|no
|
||||||
|
AC_DEFUN([_BITCOIN_QT_CHECK_QT58],[
|
||||||
|
AC_CACHE_CHECK(for > Qt 5.7, bitcoin_cv_qt58,[
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
|
#include <QtCore/qconfig.h>
|
||||||
|
#ifndef QT_VERSION
|
||||||
|
# include <QtCore/qglobal.h>
|
||||||
|
#endif
|
||||||
|
]],
|
||||||
|
[[
|
||||||
|
#if QT_VERSION_MINOR < 8
|
||||||
|
choke
|
||||||
|
#endif
|
||||||
|
]])],
|
||||||
|
[bitcoin_cv_qt58=yes],
|
||||||
|
[bitcoin_cv_qt58=no])
|
||||||
|
])])
|
||||||
|
|
||||||
|
|
||||||
dnl Internal. Check if the linked version of Qt was built as static libs.
|
dnl Internal. Check if the linked version of Qt was built as static libs.
|
||||||
dnl Requires: Qt5.
|
dnl Requires: Qt5.
|
||||||
dnl Requires: INCLUDES and LIBS must be populated as necessary.
|
dnl Requires: INCLUDES and LIBS must be populated as necessary.
|
||||||
|
@ -293,7 +314,7 @@ AC_DEFUN([_BITCOIN_QT_IS_STATIC],[
|
||||||
AC_CACHE_CHECK(for static Qt, bitcoin_cv_static_qt,[
|
AC_CACHE_CHECK(for static Qt, bitcoin_cv_static_qt,[
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
#include <QtCore/qconfig.h>
|
#include <QtCore/qconfig.h>
|
||||||
#ifndef QT_VERSION
|
#ifndef QT_VERSION OR QT_VERSION_STR
|
||||||
# include <QtCore/qglobal.h>
|
# include <QtCore/qglobal.h>
|
||||||
#endif
|
#endif
|
||||||
]],
|
]],
|
||||||
|
@ -338,18 +359,28 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
|
||||||
if test -d "$qt_plugin_path/accessible"; then
|
if test -d "$qt_plugin_path/accessible"; then
|
||||||
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
|
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
if test "x$use_pkgconfig" = xyes; then
|
if test "x$use_pkgconfig" = xyes; then
|
||||||
: dnl
|
: dnl
|
||||||
m4_ifdef([PKG_CHECK_MODULES],[
|
m4_ifdef([PKG_CHECK_MODULES],[
|
||||||
|
if test x$bitcoin_cv_qt58 = xno; then
|
||||||
PKG_CHECK_MODULES([QTPLATFORM], [Qt5PlatformSupport], [QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"])
|
PKG_CHECK_MODULES([QTPLATFORM], [Qt5PlatformSupport], [QT_LIBS="$QTPLATFORM_LIBS $QT_LIBS"])
|
||||||
|
else
|
||||||
|
PKG_CHECK_MODULES([QTFONTDATABASE], [Qt5FontDatabaseSupport], [QT_LIBS="-lQt5FontDatabaseSupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTEVENTDISPATCHER], [Qt5EventDispatcherSupport], [QT_LIBS="-lQt5EventDispatcherSupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTTHEME], [Qt5ThemeSupport], [QT_LIBS="-lQt5ThemeSupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTDEVICEDISCOVERY], [Qt5DeviceDiscoverySupport], [QT_LIBS="-lQt5DeviceDiscoverySupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTACCESSIBILITY], [Qt5AccessibilitySupport], [QT_LIBS="-lQt5AccessibilitySupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTFB], [Qt5FbSupport], [QT_LIBS="-lQt5FbSupport $QT_LIBS"])
|
||||||
|
fi
|
||||||
if test "x$TARGET_OS" = xlinux; then
|
if test "x$TARGET_OS" = xlinux; then
|
||||||
PKG_CHECK_MODULES([X11XCB], [x11-xcb], [QT_LIBS="$X11XCB_LIBS $QT_LIBS"])
|
PKG_CHECK_MODULES([X11XCB], [x11-xcb], [QT_LIBS="$X11XCB_LIBS $QT_LIBS"])
|
||||||
if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
|
if ${PKG_CONFIG} --exists "Qt5Core >= 5.5" 2>/dev/null; then
|
||||||
PKG_CHECK_MODULES([QTXCBQPA], [Qt5XcbQpa], [QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"])
|
PKG_CHECK_MODULES([QTXCBQPA], [Qt5XcbQpa], [QT_LIBS="$QTXCBQPA_LIBS $QT_LIBS"])
|
||||||
fi
|
fi
|
||||||
elif test "x$TARGET_OS" = xdarwin; then
|
elif test "x$TARGET_OS" = xdarwin; then
|
||||||
PKG_CHECK_MODULES([QTPRINT], [Qt5PrintSupport], [QT_LIBS="$QTPRINT_LIBS $QT_LIBS"])
|
PKG_CHECK_MODULES([QTCLIPBOARD], [Qt5ClipboardSupport], [QT_LIBS="-lQt5ClipboardSupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTGRAPHICS], [Qt5GraphicsSupport], [QT_LIBS="-lQt5GraphicsSupport $QT_LIBS"])
|
||||||
|
PKG_CHECK_MODULES([QTCGL], [Qt5CglSupport], [QT_LIBS="-lQt5CglSupport $QT_LIBS"])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
else
|
else
|
||||||
|
@ -362,7 +393,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
|
||||||
#endif
|
#endif
|
||||||
]],
|
]],
|
||||||
[[
|
[[
|
||||||
#if QT_VERSION < 0x050600
|
#if QT_VERSION < 0x050600 || QT_VERSION_MINOR < 6
|
||||||
choke
|
choke
|
||||||
#endif
|
#endif
|
||||||
]])],
|
]])],
|
||||||
|
@ -370,7 +401,18 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
|
||||||
[bitcoin_cv_need_platformsupport=no])
|
[bitcoin_cv_need_platformsupport=no])
|
||||||
])
|
])
|
||||||
if test "x$bitcoin_cv_need_platformsupport" = xyes; then
|
if test "x$bitcoin_cv_need_platformsupport" = xyes; then
|
||||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}PlatformSupport],[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}PlatformSupport not found)))
|
if test x$bitcoin_cv_qt58 = xno; then
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}PlatformSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXPlatformSupport not found)))
|
||||||
|
else
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}FontDatabaseSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXFontDatabaseSupport not found)))
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}EventDispatcherSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXEventDispatcherSupport not found)))
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}ThemeSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXThemeSupport not found)))
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}FbSupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXFbSupport not found)))
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}DeviceDiscoverySupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXDeviceDiscoverySupport not found)))
|
||||||
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}AccessibilitySupport],[main],,BITCOIN_QT_FAIL(lib$QT_LIB_PREFIXAccessibilitySupport not found)))
|
||||||
|
QT_LIBS="$QT_LIBS -lversion -ldwmapi -luxtheme"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -430,6 +472,7 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
|
||||||
BITCOIN_QT_CHECK([
|
BITCOIN_QT_CHECK([
|
||||||
if test "x$bitcoin_qt_want_version" = xauto; then
|
if test "x$bitcoin_qt_want_version" = xauto; then
|
||||||
_BITCOIN_QT_CHECK_QT5
|
_BITCOIN_QT_CHECK_QT5
|
||||||
|
_BITCOIN_QT_CHECK_QT58
|
||||||
fi
|
fi
|
||||||
QT_LIB_PREFIX=Qt5
|
QT_LIB_PREFIX=Qt5
|
||||||
])
|
])
|
||||||
|
@ -446,10 +489,15 @@ AC_DEFUN([_BITCOIN_QT_FIND_LIBS_WITHOUT_PKGCONFIG],[
|
||||||
])
|
])
|
||||||
|
|
||||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in])))
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([z] ,[main],,AC_MSG_WARN([zlib not found. Assuming qt has it built-in])))
|
||||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
|
|
||||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([jpeg_create_decompress] ,[qtjpeg jpeg],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in])))
|
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([jpeg_create_decompress] ,[qtjpeg jpeg],,AC_MSG_WARN([libjpeg not found. Assuming qt has it built-in])))
|
||||||
|
if test x$bitcoin_cv_qt58 = xno; then
|
||||||
|
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
|
||||||
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in])))
|
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre16_exec], [qtpcre pcre16],,AC_MSG_WARN([libpcre16 not found. Assuming qt has it built-in])))
|
||||||
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])))
|
else
|
||||||
|
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([png_error] ,[qtlibpng png],,AC_MSG_WARN([libpng not found. Assuming qt has it built-in])))
|
||||||
|
BITCOIN_QT_CHECK(AC_SEARCH_LIBS([pcre2_match_16], [qtpcre2 libqtpcre2],,AC_MSG_WARN([libqtpcre2 not found. Assuming qt has it built-in])))
|
||||||
|
fi
|
||||||
|
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])))
|
||||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Core] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Core not found)))
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Core] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Core not found)))
|
||||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Gui] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Gui not found)))
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Gui] ,[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Gui not found)))
|
||||||
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Network],[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Network not found)))
|
BITCOIN_QT_CHECK(AC_CHECK_LIB([${QT_LIB_PREFIX}Network],[main],,BITCOIN_QT_FAIL(lib${QT_LIB_PREFIX}Network not found)))
|
||||||
|
|
|
@ -1,22 +1,20 @@
|
||||||
PACKAGE=qt
|
PACKAGE=qt
|
||||||
$(package)_version=5.7.1
|
$(package)_version=5.9.6
|
||||||
$(package)_download_path=https://download.qt.io/archive/qt/5.7/$($(package)_version)/submodules
|
$(package)_download_path=https://download.qt.io/official_releases/qt/5.9/$($(package)_version)/submodules
|
||||||
$(package)_suffix=opensource-src-$($(package)_version).tar.gz
|
$(package)_suffix=opensource-src-$($(package)_version).tar.xz
|
||||||
$(package)_file_name=qtbase-$($(package)_suffix)
|
$(package)_file_name=qtbase-$($(package)_suffix)
|
||||||
$(package)_sha256_hash=95f83e532d23b3ddbde7973f380ecae1bac13230340557276f75f2e37984e410
|
$(package)_sha256_hash=eed620cb268b199bd83b3fc6a471c51d51e1dc2dbb5374fc97a0cc75facbe36f
|
||||||
$(package)_dependencies=openssl zlib
|
$(package)_dependencies=openssl zlib
|
||||||
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
|
$(package)_linux_dependencies=freetype fontconfig libxcb libX11 xproto libXext
|
||||||
$(package)_build_subdir=qtbase
|
$(package)_build_subdir=qtbase
|
||||||
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
$(package)_qt_libs=corelib network widgets gui plugins testlib
|
||||||
$(package)_patches=mac-qmake.conf mingw-uuidof.patch pidlist_absolute.patch fix-xcb-include-order.patch
|
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
|
||||||
$(package)_patches+=fix_qt_pkgconfig.patch fix-cocoahelpers-macos.patch qfixed-coretext.patch
|
|
||||||
|
|
||||||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
||||||
$(package)_qttranslations_sha256_hash=3a15aebd523c6d89fb97b2d3df866c94149653a26d27a00aac9b6d3020bc5a1d
|
$(package)_qttranslations_sha256_hash=9822084f8e2d2939ba39f4af4c0c2320e45d5996762a9423f833055607604ed8
|
||||||
|
|
||||||
|
|
||||||
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
$(package)_qttools_file_name=qttools-$($(package)_suffix)
|
||||||
$(package)_qttools_sha256_hash=22d67de915cb8cd93e16fdd38fa006224ad9170bd217c2be1e53045a8dd02f0f
|
$(package)_qttools_sha256_hash=50e75417ec0c74bb8b1989d1d8e981ee83690dce7dfc0c2169f7c00f397e5117
|
||||||
|
|
||||||
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
$(package)_extra_sources = $($(package)_qttranslations_file_name)
|
||||||
$(package)_extra_sources += $($(package)_qttools_file_name)
|
$(package)_extra_sources += $($(package)_qttools_file_name)
|
||||||
|
@ -29,25 +27,18 @@ $(package)_config_opts += -c++std c++11
|
||||||
$(package)_config_opts += -confirm-license
|
$(package)_config_opts += -confirm-license
|
||||||
$(package)_config_opts += -dbus-runtime
|
$(package)_config_opts += -dbus-runtime
|
||||||
$(package)_config_opts += -hostprefix $(build_prefix)
|
$(package)_config_opts += -hostprefix $(build_prefix)
|
||||||
$(package)_config_opts += -no-alsa
|
|
||||||
$(package)_config_opts += -no-audio-backend
|
|
||||||
$(package)_config_opts += -no-cups
|
$(package)_config_opts += -no-cups
|
||||||
$(package)_config_opts += -no-egl
|
$(package)_config_opts += -no-egl
|
||||||
$(package)_config_opts += -no-eglfs
|
$(package)_config_opts += -no-eglfs
|
||||||
$(package)_config_opts += -no-feature-style-windowsmobile
|
|
||||||
$(package)_config_opts += -no-feature-style-windowsce
|
|
||||||
$(package)_config_opts += -no-freetype
|
$(package)_config_opts += -no-freetype
|
||||||
$(package)_config_opts += -no-gif
|
$(package)_config_opts += -no-gif
|
||||||
$(package)_config_opts += -no-glib
|
$(package)_config_opts += -no-glib
|
||||||
$(package)_config_opts += -no-gstreamer
|
|
||||||
$(package)_config_opts += -no-icu
|
$(package)_config_opts += -no-icu
|
||||||
$(package)_config_opts += -no-iconv
|
$(package)_config_opts += -no-iconv
|
||||||
$(package)_config_opts += -no-kms
|
$(package)_config_opts += -no-kms
|
||||||
$(package)_config_opts += -no-linuxfb
|
$(package)_config_opts += -no-linuxfb
|
||||||
$(package)_config_opts += -no-libudev
|
$(package)_config_opts += -no-libudev
|
||||||
$(package)_config_opts += -no-mitshm
|
|
||||||
$(package)_config_opts += -no-mtdev
|
$(package)_config_opts += -no-mtdev
|
||||||
$(package)_config_opts += -no-pulseaudio
|
|
||||||
$(package)_config_opts += -no-openvg
|
$(package)_config_opts += -no-openvg
|
||||||
$(package)_config_opts += -no-reduce-relocations
|
$(package)_config_opts += -no-reduce-relocations
|
||||||
$(package)_config_opts += -no-qml-debug
|
$(package)_config_opts += -no-qml-debug
|
||||||
|
@ -62,7 +53,6 @@ $(package)_config_opts += -no-sql-sqlite
|
||||||
$(package)_config_opts += -no-sql-sqlite2
|
$(package)_config_opts += -no-sql-sqlite2
|
||||||
$(package)_config_opts += -no-use-gold-linker
|
$(package)_config_opts += -no-use-gold-linker
|
||||||
$(package)_config_opts += -no-xinput2
|
$(package)_config_opts += -no-xinput2
|
||||||
$(package)_config_opts += -no-xrender
|
|
||||||
$(package)_config_opts += -nomake examples
|
$(package)_config_opts += -nomake examples
|
||||||
$(package)_config_opts += -nomake tests
|
$(package)_config_opts += -nomake tests
|
||||||
$(package)_config_opts += -opensource
|
$(package)_config_opts += -opensource
|
||||||
|
@ -75,12 +65,13 @@ $(package)_config_opts += -qt-libpng
|
||||||
$(package)_config_opts += -qt-libjpeg
|
$(package)_config_opts += -qt-libjpeg
|
||||||
$(package)_config_opts += -qt-pcre
|
$(package)_config_opts += -qt-pcre
|
||||||
$(package)_config_opts += -system-zlib
|
$(package)_config_opts += -system-zlib
|
||||||
$(package)_config_opts += -reduce-exports
|
|
||||||
$(package)_config_opts += -static
|
$(package)_config_opts += -static
|
||||||
$(package)_config_opts += -silent
|
$(package)_config_opts += -silent
|
||||||
$(package)_config_opts += -v
|
$(package)_config_opts += -v
|
||||||
$(package)_config_opts += -no-feature-printer
|
$(package)_config_opts += -no-feature-printer
|
||||||
$(package)_config_opts += -no-feature-printdialog
|
$(package)_config_opts += -no-feature-printdialog
|
||||||
|
$(package)_config_opts += -no-feature-concurrent
|
||||||
|
$(package)_config_opts += -no-feature-xml
|
||||||
|
|
||||||
ifneq ($(build_os),darwin)
|
ifneq ($(build_os),darwin)
|
||||||
$(package)_config_opts_darwin = -xplatform macx-clang-linux
|
$(package)_config_opts_darwin = -xplatform macx-clang-linux
|
||||||
|
@ -95,11 +86,12 @@ endif
|
||||||
$(package)_config_opts_linux = -qt-xkbcommon
|
$(package)_config_opts_linux = -qt-xkbcommon
|
||||||
$(package)_config_opts_linux += -qt-xcb
|
$(package)_config_opts_linux += -qt-xcb
|
||||||
$(package)_config_opts_linux += -system-freetype
|
$(package)_config_opts_linux += -system-freetype
|
||||||
$(package)_config_opts_linux += -no-sm
|
$(package)_config_opts_linux += -no-feature-sessionmanager
|
||||||
$(package)_config_opts_linux += -fontconfig
|
$(package)_config_opts_linux += -fontconfig
|
||||||
$(package)_config_opts_linux += -no-opengl
|
$(package)_config_opts_linux += -no-opengl
|
||||||
$(package)_config_opts_arm_linux = -platform linux-g++ -xplatform $(host)
|
$(package)_config_opts_arm_linux = -platform linux-g++ -xplatform $(host)
|
||||||
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
$(package)_config_opts_i686_linux = -xplatform linux-g++-32
|
||||||
|
$(package)_config_opts_x86_64_linux = -xplatform linux-g++-64
|
||||||
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-"
|
$(package)_config_opts_mingw32 = -no-opengl -xplatform win32-g++ -device-option CROSS_COMPILE="$(host)-"
|
||||||
$(package)_build_env = QT_RCC_TEST=1
|
$(package)_build_env = QT_RCC_TEST=1
|
||||||
endef
|
endef
|
||||||
|
@ -124,11 +116,10 @@ define $(package)_extract_cmds
|
||||||
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
|
tar --strip-components=1 -xf $($(package)_source_dir)/$($(package)_qttools_file_name) -C qttools
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
||||||
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
|
sed -i.old "/updateqm.depends =/d" qttranslations/translations/translations.pro && \
|
||||||
sed -i.old "s/src_plugins.depends = src_sql src_xml src_network/src_plugins.depends = src_xml src_network/" qtbase/src/src.pro && \
|
sed -i.old "s/src_plugins.depends = src_sql src_network/src_plugins.depends = src_network/" qtbase/src/src.pro && \
|
||||||
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
|
sed -i.old "s|X11/extensions/XIproto.h|X11/X.h|" qtbase/src/plugins/platforms/xcb/qxcbxsettings.cpp && \
|
||||||
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
|
sed -i.old 's/if \[ "$$$$XPLATFORM_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/if \[ "$$$$BUILD_ON_MAC" = "yes" \]; then xspecvals=$$$$(macSDKify/' qtbase/configure && \
|
||||||
sed -i.old 's/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0)/CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft)/' qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm && \
|
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
|
||||||
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/Info.plist.app qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h 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 -f $($(package)_patch_dir)/mac-qmake.conf qtbase/mkspecs/macx-clang-linux/qmake.conf && \
|
||||||
patch -p1 < $($(package)_patch_dir)/mingw-uuidof.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_qt_pkgconfig.patch &&\
|
||||||
patch -p1 < $($(package)_patch_dir)/pidlist_absolute.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_configure_mac.patch &&\
|
||||||
patch -p1 < $($(package)_patch_dir)/fix-xcb-include-order.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_no_printer.patch &&\
|
||||||
patch -p1 < $($(package)_patch_dir)/fix_qt_pkgconfig.patch && \
|
|
||||||
patch -p1 < $($(package)_patch_dir)/fix-cocoahelpers-macos.patch && \
|
|
||||||
patch -p1 < $($(package)_patch_dir)/qfixed-coretext.patch && \
|
|
||||||
echo "!host_build: QMAKE_CFLAGS += $($(package)_cflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.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_CXXFLAGS += $($(package)_cxxflags) $($(package)_cppflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
echo "!host_build: QMAKE_LFLAGS += $($(package)_ldflags)" >> qtbase/mkspecs/common/gcc-base.conf && \
|
||||||
|
echo "QMAKE_LINK_OBJECT_MAX = 10" >> qtbase/mkspecs/win32-g++/qmake.conf &&\
|
||||||
|
echo "QMAKE_LINK_OBJECT_SCRIPT = object_script" >> qtbase/mkspecs/win32-g++/qmake.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_CFLAGS = |!host_build: QMAKE_CFLAGS = $($(package)_cflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
||||||
sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" qtbase/mkspecs/win32-g++/qmake.conf && \
|
sed -i.old "s|QMAKE_LFLAGS = |!host_build: QMAKE_LFLAGS = $($(package)_ldflags) |" 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 "s|QMAKE_CXXFLAGS = |!host_build: QMAKE_CXXFLAGS = $($(package)_cxxflags) $($(package)_cppflags) |" qtbase/mkspecs/win32-g++/qmake.conf
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
|
@ -162,18 +151,21 @@ define $(package)_config_cmds
|
||||||
$(MAKE) sub-src-clean && \
|
$(MAKE) sub-src-clean && \
|
||||||
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
|
||||||
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
|
cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
|
||||||
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile
|
cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
|
||||||
|
cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_build_cmds
|
define $(package)_build_cmds
|
||||||
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
|
||||||
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
$(MAKE) -C ../qttools/src/linguist/lrelease && \
|
||||||
|
$(MAKE) -C ../qttools/src/linguist/lupdate && \
|
||||||
$(MAKE) -C ../qttranslations
|
$(MAKE) -C ../qttranslations
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_stage_cmds
|
define $(package)_stage_cmds
|
||||||
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
|
$(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/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 && \
|
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets && \
|
||||||
if `test -f qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a`; then \
|
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; \
|
cp qtbase/src/plugins/platforms/xcb/xcb-static/libxcb-static.a $($(package)_staging_prefix_dir)/lib; \
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
From 0707260a4f8e64dfadf1df5f935e74cabb7c7d27 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jake Petroules <jake.petroules@qt.io>
|
|
||||||
Date: Sun, 1 Oct 2017 21:48:17 -0700
|
|
||||||
Subject: [PATCH] Fix build error with macOS 10.13 SDK
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Type: text/plain; charset=utf8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
|
|
||||||
Several of these variables/macros are no longer defined. We didn't
|
|
||||||
validate the preconditions on iOS, tvOS, or watchOS, so no
|
|
||||||
need to bother validating them on macOS either. Nor did we check the
|
|
||||||
OSStatus result on any platform anyways.
|
|
||||||
|
|
||||||
Task-number: QTBUG-63401
|
|
||||||
Change-Id: Ife64dff767cf6d3f4b839fc53ec486181c176bf3
|
|
||||||
(cherry-picked from 861544583511d4e6f7745d2339b26ff1cd44132b)
|
|
||||||
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
|
|
||||||
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
|
|
||||||
---
|
|
||||||
src/plugins/platforms/cocoa/qcocoahelpers.h | 2 +-
|
|
||||||
src/plugins/platforms/cocoa/qcocoahelpers.mm | 13 +------------
|
|
||||||
2 files changed, 2 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
diff --git old/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.h new/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.h
|
|
||||||
index bbb3793..74371d5 100644
|
|
||||||
--- old/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.h
|
|
||||||
+++ new/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.h
|
|
||||||
@@ -80,7 +80,7 @@ QColor qt_mac_toQColor(CGColorRef color);
|
|
||||||
// Creates a mutable shape, it's the caller's responsibility to release.
|
|
||||||
HIMutableShapeRef qt_mac_QRegionToHIMutableShape(const QRegion ®ion);
|
|
||||||
|
|
||||||
-OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage);
|
|
||||||
+void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage);
|
|
||||||
|
|
||||||
NSDragOperation qt_mac_mapDropAction(Qt::DropAction action);
|
|
||||||
NSDragOperation qt_mac_mapDropActions(Qt::DropActions actions);
|
|
||||||
diff --git old/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm new/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm
|
|
||||||
index cd73148..3f8429e 100644
|
|
||||||
--- old/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm
|
|
||||||
+++ new/qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm
|
|
||||||
@@ -544,15 +544,8 @@ NSRect qt_mac_flipRect(const QRect &rect)
|
|
||||||
return NSMakeRect(rect.x(), flippedY, rect.width(), rect.height());
|
|
||||||
}
|
|
||||||
|
|
||||||
-OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
|
|
||||||
+void qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGImageRef inImage)
|
|
||||||
{
|
|
||||||
- // Verbatim copy if HIViewDrawCGImage (as shown on Carbon-Dev)
|
|
||||||
- OSStatus err = noErr;
|
|
||||||
-
|
|
||||||
- require_action(inContext != NULL, InvalidContext, err = paramErr);
|
|
||||||
- require_action(inBounds != NULL, InvalidBounds, err = paramErr);
|
|
||||||
- require_action(inImage != NULL, InvalidImage, err = paramErr);
|
|
||||||
-
|
|
||||||
CGContextSaveGState( inContext );
|
|
||||||
CGContextTranslateCTM (inContext, 0, inBounds->origin.y + CGRectGetMaxY(*inBounds));
|
|
||||||
CGContextScaleCTM(inContext, 1, -1);
|
|
||||||
@@ -560,10 +553,6 @@ OSStatus qt_mac_drawCGImage(CGContextRef inContext, const CGRect *inBounds, CGIm
|
|
||||||
CGContextDrawImage(inContext, *inBounds, inImage);
|
|
||||||
|
|
||||||
CGContextRestoreGState(inContext);
|
|
||||||
-InvalidImage:
|
|
||||||
-InvalidBounds:
|
|
||||||
-InvalidContext:
|
|
||||||
- return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
Qt::MouseButton cocoaButton2QtButton(NSInteger buttonNum)
|
|
||||||
--
|
|
||||||
2.7.4
|
|
|
@ -1,49 +0,0 @@
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro 2015-03-17
|
|
||||||
@@ -76,8 +76,6 @@
|
|
||||||
|
|
||||||
DEFINES += $$QMAKE_DEFINES_XCB
|
|
||||||
LIBS += $$QMAKE_LIBS_XCB
|
|
||||||
-QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
-QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
|
|
||||||
CONFIG += qpa/genericunixfontdatabase
|
|
||||||
|
|
||||||
@@ -89,7 +87,8 @@
|
|
||||||
contains(QT_CONFIG, xcb-qt) {
|
|
||||||
DEFINES += XCB_USE_RENDER
|
|
||||||
XCB_DIR = ../../../3rdparty/xcb
|
|
||||||
- INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/sysinclude
|
|
||||||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
LIBS += -lxcb -L$$MODULE_BASE_OUTDIR/lib -lxcb-static$$qtPlatformTargetSuffix()
|
|
||||||
} else {
|
|
||||||
LIBS += -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xinerama
|
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro
|
|
||||||
@@ -9,7 +9,8 @@
|
|
||||||
|
|
||||||
XCB_DIR = ../../../../3rdparty/xcb
|
|
||||||
|
|
||||||
-INCLUDEPATH += $$XCB_DIR/include $$XCB_DIR/include/xcb $$XCB_DIR/sysinclude
|
|
||||||
+QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
|
|
||||||
+QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/include/xcb -I$$XCB_DIR/sysinclude
|
|
||||||
|
|
||||||
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
QMAKE_CFLAGS += $$QMAKE_CFLAGS_XCB
|
|
||||||
--- old/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro
|
|
||||||
+++ new/qtbase/src/plugins/platforms/xcb/xcb-plugin.pro
|
|
||||||
@@ -6,6 +6,13 @@
|
|
||||||
qxcbmain.cpp
|
|
||||||
OTHER_FILES += xcb.json README
|
|
||||||
|
|
||||||
+contains(QT_CONFIG, xcb-qt) {
|
|
||||||
+ DEFINES += XCB_USE_RENDER
|
|
||||||
+ XCB_DIR = ../../../3rdparty/xcb
|
|
||||||
+ QMAKE_CFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+ QMAKE_CXXFLAGS += -I$$XCB_DIR/include -I$$XCB_DIR/sysinclude $$QMAKE_CFLAGS_XCB
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
PLUGIN_TYPE = platforms
|
|
||||||
PLUGIN_CLASS_NAME = QXcbIntegrationPlugin
|
|
||||||
!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -
|
|
50
depends/patches/qt/fix_configure_mac.patch
Normal file
50
depends/patches/qt/fix_configure_mac.patch
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
--- old/qtbase/mkspecs/features/mac/sdk.prf 2018-02-08 10:24:48.000000000 -0800
|
||||||
|
+++ new/qtbase/mkspecs/features/mac/sdk.prf 2018-03-23 10:38:56.000000000 -0700
|
||||||
|
@@ -8,21 +8,21 @@
|
||||||
|
defineReplace(xcodeSDKInfo) {
|
||||||
|
info = $$1
|
||||||
|
equals(info, "Path"): \
|
||||||
|
- info = --show-sdk-path
|
||||||
|
+ infoarg = --show-sdk-path
|
||||||
|
equals(info, "PlatformPath"): \
|
||||||
|
- info = --show-sdk-platform-path
|
||||||
|
+ infoarg = --show-sdk-platform-path
|
||||||
|
equals(info, "SDKVersion"): \
|
||||||
|
- info = --show-sdk-version
|
||||||
|
+ infoarg = --show-sdk-version
|
||||||
|
sdk = $$2
|
||||||
|
isEmpty(sdk): \
|
||||||
|
sdk = $$QMAKE_MAC_SDK
|
||||||
|
|
||||||
|
isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}) {
|
||||||
|
- QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$info 2>/dev/null")
|
||||||
|
+ QMAKE_MAC_SDK.$${sdk}.$${info} = $$system("/usr/bin/xcrun --sdk $$sdk $$infoarg 2>/dev/null")
|
||||||
|
# --show-sdk-platform-path won't work for Command Line Tools; this is fine
|
||||||
|
# only used by the XCTest backend to testlib
|
||||||
|
- isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(info, "--show-sdk-platform-path")): \
|
||||||
|
- error("Could not resolve SDK $$info for \'$$sdk\'")
|
||||||
|
+ isEmpty(QMAKE_MAC_SDK.$${sdk}.$${info}):if(!isEmpty(QMAKE_XCODEBUILD_PATH)|!equals(infoarg, "--show-sdk-platform-path")): \
|
||||||
|
+ error("Could not resolve SDK $$info for \'$$sdk\' using $$infoarg")
|
||||||
|
cache(QMAKE_MAC_SDK.$${sdk}.$${info}, set stash, QMAKE_MAC_SDK.$${sdk}.$${info})
|
||||||
|
}
|
||||||
|
|
||||||
|
--- old/qtbase/configure 2018-02-08 10:24:48.000000000 -0800
|
||||||
|
+++ new/qtbase/configure 2018-03-23 05:42:29.000000000 -0700
|
||||||
|
@@ -232,8 +232,13 @@
|
||||||
|
|
||||||
|
sdk=$(getSingleQMakeVariable "QMAKE_MAC_SDK" "$1")
|
||||||
|
if [ -z "$sdk" ]; then echo "QMAKE_MAC_SDK must be set when building on Mac" >&2; exit 1; fi
|
||||||
|
- sysroot=$(/usr/bin/xcrun --sdk $sdk --show-sdk-path 2>/dev/null)
|
||||||
|
- if [ -z "$sysroot" ]; then echo "Failed to resolve SDK path for '$sdk'" >&2; exit 1; fi
|
||||||
|
+ sysroot=$(getSingleQMakeVariable "QMAKE_MAC_SDK_PATH" "$1")
|
||||||
|
+
|
||||||
|
+ echo "sysroot pre-configured as $sysroot";
|
||||||
|
+ if [ -z "$sysroot" ]; then
|
||||||
|
+ sysroot=$(/usr/bin/xcrun --sdk $sdk --show-sdk-path 2>/dev/null)
|
||||||
|
+ if [ -z "$sysroot" ]; then echo "Failed to resolve SDK path for '$sdk'" >&2; exit 1; fi
|
||||||
|
+ fi
|
||||||
|
|
||||||
|
case "$sdk" in
|
||||||
|
macosx*)
|
||||||
|
|
||||||
|
|
19
depends/patches/qt/fix_no_printer.patch
Normal file
19
depends/patches/qt/fix_no_printer.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- x/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
|
||||||
|
+++ y/qtbase/src/plugins/platforms/cocoa/qprintengine_mac_p.h
|
||||||
|
@@ -52,6 +52,7 @@
|
||||||
|
//
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
+#include <qpa/qplatformprintdevice.h>
|
||||||
|
|
||||||
|
#ifndef QT_NO_PRINTER
|
||||||
|
|
||||||
|
--- x/qtbase/src/plugins/plugins.pro
|
||||||
|
+++ y/qtbase/src/plugins/plugins.pro
|
||||||
|
@@ -8,6 +8,3 @@ qtHaveModule(gui) {
|
||||||
|
qtConfig(imageformatplugin): SUBDIRS *= imageformats
|
||||||
|
!android:qtConfig(library): SUBDIRS *= generic
|
||||||
|
}
|
||||||
|
-
|
||||||
|
-!winrt:qtHaveModule(printsupport): \
|
||||||
|
- SUBDIRS += printsupport
|
|
@ -14,6 +14,7 @@ QMAKE_MAC_SDK.macosx.Path = $${MAC_SDK_PATH}
|
||||||
QMAKE_MAC_SDK.macosx.platform_name = macosx
|
QMAKE_MAC_SDK.macosx.platform_name = macosx
|
||||||
QMAKE_MAC_SDK.macosx.SDKVersion = $${MAC_SDK_VERSION}
|
QMAKE_MAC_SDK.macosx.SDKVersion = $${MAC_SDK_VERSION}
|
||||||
QMAKE_MAC_SDK.macosx.PlatformPath = /phony
|
QMAKE_MAC_SDK.macosx.PlatformPath = /phony
|
||||||
|
QMAKE_APPLE_DEVICE_ARCHS=x86_64
|
||||||
!host_build: QMAKE_CFLAGS += -target $${MAC_TARGET}
|
!host_build: QMAKE_CFLAGS += -target $${MAC_TARGET}
|
||||||
!host_build: QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
|
!host_build: QMAKE_OBJECTIVE_CFLAGS += $$QMAKE_CFLAGS
|
||||||
!host_build: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
|
!host_build: QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.cpp
|
|
||||||
@@ -77,7 +77,7 @@
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <windowsx.h>
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
# include <comdef.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -814,7 +814,7 @@
|
|
||||||
HWND_MESSAGE, NULL, static_cast<HINSTANCE>(GetModuleHandle(0)), NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
// Re-engineered from the inline function _com_error::ErrorMessage().
|
|
||||||
// We cannot use it directly since it uses swprintf_s(), which is not
|
|
||||||
// present in the MSVCRT.DLL found on Windows XP (QTBUG-35617).
|
|
||||||
@@ -833,7 +833,7 @@
|
|
||||||
return QString::asprintf("IDispatch error #%u", uint(wCode));
|
|
||||||
return QString::asprintf("Unknown error 0x0%x", uint(comError.Error()));
|
|
||||||
}
|
|
||||||
-#endif // !Q_OS_WINCE
|
|
||||||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\brief Common COM error strings.
|
|
||||||
@@ -901,12 +901,12 @@
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
-#ifndef Q_OS_WINCE
|
|
||||||
+#if !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
_com_error error(hr);
|
|
||||||
result += QByteArrayLiteral(" (");
|
|
||||||
result += errorMessageFromComError(error);
|
|
||||||
result += ')';
|
|
||||||
-#endif // !Q_OS_WINCE
|
|
||||||
+#endif // !defined(Q_OS_WINCE) && (!defined(USE___UUIDOF) || (defined(USE___UUIDOF) && USE___UUIDOF == 1))
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowscontext.h new/qtbase/src/plugins/platforms/windows/qwindowscontext.h
|
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowscontext.h
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowscontext.h
|
|
||||||
@@ -136,10 +136,18 @@
|
|
||||||
inline void init();
|
|
||||||
|
|
||||||
typedef HRESULT (WINAPI *SHCreateItemFromParsingName)(PCWSTR, IBindCtx *, const GUID&, void **);
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, ITEMIDLIST **);
|
|
||||||
+#else
|
|
||||||
typedef HRESULT (WINAPI *SHGetKnownFolderIDList)(const GUID &, DWORD, HANDLE, PIDLIST_ABSOLUTE *);
|
|
||||||
+#endif
|
|
||||||
typedef HRESULT (WINAPI *SHGetStockIconInfo)(int , int , _SHSTOCKICONINFO *);
|
|
||||||
typedef HRESULT (WINAPI *SHGetImageList)(int, REFIID , void **);
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ typedef HRESULT (WINAPI *SHCreateItemFromIDList)(const ITEMIDLIST *, REFIID, void **);
|
|
||||||
+#else
|
|
||||||
typedef HRESULT (WINAPI *SHCreateItemFromIDList)(PCIDLIST_ABSOLUTE, REFIID, void **);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
SHCreateItemFromParsingName sHCreateItemFromParsingName;
|
|
||||||
SHGetKnownFolderIDList sHGetKnownFolderIDList;
|
|
||||||
diff -dur old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
|
|
||||||
--- old/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
|
|
||||||
+++ new/qtbase/src/plugins/platforms/windows/qwindowsdialoghelpers.cpp
|
|
||||||
@@ -1016,7 +1016,11 @@
|
|
||||||
qWarning() << __FUNCTION__ << ": Invalid CLSID: " << url.path();
|
|
||||||
return Q_NULLPTR;
|
|
||||||
}
|
|
||||||
+#if defined(Q_CC_MINGW) && (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3)
|
|
||||||
+ ITEMIDLIST *idList;
|
|
||||||
+#else
|
|
||||||
PIDLIST_ABSOLUTE idList;
|
|
||||||
+#endif
|
|
||||||
HRESULT hr = QWindowsContext::shell32dll.sHGetKnownFolderIDList(uuid, 0, 0, &idList);
|
|
||||||
if (FAILED(hr)) {
|
|
||||||
qErrnoWarning("%s: SHGetKnownFolderIDList(%s)) failed", __FUNCTION__, qPrintable(url.toString()));
|
|
|
@ -1,34 +0,0 @@
|
||||||
From dbdd5f0ffbce52c8b789ed09f1aa3f1da6c02e23 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
|
|
||||||
Date: Fri, 30 Mar 2018 11:58:16 -0700
|
|
||||||
Subject: [PATCH] QCoreTextFontEngine: Fix build with Xcode 9.3
|
|
||||||
|
|
||||||
Apple LLVM version 9.1.0 (clang-902.0.39.1)
|
|
||||||
|
|
||||||
Error message:
|
|
||||||
|
|
||||||
.../qfontengine_coretext.mm:827:20: error: qualified reference to
|
|
||||||
'QFixed' is a constructor name rather than a type in this context
|
|
||||||
return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
|
|
||||||
|
|
||||||
Change-Id: Iebe26b3b087a16b10664208fc8851cbddb47f043
|
|
||||||
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
|
|
||||||
---
|
|
||||||
src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git old/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm new/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
|
|
||||||
index 25ff69d877d..98b753eff96 100644
|
|
||||||
--- old/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
|
|
||||||
+++ new/qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
|
|
||||||
@@ -824,7 +824,7 @@ void QCoreTextFontEngine::getUnscaledGlyph(glyph_t glyph, QPainterPath *path, gl
|
|
||||||
|
|
||||||
QFixed QCoreTextFontEngine::emSquareSize() const
|
|
||||||
{
|
|
||||||
- return QFixed::QFixed(int(CTFontGetUnitsPerEm(ctfont)));
|
|
||||||
+ return QFixed(int(CTFontGetUnitsPerEm(ctfont)));
|
|
||||||
}
|
|
||||||
|
|
||||||
QFontEngine *QCoreTextFontEngine::cloneWithSize(qreal pixelSize) const
|
|
||||||
--
|
|
||||||
2.16.3
|
|
Loading…
Reference in a new issue