|
@@ -8,7 +8,7 @@ QT5BASE_VERSION = $(QT5_VERSION)
|
|
|
QT5BASE_SITE = $(QT5_SITE)
|
|
|
QT5BASE_SOURCE = qtbase-$(QT5_SOURCE_TARBALL_PREFIX)-$(QT5BASE_VERSION).tar.xz
|
|
|
|
|
|
-QT5BASE_DEPENDENCIES = host-pkgconf zlib
|
|
|
+QT5BASE_DEPENDENCIES = host-pkgconf pcre2 zlib
|
|
|
QT5BASE_INSTALL_STAGING = YES
|
|
|
|
|
|
# A few comments:
|
|
@@ -30,9 +30,7 @@ QT5BASE_CONFIGURE_OPTS += \
|
|
|
# starting from version 5.9.0, -optimize-debug is enabled by default
|
|
|
# for debug builds and it overrides -O* with -Og which is not what we
|
|
|
# want.
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-optimize-debug
|
|
|
-endif
|
|
|
|
|
|
QT5BASE_CFLAGS = $(TARGET_CFLAGS)
|
|
|
QT5BASE_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
@@ -42,12 +40,6 @@ QT5BASE_CFLAGS += -O0
|
|
|
QT5BASE_CXXFLAGS += -O0
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-QT5BASE_DEPENDENCIES += pcre
|
|
|
-else
|
|
|
-QT5BASE_DEPENDENCIES += pcre2
|
|
|
-endif
|
|
|
-
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE2),)
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-sse2
|
|
|
else ifeq ($(BR2_X86_CPU_HAS_SSE3),)
|
|
@@ -64,7 +56,7 @@ else ifeq ($(BR2_X86_CPU_HAS_AVX2),)
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-avx2
|
|
|
else
|
|
|
# no buildroot BR2_X86_CPU_HAS_AVX512 option yet for qt configure
|
|
|
-# option '-no-avx512' (available for latest only)
|
|
|
+# option '-no-avx512'
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
@@ -94,18 +86,9 @@ else
|
|
|
QT5BASE_CONFIGURE_OPTS += -release
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-QT5BASE_CONFIGURE_OPTS += -largefile
|
|
|
-endif
|
|
|
-
|
|
|
QT5BASE_CONFIGURE_OPTS += -opensource -confirm-license
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
QT5BASE_LICENSE = GPL-2.0+ or LGPL-3.0, GPL-3.0 with exception(tools), GFDL-1.3 (docs)
|
|
|
QT5BASE_LICENSE_FILES = LICENSE.GPL2 LICENSE.GPL3 LICENSE.GPL3-EXCEPT LICENSE.LGPLv3 LICENSE.FDL
|
|
|
-else
|
|
|
-QT5BASE_LICENSE = GPL-3.0 or LGPL-2.1 with exception or LGPL-3.0, GFDL-1.3 (docs)
|
|
|
-QT5BASE_LICENSE_FILES = LICENSE.GPLv3 LICENSE.LGPLv21 LGPL_EXCEPTION.txt LICENSE.LGPLv3 LICENSE.FDL
|
|
|
-endif
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_EXAMPLES),y)
|
|
|
QT5BASE_LICENSE += , BSD-3-Clause (examples)
|
|
|
QT5BASE_LICENSE_FILES += header.BSD
|
|
@@ -145,7 +128,6 @@ endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_GUI),y)
|
|
|
QT5BASE_CONFIGURE_OPTS += -gui -system-freetype
|
|
|
-QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5_VERSION_5_6),-I$(STAGING_DIR)/usr/include/freetype2)
|
|
|
QT5BASE_DEPENDENCIES += freetype
|
|
|
else
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-gui -no-freetype
|
|
@@ -175,11 +157,7 @@ QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_DIRECTFB),directfb)
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
|
|
|
QT5BASE_CONFIGURE_OPTS += -xcb
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-QT5BASE_CONFIGURE_OPTS += -system-xkbcommon-x11
|
|
|
-else
|
|
|
QT5BASE_CONFIGURE_OPTS += -xkbcommon
|
|
|
-endif
|
|
|
|
|
|
QT5BASE_DEPENDENCIES += \
|
|
|
libxcb \
|
|
@@ -215,15 +193,8 @@ else
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-eglfs
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-# No OpenSSL 1.1.x support in Qt 5.6.x
|
|
|
-# LibreSSL works with shared linkage only and -fpermissive patch
|
|
|
-QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_LIBRESSL),-openssl-linked,-no-openssl)
|
|
|
-QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBRESSL),openssl)
|
|
|
-else
|
|
|
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_OPENSSL),-openssl,-no-openssl)
|
|
|
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_OPENSSL),openssl)
|
|
|
-endif
|
|
|
|
|
|
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),-fontconfig,-no-fontconfig)
|
|
|
QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_FONTCONFIG),fontconfig)
|
|
@@ -247,16 +218,6 @@ QT5BASE_DEPENDENCIES += $(if $(BR2_PACKAGE_QT5BASE_ICU),icu)
|
|
|
|
|
|
QT5BASE_CONFIGURE_OPTS += $(if $(BR2_PACKAGE_QT5BASE_EXAMPLES),-make,-nomake) examples
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-# gstreamer 0.10 support is broken in qt5multimedia
|
|
|
-ifeq ($(BR2_PACKAGE_GST1_PLUGINS_BASE),y)
|
|
|
-QT5BASE_CONFIGURE_OPTS += -gstreamer 1.0
|
|
|
-QT5BASE_DEPENDENCIES += gst1-plugins-base
|
|
|
-else
|
|
|
-QT5BASE_CONFIGURE_OPTS += -no-gstreamer
|
|
|
-endif
|
|
|
-endif
|
|
|
-
|
|
|
ifeq ($(BR2_PACKAGE_LIBINPUT),y)
|
|
|
QT5BASE_CONFIGURE_OPTS += -libinput
|
|
|
QT5BASE_DEPENDENCIES += libinput
|
|
@@ -264,7 +225,6 @@ else
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-libinput
|
|
|
endif
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
# only enable gtk support if libgtk3 X11 backend is enabled
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3)$(BR2_PACKAGE_LIBGTK3_X11),yy)
|
|
|
QT5BASE_CONFIGURE_OPTS += -gtk
|
|
@@ -272,7 +232,6 @@ QT5BASE_DEPENDENCIES += libgtk3
|
|
|
else
|
|
|
QT5BASE_CONFIGURE_OPTS += -no-gtk
|
|
|
endif
|
|
|
-endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
QT5BASE_CONFIGURE_OPTS += -journald
|
|
@@ -290,7 +249,6 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_SQL) += Qt5Sql
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_TEST) += Qt5Test
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XML) += Qt5Xml
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_OPENGL_LIB) += Qt5OpenGL
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFSDeviceIntegration
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFsKmsSupport
|
|
@@ -298,9 +256,6 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_GCNANO_BINARIES),y)
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFsKmsSupport
|
|
|
endif
|
|
|
-else
|
|
|
-QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglDeviceIntegration
|
|
|
-endif
|
|
|
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_GUI) += Qt5Gui
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_WIDGETS) += Qt5Widgets
|
|
@@ -308,7 +263,6 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport
|
|
|
|
|
|
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
|
|
|
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
|
|
|
# use vivante backend
|
|
|
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_viv
|
|
@@ -316,7 +270,6 @@ else ifeq ($(BR2_PACKAGE_SUNXI_MALI_MAINLINE),y)
|
|
|
# use mali backend
|
|
|
QT5BASE_EGLFS_DEVICE = EGLFS_DEVICE_INTEGRATION = eglfs_mali
|
|
|
endif
|
|
|
-endif
|
|
|
|
|
|
ifneq ($(QT5BASE_CONFIG_FILE),)
|
|
|
define QT5BASE_CONFIGURE_CONFIG_FILE
|
|
@@ -325,7 +278,7 @@ endef
|
|
|
endif
|
|
|
|
|
|
QT5BASE_ARCH_CONFIG_FILE = $(@D)/mkspecs/devices/linux-buildroot-g++/arch.conf
|
|
|
-ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC)$(BR2_PACKAGE_QT5_VERSION_LATEST),yy)
|
|
|
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
# Qt 5.8 needs atomics, which on various architectures are in -latomic
|
|
|
define QT5BASE_CONFIGURE_ARCH_CONFIG
|
|
|
printf 'LIBS += -latomic\n' >$(QT5BASE_ARCH_CONFIG_FILE)
|
|
@@ -403,15 +356,6 @@ define QT5BASE_INSTALL_TARGET_PLUGINS
|
|
|
fi
|
|
|
endef
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_QT5_VERSION_5_6),y)
|
|
|
-define QT5BASE_INSTALL_TARGET_FONTS
|
|
|
- if [ -d $(STAGING_DIR)/usr/lib/fonts/ ] ; then \
|
|
|
- mkdir -p $(TARGET_DIR)/usr/lib/fonts ; \
|
|
|
- cp -dpfr $(STAGING_DIR)/usr/lib/fonts/* $(TARGET_DIR)/usr/lib/fonts ; \
|
|
|
- fi
|
|
|
-endef
|
|
|
-endif
|
|
|
-
|
|
|
define QT5BASE_INSTALL_TARGET_EXAMPLES
|
|
|
if [ -d $(STAGING_DIR)/usr/lib/qt/examples/ ] ; then \
|
|
|
mkdir -p $(TARGET_DIR)/usr/lib/qt/examples ; \
|
|
@@ -421,14 +365,12 @@ endef
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
define QT5BASE_INSTALL_TARGET_CMDS
|
|
|
- $(QT5BASE_INSTALL_TARGET_FONTS)
|
|
|
$(QT5BASE_INSTALL_TARGET_EXAMPLES)
|
|
|
endef
|
|
|
else
|
|
|
define QT5BASE_INSTALL_TARGET_CMDS
|
|
|
$(QT5BASE_INSTALL_TARGET_LIBS)
|
|
|
$(QT5BASE_INSTALL_TARGET_PLUGINS)
|
|
|
- $(QT5BASE_INSTALL_TARGET_FONTS)
|
|
|
$(QT5BASE_INSTALL_TARGET_EXAMPLES)
|
|
|
endef
|
|
|
endif
|