DESCRIPTION = "SDK version of Qt/[X11|Mac|Embedded]" DEPENDS = "nativesdk-zlib nativesdk-dbus qtbase-native" SECTION = "libs" HOMEPAGE = "http://qt-project.org" QT_MODULE = "qtbase" require nativesdk-qt5.inc # it's already included with newer oe-core, but include it here for dylan FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" # common for qtbase-native, qtbase-nativesdk and qtbase 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-configureapp-Prefix-default-LIBDIRS-and-INCDIRS-with.patch \ file://0005-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ file://0006-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch \ file://0007-qeglplatformintegration-Undefine-CursorShape-from-X..patch \ file://0008-configure-bump-path-length-from-256-to-512-character.patch \ file://0009-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch \ file://0010-Revert-Use-the-gcc-feature-in-simd.prf.patch \ file://0011-QOpenGLPaintDevice-sub-area-support.patch \ " # common for qtbase-native and nativesdk-qtbase SRC_URI += " \ file://0012-Always-build-uic.patch \ " # specific for nativesdk-qtbase SRC_URI += " \ file://0013-configure-preserve-built-qmake-and-swap-with-native-.patch \ " # CMake's toolchain configuration of nativesdk-qtbase SRC_URI += " \ file://OEQt5Toolchain.cmake \ " PACKAGES = "${PN}-tools-dbg ${PN}-tools-dev ${PN}-tools-staticdev ${PN}-tools" PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" FILES_${PN}-tools-dev = " \ ${includedir} \ ${FILES_SOLIBSDEV} ${libdir}/*.la \ ${OE_QMAKE_PATH_ARCHDATA}/mkspecs \ " FILES_${PN}-tools-staticdev = " \ ${libdir}/libQt5Bootstrap.a \ " FILES_${PN}-tools-dbg = " \ ${libdir}/.debug \ ${OE_QMAKE_PATH_BINS}/.debug \ " FILES_${PN}-tools = " \ ${libdir}/lib*${SOLIBS} \ ${OE_QMAKE_PATH_BINS}/* \ ${SDKPATHNATIVE}/environment-setup.d \ ${datadir}/cmake \ " # qttools binaries are placed in a subdir of bin in order to avoid # collisions with qt4. This would trigger debian.bbclass to rename the # package, since it doesn't detect binaries in subdirs. Explicitly # disable package auto-renaming for the tools-package. DEBIAN_NOAUTONAME_${PN}-tools = "1" QT_CONFIG_FLAGS += " \ -shared \ -silent \ -no-pch \ -no-rpath \ -pkg-config \ ${EXTRA_OECONF} \ " # qtbase is exception, as these are used as install path for sysroots OE_QMAKE_PATH_HOST_DATA = "${libdir}/${QT_DIR_NAME}" OE_QMAKE_PATH_HOST_LIBS = "${libdir}" do_generate_qt_config_file() { cat > ${QT_CONF_PATH} <> ${QT_CONF_PATH} < $script echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script echo 'export OE_QMAKE_CC=$CC' >> $script echo 'export OE_QMAKE_CXX=$CXX' >> $script echo 'export OE_QMAKE_LINK=$CXX' >> $script echo 'export OE_QMAKE_AR=$AR' >> $script echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script echo 'export OE_QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS`' >> $script echo 'export OE_QMAKE_MOC=${OE_QMAKE_PATH_HOST_BINS}/moc' >> $script echo 'export OE_QMAKE_UIC=${OE_QMAKE_PATH_HOST_BINS}/uic' >> $script echo 'export OE_QMAKE_RCC=${OE_QMAKE_PATH_HOST_BINS}/rcc' >> $script echo 'export OE_QMAKE_QDBUSCPP2XML=${OE_QMAKE_PATH_HOST_BINS}/qdbuscpp2xml' >> $script echo 'export OE_QMAKE_QDBUSXML2CPP=${OE_QMAKE_PATH_HOST_BINS}/qdbusxml2cpp' >> $script echo 'export OE_QMAKE_QT_CONFIG=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script echo 'export OE_QMAKE_PATH_HOST_BINS=${OE_QMAKE_PATH_HOST_BINS}' >> $script echo 'export QMAKESPEC=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/linux-oe-g++' >> $script # Use relocable sysroot sed -i -e 's:${SDKPATHNATIVE}:$OECORE_NATIVE_SYSROOT:g' $script } addtask generate_qt_environment_file after do_install before do_package