require qt5.inc SRC_URI += " \ file://0001-Add-linux-oe-g-platform.patch \ file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ file://0003-Add-external-hostbindir-option.patch \ file://0004-qt_functions-temporary-remove-isEmpty-check.patch \ file://0005-qmake-is-already-built-in-qtbase-native.patch \ file://0006-Allow-building-a-separate-qmake-for-the-target.patch \ file://0007-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \ file://0008-qt_module-Fix-pkgconfig-replacement.patch \ file://0009-qt_module-Fix-paths-in-.prl-files.patch \ file://0010-wayland-scanner-disable-silent-rules.patch \ file://0011-configure-don-t-export-SYSTEM_VARIABLES-to-.qmake.va.patch \ file://0012-configure.prf-Allow-to-add-extra-arguments-to-make.patch \ " DEPENDS += "qtbase-native freetype jpeg libpng zlib openssl glib-2.0 ${ICU} udev ${XCB_DEPENDS} ${GL_DEPENDS}" # to provide xcb/xcb_icccm.h, xcb/xcb_image.h, xcb/xcb_keysyms.h and dbus/dbus.h # XCB_DEPENDS += "xcb-util-wm xcb-util-image xcb-util-keysyms dbus" # reenable when we switch to "-qt-xcb" and build of # QT_XCB = "-qt-xcb" # src/platformsupport/glxconvenience/ is resolved to be before build of # src/plugins/platforms/xcb/ XCB_DEPENDS ?= "" QT_XCB ?= "-no-xcb" QT_DISTRO_FLAGS ?= "-no-accessibility -no-sm" QT_DISTRO_FLAGS_linuxstdbase = "-sm" # Some can be used only for certain QT_MODULEs, so define them here, # but add them to QT_CONFIG_FLAGS e.g. in qtbase.inc QT_SQL_DRIVER_FLAGS ?= "-no-sql-ibase -no-sql-mysql -no-sql-psql -no-sql-odbc -plugin-sql-sqlite" # if you want to enable egl/gles2 in your .bbappend, don't forget to add right dependencies, e.g. # GL_DEPENDS = "virtual/libgles2 virtual/libegl" # QT_GLFLAGS = "-opengl es2 -eglfs" GL_DEPENDS ?= "virtual/libgl" QT_GLFLAGS ?= "-opengl" QT_XML ?= "-xmlpatterns" QT_WEBKIT ?= "-webkit" QT_PHONON ?= "-phonon" QT_DBUS ?= "-qdbus" QT_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', '-pulseaudio', '-no-pulseaudio', d)}" QT_NAS ?= "-no-nas-sound" QT_NIS ?= "-no-nis" QT_CUPS ?= "-no-cups" QT_STL ?= "-stl" QT_SYSTEM_LIBS ?= "-system-libjpeg -system-libpng -system-zlib" QT_TESTS ?= "-nomake tests" QT_EXAMPLES ?= "-nomake examples" QT_DEMOS ?= "-nomake demos" QT_RELEASE ?= "-release" QT_CONFIG_FLAGS += " \ ${QT_RELEASE} \ -reduce-relocations \ -shared \ -silent \ -glib \ -no-pch \ -no-rpath \ -pkg-config \ ${QT_SYSTEM_LIBS} \ ${QT_NIS} \ ${QT_CUPS} \ ${QT_SQL_DRIVER_FLAGS} \ ${QT_DISTRO_FLAGS} \ ${QT_XCB} \ ${QT_GLFLAGS} \ ${QT_TESTS} \ ${QT_EXAMPLES} \ ${QT_DEMOS} \ " INC_PR = "r1" # Qt uses atomic instructions not supported in thumb mode ARM_INSTRUCTION_SET = "arm" do_generate_qt_config_file_append() { cat >> ${QT_CONF_PATH} <