diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2015-05-28 14:58:06 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-05-28 21:16:50 +0200 |
| commit | 48ee17af942ac9860e834c8dec049370e7802a56 (patch) | |
| tree | 004e47c94682eaa418c9e718c3264ca121732102 | |
| parent | 3208763b8b3f65b17825ded4b2c9b9166d78f2b2 (diff) | |
| download | meta-qt5-48ee17af942ac9860e834c8dec049370e7802a56.tar.gz | |
qt5: merge .inc and _git.bb files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
64 files changed, 1342 insertions, 1335 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase.inc b/recipes-qt/qt5/nativesdk-qtbase.inc deleted file mode 100644 index 35953bbe..00000000 --- a/recipes-qt/qt5/nativesdk-qtbase.inc +++ /dev/null | |||
| @@ -1,272 +0,0 @@ | |||
| 1 | DESCRIPTION = "SDK version of Qt/[X11|Mac|Embedded]" | ||
| 2 | DEPENDS = "nativesdk-zlib nativesdk-dbus qtbase-native" | ||
| 3 | SECTION = "libs" | ||
| 4 | HOMEPAGE = "http://qt-project.org" | ||
| 5 | |||
| 6 | QT_MODULE = "qtbase" | ||
| 7 | |||
| 8 | require nativesdk-qt5.inc | ||
| 9 | |||
| 10 | # it's already included with newer oe-core, but include it here for dylan | ||
| 11 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | ||
| 12 | |||
| 13 | # common for qtbase-native, qtbase-nativesdk and qtbase | ||
| 14 | SRC_URI += "\ | ||
| 15 | file://0001-Add-linux-oe-g-platform.patch \ | ||
| 16 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 17 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 18 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | ||
| 19 | file://0005-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch \ | ||
| 20 | file://0006-qeglplatformintegration-Undefine-CursorShape-from-X..patch \ | ||
| 21 | file://0007-configure-bump-path-length-from-256-to-512-character.patch \ | ||
| 22 | file://0008-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch \ | ||
| 23 | file://0009-QOpenGLPaintDevice-sub-area-support.patch \ | ||
| 24 | file://0010-Make-Qt5GuiConfigExtras.cmake-find-gl-es-include-dir.patch \ | ||
| 25 | " | ||
| 26 | |||
| 27 | # common for qtbase-native and nativesdk-qtbase | ||
| 28 | SRC_URI += " \ | ||
| 29 | file://0011-Always-build-uic.patch \ | ||
| 30 | file://0012-Add-external-hostbindir-option-for-native-sdk.patch \ | ||
| 31 | " | ||
| 32 | |||
| 33 | # specific for nativesdk-qtbase | ||
| 34 | SRC_URI += " \ | ||
| 35 | file://0013-configure-preserve-built-qmake-and-swap-with-native-.patch \ | ||
| 36 | " | ||
| 37 | |||
| 38 | # CMake's toolchain configuration of nativesdk-qtbase | ||
| 39 | SRC_URI += " \ | ||
| 40 | file://OEQt5Toolchain.cmake \ | ||
| 41 | " | ||
| 42 | |||
| 43 | PACKAGES = "${PN}-tools-dbg ${PN}-tools-dev ${PN}-tools-staticdev ${PN}-tools" | ||
| 44 | |||
| 45 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 46 | |||
| 47 | FILES_${PN}-tools-dev = " \ | ||
| 48 | ${includedir} \ | ||
| 49 | ${FILES_SOLIBSDEV} ${libdir}/*.la \ | ||
| 50 | ${OE_QMAKE_PATH_ARCHDATA}/mkspecs \ | ||
| 51 | " | ||
| 52 | |||
| 53 | FILES_${PN}-tools-staticdev = " \ | ||
| 54 | ${libdir}/libQt5Bootstrap.a \ | ||
| 55 | " | ||
| 56 | |||
| 57 | FILES_${PN}-tools-dbg = " \ | ||
| 58 | ${libdir}/.debug \ | ||
| 59 | ${OE_QMAKE_PATH_BINS}/.debug \ | ||
| 60 | " | ||
| 61 | |||
| 62 | FILES_${PN}-tools = " \ | ||
| 63 | ${libdir}/lib*${SOLIBS} \ | ||
| 64 | ${OE_QMAKE_PATH_BINS}/* \ | ||
| 65 | ${SDKPATHNATIVE}/environment-setup.d \ | ||
| 66 | ${datadir}/cmake \ | ||
| 67 | " | ||
| 68 | |||
| 69 | # qttools binaries are placed in a subdir of bin in order to avoid | ||
| 70 | # collisions with qt4. This would trigger debian.bbclass to rename the | ||
| 71 | # package, since it doesn't detect binaries in subdirs. Explicitly | ||
| 72 | # disable package auto-renaming for the tools-package. | ||
| 73 | DEBIAN_NOAUTONAME_${PN}-tools = "1" | ||
| 74 | |||
| 75 | QT_CONFIG_FLAGS += " \ | ||
| 76 | -shared \ | ||
| 77 | -silent \ | ||
| 78 | -no-pch \ | ||
| 79 | -no-rpath \ | ||
| 80 | -pkg-config \ | ||
| 81 | ${EXTRA_OECONF} \ | ||
| 82 | " | ||
| 83 | |||
| 84 | # qtbase is exception, as these are used as install path for sysroots | ||
| 85 | OE_QMAKE_PATH_HOST_DATA = "${libdir}/${QT_DIR_NAME}" | ||
| 86 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" | ||
| 87 | |||
| 88 | do_generate_qt_config_file() { | ||
| 89 | cat > ${QT_CONF_PATH} <<EOF | ||
| 90 | [Paths] | ||
| 91 | Prefix = ${OE_QMAKE_PATH_PREFIX} | ||
| 92 | Headers = ${OE_QMAKE_PATH_HEADERS} | ||
| 93 | Libraries = ${OE_QMAKE_PATH_LIBS} | ||
| 94 | ArchData = ${OE_QMAKE_PATH_ARCHDATA} | ||
| 95 | Data = ${OE_QMAKE_PATH_DATA} | ||
| 96 | Binaries = ${OE_QMAKE_PATH_BINS} | ||
| 97 | LibraryExecutables = ${OE_QMAKE_PATH_LIBEXECS} | ||
| 98 | Plugins = ${OE_QMAKE_PATH_PLUGINS} | ||
| 99 | Imports = ${OE_QMAKE_PATH_IMPORTS} | ||
| 100 | Qml2Imports = ${OE_QMAKE_PATH_QML} | ||
| 101 | Translations = ${OE_QMAKE_PATH_TRANSLATIONS} | ||
| 102 | Documentation = ${OE_QMAKE_PATH_DOCS} | ||
| 103 | Settings = ${OE_QMAKE_PATH_SETTINGS} | ||
| 104 | Examples = ${OE_QMAKE_PATH_EXAMPLES} | ||
| 105 | Tests = ${OE_QMAKE_PATH_TESTS} | ||
| 106 | HostBinaries = ${OE_QMAKE_PATH_HOST_BINS} | ||
| 107 | HostData = ${OE_QMAKE_PATH_HOST_DATA} | ||
| 108 | HostLibraries = ${OE_QMAKE_PATH_HOST_LIBS} | ||
| 109 | HostSpec = ${OE_QMAKESPEC} | ||
| 110 | TartgetSpec = ${OE_XQMAKESPEC} | ||
| 111 | ExternalHostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} | ||
| 112 | Sysroot = | ||
| 113 | EOF | ||
| 114 | } | ||
| 115 | |||
| 116 | do_generate_qt_config_file_append() { | ||
| 117 | cat >> ${QT_CONF_PATH} <<EOF | ||
| 118 | |||
| 119 | [EffectivePaths] | ||
| 120 | Prefix=.. | ||
| 121 | EOF | ||
| 122 | } | ||
| 123 | |||
| 124 | # qtbase is exception, we need to use mkspecs from ${S} | ||
| 125 | QMAKE_MKSPEC_PATH = "${B}" | ||
| 126 | |||
| 127 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 128 | export OE_QMAKE_COMPILER | ||
| 129 | export OE_QMAKE_CC | ||
| 130 | export OE_QMAKE_CFLAGS | ||
| 131 | export OE_QMAKE_CXX | ||
| 132 | export OE_QMAKE_CXXFLAGS | ||
| 133 | export OE_QMAKE_LINK | ||
| 134 | export OE_QMAKE_LDFLAGS | ||
| 135 | export OE_QMAKE_AR | ||
| 136 | export OE_QMAKE_STRIP | ||
| 137 | |||
| 138 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location | ||
| 139 | OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake" | ||
| 140 | OE_QMAKE_QMAKE = "bin/qmake" | ||
| 141 | |||
| 142 | do_configure() { | ||
| 143 | # we need symlink in path relative to source, because | ||
| 144 | # EffectivePaths:Prefix is relative to qmake location | ||
| 145 | # Also, configure expects qmake-native to swap with real one | ||
| 146 | if [ ! -e ${B}/bin/qmake-native ]; then | ||
| 147 | mkdir ${B}/bin | ||
| 148 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake-native | ||
| 149 | fi | ||
| 150 | |||
| 151 | ${S}/configure -v \ | ||
| 152 | -opensource -confirm-license \ | ||
| 153 | -sysroot ${STAGING_DIR_NATIVE} \ | ||
| 154 | -no-gcc-sysroot \ | ||
| 155 | -system-zlib \ | ||
| 156 | -no-libjpeg \ | ||
| 157 | -no-libpng \ | ||
| 158 | -no-gif \ | ||
| 159 | -no-accessibility \ | ||
| 160 | -no-cups \ | ||
| 161 | -no-nis \ | ||
| 162 | -no-gui \ | ||
| 163 | -no-qml-debug \ | ||
| 164 | -no-sql-mysql \ | ||
| 165 | -no-sql-sqlite \ | ||
| 166 | -no-opengl \ | ||
| 167 | -no-openssl \ | ||
| 168 | -no-xcb \ | ||
| 169 | -verbose \ | ||
| 170 | -release \ | ||
| 171 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 172 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 173 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 174 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 175 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 176 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 177 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 178 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 179 | -libexecdir ${OE_QMAKE_PATH_LIBEXECS} \ | ||
| 180 | -plugindir ${OE_QMAKE_PATH_PLUGINS} \ | ||
| 181 | -importdir ${OE_QMAKE_PATH_IMPORTS} \ | ||
| 182 | -qmldir ${OE_QMAKE_PATH_QML} \ | ||
| 183 | -translationdir ${OE_QMAKE_PATH_TRANSLATIONS} \ | ||
| 184 | -testsdir ${OE_QMAKE_PATH_TESTS} \ | ||
| 185 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ | ||
| 186 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ | ||
| 187 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ | ||
| 188 | -no-glib \ | ||
| 189 | -no-iconv \ | ||
| 190 | -silent \ | ||
| 191 | -nomake examples \ | ||
| 192 | -nomake tests \ | ||
| 193 | -nomake libs \ | ||
| 194 | -no-compile-examples \ | ||
| 195 | -no-rpath \ | ||
| 196 | -platform ${OE_QMAKESPEC} \ | ||
| 197 | -xplatform linux-oe-g++ \ | ||
| 198 | ${QT_CONFIG_FLAGS} | ||
| 199 | |||
| 200 | bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 201 | } | ||
| 202 | |||
| 203 | # Set the EXTRA_QTLIB variable to e.g. Xml, in order to not remove libQt5Xml.so.* | ||
| 204 | EXTRA_QTLIB ?= "" | ||
| 205 | |||
| 206 | python __anonymous () { | ||
| 207 | templibs = "" | ||
| 208 | for e in d.getVar("EXTRA_QTLIB", True).split(): | ||
| 209 | templibs = "%s -not -name 'libQt5%s.so*' -and" % (templibs, e) | ||
| 210 | d.setVar("QTLIBSPRESERVE", templibs) | ||
| 211 | } | ||
| 212 | |||
| 213 | do_install() { | ||
| 214 | # Fix install paths for all | ||
| 215 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | ||
| 216 | |||
| 217 | oe_runmake install INSTALL_ROOT=${D} | ||
| 218 | |||
| 219 | # replace the native qmake installed above with nativesdk version | ||
| 220 | rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
| 221 | install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
| 222 | |||
| 223 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) | ||
| 224 | # e.g. qt3d, qtwayland | ||
| 225 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt | ||
| 226 | |||
| 227 | # remove things unused in nativesdk, we need the headers, Qt5Core | ||
| 228 | # and Qt5Bootstrap. | ||
| 229 | rm -rf ${D}${datadir} \ | ||
| 230 | ${D}/${OE_QMAKE_PATH_PLUGINS} \ | ||
| 231 | ${D}${libdir}/cmake \ | ||
| 232 | ${D}${libdir}/pkgconfig | ||
| 233 | find ${D}${libdir} -maxdepth 1 -name 'lib*' -and -not -type d -and \ | ||
| 234 | -not -name 'libQt5Core.so*' -and \ | ||
| 235 | ${QTLIBSPRESERVE} \ | ||
| 236 | -not -name 'libQt5Bootstrap.a' \ | ||
| 237 | -exec rm '{}' ';' | ||
| 238 | |||
| 239 | # Install CMake's toolchain configuration | ||
| 240 | mkdir -p ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/ | ||
| 241 | install -m 644 ${WORKDIR}/OEQt5Toolchain.cmake ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/ | ||
| 242 | } | ||
| 243 | |||
| 244 | do_generate_qt_environment_file() { | ||
| 245 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/ | ||
| 246 | script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh | ||
| 247 | |||
| 248 | echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script | ||
| 249 | echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script | ||
| 250 | echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script | ||
| 251 | echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script | ||
| 252 | echo 'export OE_QMAKE_CC=$CC' >> $script | ||
| 253 | echo 'export OE_QMAKE_CXX=$CXX' >> $script | ||
| 254 | echo 'export OE_QMAKE_LINK=$CXX' >> $script | ||
| 255 | echo 'export OE_QMAKE_AR=$AR' >> $script | ||
| 256 | echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script | ||
| 257 | echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script | ||
| 258 | echo 'export OE_QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS`' >> $script | ||
| 259 | echo 'export OE_QMAKE_MOC=${OE_QMAKE_PATH_HOST_BINS}/moc' >> $script | ||
| 260 | echo 'export OE_QMAKE_UIC=${OE_QMAKE_PATH_HOST_BINS}/uic' >> $script | ||
| 261 | echo 'export OE_QMAKE_RCC=${OE_QMAKE_PATH_HOST_BINS}/rcc' >> $script | ||
| 262 | echo 'export OE_QMAKE_QDBUSCPP2XML=${OE_QMAKE_PATH_HOST_BINS}/qdbuscpp2xml' >> $script | ||
| 263 | echo 'export OE_QMAKE_QDBUSXML2CPP=${OE_QMAKE_PATH_HOST_BINS}/qdbusxml2cpp' >> $script | ||
| 264 | echo 'export OE_QMAKE_QT_CONFIG=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script | ||
| 265 | echo 'export OE_QMAKE_PATH_HOST_BINS=${OE_QMAKE_PATH_HOST_BINS}' >> $script | ||
| 266 | echo 'export QMAKESPEC=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/linux-oe-g++' >> $script | ||
| 267 | |||
| 268 | # Use relocable sysroot | ||
| 269 | sed -i -e 's:${SDKPATHNATIVE}:$OECORE_NATIVE_SYSROOT:g' $script | ||
| 270 | } | ||
| 271 | |||
| 272 | addtask generate_qt_environment_file after do_install before do_package | ||
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index 1b566c21..65069280 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -1,10 +1,24 @@ | |||
| 1 | require qt5-git.inc | 1 | DESCRIPTION = "SDK version of Qt/[X11|Mac|Embedded]" |
| 2 | require ${PN}.inc | 2 | DEPENDS = "nativesdk-zlib nativesdk-dbus qtbase-native" |
| 3 | SECTION = "libs" | ||
| 4 | HOMEPAGE = "http://qt-project.org" | ||
| 3 | 5 | ||
| 4 | SRC_URI = "\ | 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" |
| 5 | ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ | 7 | LIC_FILES_CHKSUM = " \ |
| 8 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 9 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 10 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 11 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 6 | " | 12 | " |
| 7 | 13 | ||
| 14 | QT_MODULE = "qtbase" | ||
| 15 | |||
| 16 | require nativesdk-qt5.inc | ||
| 17 | require qt5-git.inc | ||
| 18 | |||
| 19 | # it's already included with newer oe-core, but include it here for dylan | ||
| 20 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | ||
| 21 | |||
| 8 | # common for qtbase-native, qtbase-nativesdk and qtbase | 22 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 9 | SRC_URI += "\ | 23 | SRC_URI += "\ |
| 10 | file://0001-Add-linux-oe-g-platform.patch \ | 24 | file://0001-Add-linux-oe-g-platform.patch \ |
| @@ -35,9 +49,235 @@ SRC_URI += " \ | |||
| 35 | file://OEQt5Toolchain.cmake \ | 49 | file://OEQt5Toolchain.cmake \ |
| 36 | " | 50 | " |
| 37 | 51 | ||
| 38 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" | 52 | PACKAGES = "${PN}-tools-dbg ${PN}-tools-dev ${PN}-tools-staticdev ${PN}-tools" |
| 53 | |||
| 54 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 55 | |||
| 56 | FILES_${PN}-tools-dev = " \ | ||
| 57 | ${includedir} \ | ||
| 58 | ${FILES_SOLIBSDEV} ${libdir}/*.la \ | ||
| 59 | ${OE_QMAKE_PATH_ARCHDATA}/mkspecs \ | ||
| 60 | " | ||
| 61 | |||
| 62 | FILES_${PN}-tools-staticdev = " \ | ||
| 63 | ${libdir}/libQt5Bootstrap.a \ | ||
| 64 | " | ||
| 65 | |||
| 66 | FILES_${PN}-tools-dbg = " \ | ||
| 67 | ${libdir}/.debug \ | ||
| 68 | ${OE_QMAKE_PATH_BINS}/.debug \ | ||
| 69 | " | ||
| 70 | |||
| 71 | FILES_${PN}-tools = " \ | ||
| 72 | ${libdir}/lib*${SOLIBS} \ | ||
| 73 | ${OE_QMAKE_PATH_BINS}/* \ | ||
| 74 | ${SDKPATHNATIVE}/environment-setup.d \ | ||
| 75 | ${datadir}/cmake \ | ||
| 76 | " | ||
| 77 | |||
| 78 | # qttools binaries are placed in a subdir of bin in order to avoid | ||
| 79 | # collisions with qt4. This would trigger debian.bbclass to rename the | ||
| 80 | # package, since it doesn't detect binaries in subdirs. Explicitly | ||
| 81 | # disable package auto-renaming for the tools-package. | ||
| 82 | DEBIAN_NOAUTONAME_${PN}-tools = "1" | ||
| 83 | |||
| 84 | QT_CONFIG_FLAGS += " \ | ||
| 85 | -shared \ | ||
| 86 | -silent \ | ||
| 87 | -no-pch \ | ||
| 88 | -no-rpath \ | ||
| 89 | -pkg-config \ | ||
| 90 | ${EXTRA_OECONF} \ | ||
| 91 | " | ||
| 92 | |||
| 93 | # qtbase is exception, as these are used as install path for sysroots | ||
| 94 | OE_QMAKE_PATH_HOST_DATA = "${libdir}/${QT_DIR_NAME}" | ||
| 95 | OE_QMAKE_PATH_HOST_LIBS = "${libdir}" | ||
| 96 | |||
| 97 | do_generate_qt_config_file() { | ||
| 98 | cat > ${QT_CONF_PATH} <<EOF | ||
| 99 | [Paths] | ||
| 100 | Prefix = ${OE_QMAKE_PATH_PREFIX} | ||
| 101 | Headers = ${OE_QMAKE_PATH_HEADERS} | ||
| 102 | Libraries = ${OE_QMAKE_PATH_LIBS} | ||
| 103 | ArchData = ${OE_QMAKE_PATH_ARCHDATA} | ||
| 104 | Data = ${OE_QMAKE_PATH_DATA} | ||
| 105 | Binaries = ${OE_QMAKE_PATH_BINS} | ||
| 106 | LibraryExecutables = ${OE_QMAKE_PATH_LIBEXECS} | ||
| 107 | Plugins = ${OE_QMAKE_PATH_PLUGINS} | ||
| 108 | Imports = ${OE_QMAKE_PATH_IMPORTS} | ||
| 109 | Qml2Imports = ${OE_QMAKE_PATH_QML} | ||
| 110 | Translations = ${OE_QMAKE_PATH_TRANSLATIONS} | ||
| 111 | Documentation = ${OE_QMAKE_PATH_DOCS} | ||
| 112 | Settings = ${OE_QMAKE_PATH_SETTINGS} | ||
| 113 | Examples = ${OE_QMAKE_PATH_EXAMPLES} | ||
| 114 | Tests = ${OE_QMAKE_PATH_TESTS} | ||
| 115 | HostBinaries = ${OE_QMAKE_PATH_HOST_BINS} | ||
| 116 | HostData = ${OE_QMAKE_PATH_HOST_DATA} | ||
| 117 | HostLibraries = ${OE_QMAKE_PATH_HOST_LIBS} | ||
| 118 | HostSpec = ${OE_QMAKESPEC} | ||
| 119 | TartgetSpec = ${OE_XQMAKESPEC} | ||
| 120 | ExternalHostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} | ||
| 121 | Sysroot = | ||
| 122 | EOF | ||
| 123 | } | ||
| 124 | |||
| 125 | do_generate_qt_config_file_append() { | ||
| 126 | cat >> ${QT_CONF_PATH} <<EOF | ||
| 39 | 127 | ||
| 40 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | 128 | [EffectivePaths] |
| 41 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | 129 | Prefix=.. |
| 42 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | 130 | EOF |
| 43 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | 131 | } |
| 132 | |||
| 133 | # qtbase is exception, we need to use mkspecs from ${S} | ||
| 134 | QMAKE_MKSPEC_PATH = "${B}" | ||
| 135 | |||
| 136 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 137 | export OE_QMAKE_COMPILER | ||
| 138 | export OE_QMAKE_CC | ||
| 139 | export OE_QMAKE_CFLAGS | ||
| 140 | export OE_QMAKE_CXX | ||
| 141 | export OE_QMAKE_CXXFLAGS | ||
| 142 | export OE_QMAKE_LINK | ||
| 143 | export OE_QMAKE_LDFLAGS | ||
| 144 | export OE_QMAKE_AR | ||
| 145 | export OE_QMAKE_STRIP | ||
| 146 | |||
| 147 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location | ||
| 148 | OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake" | ||
| 149 | OE_QMAKE_QMAKE = "bin/qmake" | ||
| 150 | |||
| 151 | do_configure() { | ||
| 152 | # we need symlink in path relative to source, because | ||
| 153 | # EffectivePaths:Prefix is relative to qmake location | ||
| 154 | # Also, configure expects qmake-native to swap with real one | ||
| 155 | if [ ! -e ${B}/bin/qmake-native ]; then | ||
| 156 | mkdir ${B}/bin | ||
| 157 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake-native | ||
| 158 | fi | ||
| 159 | |||
| 160 | ${S}/configure -v \ | ||
| 161 | -opensource -confirm-license \ | ||
| 162 | -sysroot ${STAGING_DIR_NATIVE} \ | ||
| 163 | -no-gcc-sysroot \ | ||
| 164 | -system-zlib \ | ||
| 165 | -no-libjpeg \ | ||
| 166 | -no-libpng \ | ||
| 167 | -no-gif \ | ||
| 168 | -no-accessibility \ | ||
| 169 | -no-cups \ | ||
| 170 | -no-nis \ | ||
| 171 | -no-gui \ | ||
| 172 | -no-qml-debug \ | ||
| 173 | -no-sql-mysql \ | ||
| 174 | -no-sql-sqlite \ | ||
| 175 | -no-opengl \ | ||
| 176 | -no-openssl \ | ||
| 177 | -no-xcb \ | ||
| 178 | -verbose \ | ||
| 179 | -release \ | ||
| 180 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 181 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 182 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 183 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 184 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 185 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 186 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 187 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 188 | -libexecdir ${OE_QMAKE_PATH_LIBEXECS} \ | ||
| 189 | -plugindir ${OE_QMAKE_PATH_PLUGINS} \ | ||
| 190 | -importdir ${OE_QMAKE_PATH_IMPORTS} \ | ||
| 191 | -qmldir ${OE_QMAKE_PATH_QML} \ | ||
| 192 | -translationdir ${OE_QMAKE_PATH_TRANSLATIONS} \ | ||
| 193 | -testsdir ${OE_QMAKE_PATH_TESTS} \ | ||
| 194 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ | ||
| 195 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ | ||
| 196 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ | ||
| 197 | -no-glib \ | ||
| 198 | -no-iconv \ | ||
| 199 | -silent \ | ||
| 200 | -nomake examples \ | ||
| 201 | -nomake tests \ | ||
| 202 | -nomake libs \ | ||
| 203 | -no-compile-examples \ | ||
| 204 | -no-rpath \ | ||
| 205 | -platform ${OE_QMAKESPEC} \ | ||
| 206 | -xplatform linux-oe-g++ \ | ||
| 207 | ${QT_CONFIG_FLAGS} | ||
| 208 | |||
| 209 | bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 210 | } | ||
| 211 | |||
| 212 | # Set the EXTRA_QTLIB variable to e.g. Xml, in order to not remove libQt5Xml.so.* | ||
| 213 | EXTRA_QTLIB ?= "" | ||
| 214 | |||
| 215 | python __anonymous () { | ||
| 216 | templibs = "" | ||
| 217 | for e in d.getVar("EXTRA_QTLIB", True).split(): | ||
| 218 | templibs = "%s -not -name 'libQt5%s.so*' -and" % (templibs, e) | ||
| 219 | d.setVar("QTLIBSPRESERVE", templibs) | ||
| 220 | } | ||
| 221 | |||
| 222 | do_install() { | ||
| 223 | # Fix install paths for all | ||
| 224 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | ||
| 225 | |||
| 226 | oe_runmake install INSTALL_ROOT=${D} | ||
| 227 | |||
| 228 | # replace the native qmake installed above with nativesdk version | ||
| 229 | rm -rf ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
| 230 | install -m 755 ${B}/bin/qmake-real ${D}${OE_QMAKE_PATH_HOST_BINS}/qmake | ||
| 231 | |||
| 232 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) | ||
| 233 | # e.g. qt3d, qtwayland | ||
| 234 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt | ||
| 235 | |||
| 236 | # remove things unused in nativesdk, we need the headers, Qt5Core | ||
| 237 | # and Qt5Bootstrap. | ||
| 238 | rm -rf ${D}${datadir} \ | ||
| 239 | ${D}/${OE_QMAKE_PATH_PLUGINS} \ | ||
| 240 | ${D}${libdir}/cmake \ | ||
| 241 | ${D}${libdir}/pkgconfig | ||
| 242 | find ${D}${libdir} -maxdepth 1 -name 'lib*' -and -not -type d -and \ | ||
| 243 | -not -name 'libQt5Core.so*' -and \ | ||
| 244 | ${QTLIBSPRESERVE} \ | ||
| 245 | -not -name 'libQt5Bootstrap.a' \ | ||
| 246 | -exec rm '{}' ';' | ||
| 247 | |||
| 248 | # Install CMake's toolchain configuration | ||
| 249 | mkdir -p ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/ | ||
| 250 | install -m 644 ${WORKDIR}/OEQt5Toolchain.cmake ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/ | ||
| 251 | } | ||
| 252 | |||
| 253 | do_generate_qt_environment_file() { | ||
| 254 | mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/ | ||
| 255 | script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh | ||
| 256 | |||
| 257 | echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script | ||
| 258 | echo 'export OE_QMAKE_CFLAGS="$CFLAGS"' >> $script | ||
| 259 | echo 'export OE_QMAKE_CXXFLAGS="$CXXFLAGS"' >> $script | ||
| 260 | echo 'export OE_QMAKE_LDFLAGS="$LDFLAGS"' >> $script | ||
| 261 | echo 'export OE_QMAKE_CC=$CC' >> $script | ||
| 262 | echo 'export OE_QMAKE_CXX=$CXX' >> $script | ||
| 263 | echo 'export OE_QMAKE_LINK=$CXX' >> $script | ||
| 264 | echo 'export OE_QMAKE_AR=$AR' >> $script | ||
| 265 | echo 'export QT_CONF_PATH=${OE_QMAKE_PATH_HOST_BINS}/qt.conf' >> $script | ||
| 266 | echo 'export OE_QMAKE_LIBDIR_QT=`qmake -query QT_INSTALL_LIBS`' >> $script | ||
| 267 | echo 'export OE_QMAKE_INCDIR_QT=`qmake -query QT_INSTALL_HEADERS`' >> $script | ||
| 268 | echo 'export OE_QMAKE_MOC=${OE_QMAKE_PATH_HOST_BINS}/moc' >> $script | ||
| 269 | echo 'export OE_QMAKE_UIC=${OE_QMAKE_PATH_HOST_BINS}/uic' >> $script | ||
| 270 | echo 'export OE_QMAKE_RCC=${OE_QMAKE_PATH_HOST_BINS}/rcc' >> $script | ||
| 271 | echo 'export OE_QMAKE_QDBUSCPP2XML=${OE_QMAKE_PATH_HOST_BINS}/qdbuscpp2xml' >> $script | ||
| 272 | echo 'export OE_QMAKE_QDBUSXML2CPP=${OE_QMAKE_PATH_HOST_BINS}/qdbusxml2cpp' >> $script | ||
| 273 | echo 'export OE_QMAKE_QT_CONFIG=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script | ||
| 274 | echo 'export OE_QMAKE_PATH_HOST_BINS=${OE_QMAKE_PATH_HOST_BINS}' >> $script | ||
| 275 | echo 'export QMAKESPEC=`qmake -query QT_INSTALL_LIBS`/${QT_DIR_NAME}/mkspecs/linux-oe-g++' >> $script | ||
| 276 | |||
| 277 | # Use relocable sysroot | ||
| 278 | sed -i -e 's:${SDKPATHNATIVE}:$OECORE_NATIVE_SYSROOT:g' $script | ||
| 279 | } | ||
| 280 | |||
| 281 | addtask generate_qt_environment_file after do_install before do_package | ||
| 282 | |||
| 283 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" | ||
diff --git a/recipes-qt/qt5/nativesdk-qttools.inc b/recipes-qt/qt5/nativesdk-qttools.inc deleted file mode 100644 index c67f9cdf..00000000 --- a/recipes-qt/qt5/nativesdk-qttools.inc +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | DEPENDS = "nativesdk-qtbase qtbase-native" | ||
| 2 | |||
| 3 | QT_MODULE = "qttools" | ||
| 4 | |||
| 5 | require nativesdk-qt5.inc | ||
| 6 | |||
| 7 | # it's already included with newer oe-core, but include it here for dylan | ||
| 8 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qttools:" | ||
| 9 | |||
| 10 | SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch" | ||
| 11 | |||
| 12 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 13 | |||
| 14 | FILES_${PN}-dbg = " \ | ||
| 15 | ${OE_QMAKE_PATH_BINS}/.debug \ | ||
| 16 | " | ||
| 17 | |||
| 18 | FILES_${PN} = " \ | ||
| 19 | ${OE_QMAKE_PATH_BINS}/* \ | ||
| 20 | " | ||
| 21 | |||
| 22 | do_configure() { | ||
| 23 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install() { | ||
| 27 | # Fix install paths for all | ||
| 28 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g" | ||
| 29 | |||
| 30 | oe_runmake install INSTALL_ROOT=${D} | ||
| 31 | |||
| 32 | # remove things unused in nativesdk | ||
| 33 | rm -rf ${D}${libdir} | ||
| 34 | } | ||
diff --git a/recipes-qt/qt5/nativesdk-qttools_git.bb b/recipes-qt/qt5/nativesdk-qttools_git.bb index bbaafc52..7380a4e1 100644 --- a/recipes-qt/qt5/nativesdk-qttools_git.bb +++ b/recipes-qt/qt5/nativesdk-qttools_git.bb | |||
| @@ -1,9 +1,45 @@ | |||
| 1 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 2 | LIC_FILES_CHKSUM = " \ | ||
| 3 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 4 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 5 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 6 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 7 | " | ||
| 8 | |||
| 9 | QT_MODULE = "qttools" | ||
| 10 | |||
| 11 | DEPENDS = "nativesdk-qtbase qtbase-native" | ||
| 12 | |||
| 13 | require nativesdk-qt5.inc | ||
| 1 | require qt5-git.inc | 14 | require qt5-git.inc |
| 2 | require ${PN}.inc | ||
| 3 | 15 | ||
| 4 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | 16 | # it's already included with newer oe-core, but include it here for dylan |
| 17 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qttools:" | ||
| 18 | |||
| 19 | SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch" | ||
| 20 | |||
| 21 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 22 | |||
| 23 | FILES_${PN}-dbg = " \ | ||
| 24 | ${OE_QMAKE_PATH_BINS}/.debug \ | ||
| 25 | " | ||
| 5 | 26 | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | 27 | FILES_${PN} = " \ |
| 7 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | 28 | ${OE_QMAKE_PATH_BINS}/* \ |
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | 29 | " |
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | 30 | |
| 31 | do_configure() { | ||
| 32 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly | ||
| 33 | } | ||
| 34 | |||
| 35 | do_install() { | ||
| 36 | # Fix install paths for all | ||
| 37 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g" | ||
| 38 | |||
| 39 | oe_runmake install INSTALL_ROOT=${D} | ||
| 40 | |||
| 41 | # remove things unused in nativesdk | ||
| 42 | rm -rf ${D}${libdir} | ||
| 43 | } | ||
| 44 | |||
| 45 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | ||
diff --git a/recipes-qt/qt5/qt3d.inc b/recipes-qt/qt5/qt3d.inc deleted file mode 100644 index 74c4cada..00000000 --- a/recipes-qt/qt5/qt3d.inc +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtdeclarative" | ||
| 4 | |||
| 5 | LICENSE = "GFDL-1.3 & LGPL-2.1 & DIGIA-TPLA-2.4 | GPL-3.0" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 7 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 8 | file://LICENSE.PREVIEW.COMMERCIAL;md5=9d94dadfab8b246782ffea02082ee13a \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 11 | " | ||
| 12 | |||
| 13 | FILES_${PN}-qmlplugins += " \ | ||
| 14 | ${OE_QMAKE_PATH_QML}/*/*/*.bez \ | ||
| 15 | ${OE_QMAKE_PATH_QML}/*/*/*.obj \ | ||
| 16 | " | ||
diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb index c6f970e6..3bebcb59 100644 --- a/recipes-qt/qt5/qt3d_git.bb +++ b/recipes-qt/qt5/qt3d_git.bb | |||
| @@ -1,5 +1,21 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & LGPL-2.1 & DIGIA-TPLA-2.4 | GPL-3.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 7 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 8 | file://LICENSE.PREVIEW.COMMERCIAL;md5=9d94dadfab8b246782ffea02082ee13a \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS = "nativesdk-qtbase qtbase-native qtdeclarative" | ||
| 14 | |||
| 15 | FILES_${PN}-qmlplugins += " \ | ||
| 16 | ${OE_QMAKE_PATH_QML}/*/*/*.bez \ | ||
| 17 | ${OE_QMAKE_PATH_QML}/*/*/*.obj \ | ||
| 18 | " | ||
| 3 | 19 | ||
| 4 | QT_MODULE_BRANCH = "dev" | 20 | QT_MODULE_BRANCH = "dev" |
| 5 | 21 | ||
diff --git a/recipes-qt/qt5/qt5-git.inc b/recipes-qt/qt5/qt5-git.inc index f25de9bf..2e77d459 100644 --- a/recipes-qt/qt5/qt5-git.inc +++ b/recipes-qt/qt5/qt5-git.inc | |||
| @@ -4,18 +4,10 @@ | |||
| 4 | QT_MODULE_BRANCH ?= "5.4" | 4 | QT_MODULE_BRANCH ?= "5.4" |
| 5 | 5 | ||
| 6 | # each module needs to define valid SRCREV | 6 | # each module needs to define valid SRCREV |
| 7 | SRC_URI += " \ | 7 | SRC_URI = " \ |
| 8 | ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ | 8 | ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ |
| 9 | " | 9 | " |
| 10 | 10 | ||
| 11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
| 12 | 12 | ||
| 13 | PV = "5.4.1+git${SRCPV}" | 13 | PV = "5.4.1+git${SRCPV}" |
| 14 | |||
| 15 | DEFAULT_PREFERENCE = "-1" | ||
| 16 | |||
| 17 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 18 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 19 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 20 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 21 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index 0d7269c5..2fc5367b 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
| @@ -32,7 +32,6 @@ python __anonymous() { | |||
| 32 | d.setVar("PACKAGE_ARCH", tarch) | 32 | d.setVar("PACKAGE_ARCH", tarch) |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | |||
| 36 | # Regenerate header files when they are included in source tarball | 35 | # Regenerate header files when they are included in source tarball |
| 37 | # Otherwise cmake files don't set PRIVATE_HEADERS correctly | 36 | # Otherwise cmake files don't set PRIVATE_HEADERS correctly |
| 38 | do_configure_prepend() { | 37 | do_configure_prepend() { |
diff --git a/recipes-qt/qt5/qtbase-native.inc b/recipes-qt/qt5/qtbase-native.inc deleted file mode 100644 index 4af0c0a3..00000000 --- a/recipes-qt/qt5/qtbase-native.inc +++ /dev/null | |||
| @@ -1,109 +0,0 @@ | |||
| 1 | DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]" | ||
| 2 | DEPENDS = "zlib-native dbus-native" | ||
| 3 | SECTION = "libs" | ||
| 4 | HOMEPAGE = "http://qt-project.org" | ||
| 5 | |||
| 6 | QT_MODULE = "qtbase" | ||
| 7 | |||
| 8 | require qt5-native.inc | ||
| 9 | |||
| 10 | # common for qtbase-native, qtbase-nativesdk and qtbase | ||
| 11 | SRC_URI += "\ | ||
| 12 | file://0001-Add-linux-oe-g-platform.patch \ | ||
| 13 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 14 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 15 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | ||
| 16 | file://0005-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch \ | ||
| 17 | file://0006-qeglplatformintegration-Undefine-CursorShape-from-X..patch \ | ||
| 18 | file://0007-configure-bump-path-length-from-256-to-512-character.patch \ | ||
| 19 | file://0008-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch \ | ||
| 20 | file://0009-QOpenGLPaintDevice-sub-area-support.patch \ | ||
| 21 | file://0010-Make-Qt5GuiConfigExtras.cmake-find-gl-es-include-dir.patch \ | ||
| 22 | " | ||
| 23 | |||
| 24 | # common for qtbase-native and nativesdk-qtbase | ||
| 25 | SRC_URI += " \ | ||
| 26 | file://0011-Always-build-uic.patch \ | ||
| 27 | file://0012-Add-external-hostbindir-option-for-native-sdk.patch \ | ||
| 28 | " | ||
| 29 | |||
| 30 | CLEANBROKEN = "1" | ||
| 31 | |||
| 32 | QT_CONF_PATH = "${B}/qt.conf" | ||
| 33 | |||
| 34 | do_generate_qt_config_file() { | ||
| 35 | : | ||
| 36 | } | ||
| 37 | |||
| 38 | EXTRA_OECONF = " \ | ||
| 39 | -prefix ${prefix} \ | ||
| 40 | -sysroot ${STAGING_DIR_NATIVE} \ | ||
| 41 | -no-gcc-sysroot \ | ||
| 42 | -system-zlib \ | ||
| 43 | -no-libjpeg \ | ||
| 44 | -no-libpng \ | ||
| 45 | -no-gif \ | ||
| 46 | -no-accessibility \ | ||
| 47 | -no-cups \ | ||
| 48 | -no-nis \ | ||
| 49 | -no-gui \ | ||
| 50 | -no-qml-debug \ | ||
| 51 | -no-sql-mysql \ | ||
| 52 | -no-sql-sqlite \ | ||
| 53 | -no-opengl \ | ||
| 54 | -no-openssl \ | ||
| 55 | -no-xcb \ | ||
| 56 | -no-icu \ | ||
| 57 | -verbose \ | ||
| 58 | -release \ | ||
| 59 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 60 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 61 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 62 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 63 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 64 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 65 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 66 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 67 | -no-glib \ | ||
| 68 | -no-iconv \ | ||
| 69 | -silent \ | ||
| 70 | -nomake examples \ | ||
| 71 | -nomake tests \ | ||
| 72 | -no-rpath \ | ||
| 73 | -platform linux-oe-g++ \ | ||
| 74 | " | ||
| 75 | |||
| 76 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 77 | export OE_QMAKE_COMPILER | ||
| 78 | export OE_QMAKE_CC | ||
| 79 | export OE_QMAKE_CFLAGS | ||
| 80 | export OE_QMAKE_CXX | ||
| 81 | export OE_QMAKE_CXXFLAGS | ||
| 82 | export OE_QMAKE_LINK | ||
| 83 | export OE_QMAKE_LDFLAGS | ||
| 84 | export OE_QMAKE_AR | ||
| 85 | export OE_QMAKE_STRIP | ||
| 86 | |||
| 87 | do_configure_prepend() { | ||
| 88 | MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -opensource -confirm-license ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 89 | bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 90 | } | ||
| 91 | |||
| 92 | do_install() { | ||
| 93 | # Fix install paths for all | ||
| 94 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | ||
| 95 | |||
| 96 | oe_runmake install INSTALL_ROOT=${D} | ||
| 97 | |||
| 98 | if [ -d ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} ] ; then | ||
| 99 | echo "Some files are installed in wrong directory ${D}${STAGING_DIR_NATIVE}" | ||
| 100 | cp -ra ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}/* ${D}${STAGING_DIR_NATIVE} | ||
| 101 | rm -rf ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} | ||
| 102 | # remove empty dirs | ||
| 103 | TMP=`dirname ${D}/${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}` | ||
| 104 | while test ${TMP} != ${D}${STAGING_DIR_NATIVE}; do | ||
| 105 | rmdir ${TMP} | ||
| 106 | TMP=`dirname ${TMP}`; | ||
| 107 | done | ||
| 108 | fi | ||
| 109 | } | ||
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index 8ba9170c..8163bd23 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -1,10 +1,20 @@ | |||
| 1 | require qt5-git.inc | 1 | DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]" |
| 2 | require ${PN}.inc | 2 | DEPENDS = "zlib-native dbus-native" |
| 3 | 3 | SECTION = "libs" | |
| 4 | SRC_URI = "\ | 4 | HOMEPAGE = "http://qt-project.org" |
| 5 | ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ | 5 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" |
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 8 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 6 | " | 11 | " |
| 7 | 12 | ||
| 13 | QT_MODULE = "qtbase" | ||
| 14 | |||
| 15 | require qt5-native.inc | ||
| 16 | require qt5-git.inc | ||
| 17 | |||
| 8 | # common for qtbase-native, qtbase-nativesdk and qtbase | 18 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 9 | SRC_URI += "\ | 19 | SRC_URI += "\ |
| 10 | file://0001-Add-linux-oe-g-platform.patch \ | 20 | file://0001-Add-linux-oe-g-platform.patch \ |
| @@ -25,15 +35,90 @@ SRC_URI += " \ | |||
| 25 | file://0012-Add-external-hostbindir-option-for-native-sdk.patch \ | 35 | file://0012-Add-external-hostbindir-option-for-native-sdk.patch \ |
| 26 | " | 36 | " |
| 27 | 37 | ||
| 28 | do_install_append() { | 38 | |
| 39 | CLEANBROKEN = "1" | ||
| 40 | |||
| 41 | QT_CONF_PATH = "${B}/qt.conf" | ||
| 42 | |||
| 43 | do_generate_qt_config_file() { | ||
| 44 | : | ||
| 45 | } | ||
| 46 | |||
| 47 | EXTRA_OECONF = " \ | ||
| 48 | -prefix ${prefix} \ | ||
| 49 | -sysroot ${STAGING_DIR_NATIVE} \ | ||
| 50 | -no-gcc-sysroot \ | ||
| 51 | -system-zlib \ | ||
| 52 | -no-libjpeg \ | ||
| 53 | -no-libpng \ | ||
| 54 | -no-gif \ | ||
| 55 | -no-accessibility \ | ||
| 56 | -no-cups \ | ||
| 57 | -no-nis \ | ||
| 58 | -no-gui \ | ||
| 59 | -no-qml-debug \ | ||
| 60 | -no-sql-mysql \ | ||
| 61 | -no-sql-sqlite \ | ||
| 62 | -no-opengl \ | ||
| 63 | -no-openssl \ | ||
| 64 | -no-xcb \ | ||
| 65 | -no-icu \ | ||
| 66 | -verbose \ | ||
| 67 | -release \ | ||
| 68 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 69 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 70 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 71 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 72 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 73 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 74 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 75 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 76 | -no-glib \ | ||
| 77 | -no-iconv \ | ||
| 78 | -silent \ | ||
| 79 | -nomake examples \ | ||
| 80 | -nomake tests \ | ||
| 81 | -no-rpath \ | ||
| 82 | -platform linux-oe-g++ \ | ||
| 83 | " | ||
| 84 | |||
| 85 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 86 | export OE_QMAKE_COMPILER | ||
| 87 | export OE_QMAKE_CC | ||
| 88 | export OE_QMAKE_CFLAGS | ||
| 89 | export OE_QMAKE_CXX | ||
| 90 | export OE_QMAKE_CXXFLAGS | ||
| 91 | export OE_QMAKE_LINK | ||
| 92 | export OE_QMAKE_LDFLAGS | ||
| 93 | export OE_QMAKE_AR | ||
| 94 | export OE_QMAKE_STRIP | ||
| 95 | |||
| 96 | do_configure_prepend() { | ||
| 97 | MAKEFLAGS="${PARALLEL_MAKE}" ${S}/configure -opensource -confirm-license ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 98 | bin/qmake ${OE_QMAKE_DEBUG_OUTPUT} ${S} -o Makefile || die "Configuring qt with qmake failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
| 99 | } | ||
| 100 | |||
| 101 | do_install() { | ||
| 102 | # Fix install paths for all | ||
| 103 | find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g" | ||
| 104 | |||
| 105 | oe_runmake install INSTALL_ROOT=${D} | ||
| 106 | |||
| 107 | if [ -d ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} ] ; then | ||
| 108 | echo "Some files are installed in wrong directory ${D}${STAGING_DIR_NATIVE}" | ||
| 109 | cp -ra ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}/* ${D}${STAGING_DIR_NATIVE} | ||
| 110 | rm -rf ${D}${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE} | ||
| 111 | # remove empty dirs | ||
| 112 | TMP=`dirname ${D}/${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE}` | ||
| 113 | while test ${TMP} != ${D}${STAGING_DIR_NATIVE}; do | ||
| 114 | rmdir ${TMP} | ||
| 115 | TMP=`dirname ${TMP}`; | ||
| 116 | done | ||
| 117 | fi | ||
| 118 | |||
| 29 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) | 119 | # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt) |
| 30 | # e.g. qt3d, qtwayland | 120 | # e.g. qt3d, qtwayland |
| 31 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt | 121 | ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt |
| 32 | } | 122 | } |
| 33 | 123 | ||
| 34 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" | 124 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" |
| 35 | |||
| 36 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 37 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 38 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 39 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc deleted file mode 100644 index d2654ef6..00000000 --- a/recipes-qt/qt5/qtbase.inc +++ /dev/null | |||
| @@ -1,261 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # common for qtbase-native, qtbase-nativesdk and qtbase | ||
| 4 | SRC_URI += "\ | ||
| 5 | file://0001-Add-linux-oe-g-platform.patch \ | ||
| 6 | file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
| 7 | file://0003-Add-external-hostbindir-option.patch \ | ||
| 8 | file://0004-qt_module-Fix-pkgconfig-and-libtool-replacements.patch \ | ||
| 9 | file://0005-Revert-eglfs-Print-the-chosen-config-in-debug-mode.patch \ | ||
| 10 | file://0006-qeglplatformintegration-Undefine-CursorShape-from-X..patch \ | ||
| 11 | file://0007-configure-bump-path-length-from-256-to-512-character.patch \ | ||
| 12 | file://0008-eglfs-fix-egl-error-for-platforms-only-supporting-on.patch \ | ||
| 13 | file://0009-QOpenGLPaintDevice-sub-area-support.patch \ | ||
| 14 | file://0010-Make-Qt5GuiConfigExtras.cmake-find-gl-es-include-dir.patch \ | ||
| 15 | " | ||
| 16 | |||
| 17 | # specific for qtbase | ||
| 18 | SRC_URI += "\ | ||
| 19 | file://0011-qmake-don-t-build-it-in-configure-but-allow-to-build.patch \ | ||
| 20 | file://0012-Set-paths-for-target-properly.patch \ | ||
| 21 | " | ||
| 22 | |||
| 23 | DEPENDS += "qtbase-native" | ||
| 24 | |||
| 25 | # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp | ||
| 26 | |||
| 27 | # for syncqt | ||
| 28 | RDEPENDS_${PN}-tools += "perl" | ||
| 29 | |||
| 30 | # separate some parts of PACKAGECONFIG which are often changed | ||
| 31 | # be aware that you need to add icu to build qtwebkit, default | ||
| 32 | # PACKAGECONFIG is kept rather minimal for people who don't need | ||
| 33 | # stuff like webkit (and it's easier to add options than remove) | ||
| 34 | |||
| 35 | PACKAGECONFIG_GL ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" | ||
| 36 | PACKAGECONFIG_FB ?= "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" | ||
| 37 | PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle xkb', '', d)}" | ||
| 38 | PACKAGECONFIG_FONTS ?= "" | ||
| 39 | PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib" | ||
| 40 | PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 41 | PACKAGECONFIG_DISTRO ?= "" | ||
| 42 | # Either release or debug, can be overridden in bbappends | ||
| 43 | PACKAGECONFIG_RELEASE ?= "release" | ||
| 44 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency | ||
| 45 | # PACKAGECONFIG_OPENSSL ?= "openssl" | ||
| 46 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs" | ||
| 47 | |||
| 48 | PACKAGECONFIG ?= " \ | ||
| 49 | ${PACKAGECONFIG_RELEASE} \ | ||
| 50 | ${PACKAGECONFIG_DEFAULT} \ | ||
| 51 | ${PACKAGECONFIG_OPENSSL} \ | ||
| 52 | ${PACKAGECONFIG_GL} \ | ||
| 53 | ${PACKAGECONFIG_FB} \ | ||
| 54 | ${PACKAGECONFIG_X11} \ | ||
| 55 | ${PACKAGECONFIG_FONTS} \ | ||
| 56 | ${PACKAGECONFIG_SYSTEM} \ | ||
| 57 | ${PACKAGECONFIG_MULTIMEDIA} \ | ||
| 58 | ${PACKAGECONFIG_DISTRO} \ | ||
| 59 | " | ||
| 60 | |||
| 61 | PACKAGECONFIG[release] = "-release,-debug" | ||
| 62 | PACKAGECONFIG[developer] = "-developer-build" | ||
| 63 | PACKAGECONFIG[sm] = "-sm,-no-sm" | ||
| 64 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" | ||
| 65 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" | ||
| 66 | PACKAGECONFIG[tools] = "-make tools,-nomake tools" | ||
| 67 | # only for completeness, configure will add libs even if you try to explicitly remove it | ||
| 68 | PACKAGECONFIG[libs] = "-make libs,-nomake libs" | ||
| 69 | # accessibility is required to compile qtquickcontrols | ||
| 70 | PACKAGECONFIG[accessibility] = "-accessibility,-no-accessibility" | ||
| 71 | PACKAGECONFIG[glib] = "-glib,-no-glib,glib-2.0" | ||
| 72 | # use either system freetype or bundled freetype, if you disable freetype completely | ||
| 73 | # fontdatabases/basic/qbasicfontdatabase.cpp will fail to build and system freetype | ||
| 74 | # works only together with fontconfig | ||
| 75 | PACKAGECONFIG[freetype] = "-system-freetype,-freetype,freetype" | ||
| 76 | PACKAGECONFIG[jpeg] = "-system-libjpeg,-no-libjpeg,jpeg" | ||
| 77 | PACKAGECONFIG[libpng] = "-system-libpng,-no-libpng,libpng" | ||
| 78 | PACKAGECONFIG[zlib] = "-system-zlib,-qt-zlib,zlib" | ||
| 79 | PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre" | ||
| 80 | PACKAGECONFIG[gl] = "-opengl desktop -no-eglfs,,virtual/libgl" | ||
| 81 | PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl" | ||
| 82 | PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib" | ||
| 83 | PACKAGECONFIG[cups] = "-cups,-no-cups,cups" | ||
| 84 | PACKAGECONFIG[dbus] = "-dbus,-no-dbus,dbus" | ||
| 85 | PACKAGECONFIG[xcb] = "-xcb -xcb-xlib -system-xcb,-no-xcb,libxcb xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil" | ||
| 86 | PACKAGECONFIG[sql-ibase] = "-sql-ibase,-no-sql-ibase" | ||
| 87 | PACKAGECONFIG[sql-mysql] = "-sql-mysql,-no-sql-mysql,mysql5" | ||
| 88 | PACKAGECONFIG[sql-psql] = "-sql-psql,-no-sql-psql,postgresql" | ||
| 89 | PACKAGECONFIG[sql-odbc] = "-sql-odbc,-no-sql-odbc" | ||
| 90 | PACKAGECONFIG[sql-oci] = "-sql-oci,-no-sql-oci" | ||
| 91 | PACKAGECONFIG[sql-tds] = "-sql-tds,-no-sql-tds" | ||
| 92 | PACKAGECONFIG[sql-db2] = "-sql-db2,-no-sql-db2" | ||
| 93 | PACKAGECONFIG[sql-sqlite2] = "-sql-sqlite2,-no-sql-sqlite2,sqlite" | ||
| 94 | PACKAGECONFIG[sql-sqlite] = "-sql-sqlite,-no-sql-sqlite,sqlite3" | ||
| 95 | PACKAGECONFIG[xcursor] = "-xcursor,-no-xcursor,libxcursor" | ||
| 96 | PACKAGECONFIG[xinerama] = "-xinerama,-no-xinerama,libxinerama" | ||
| 97 | PACKAGECONFIG[xinput] = "-xinput,-no-xinput" | ||
| 98 | PACKAGECONFIG[xinput2] = "-xinput2,-no-xinput2,libxi" | ||
| 99 | PACKAGECONFIG[xfixes] = "-xfixes,-no-xfixes,libxfixes" | ||
| 100 | PACKAGECONFIG[xrandr] = "-xrandr,-no-xrandr,libxrandr" | ||
| 101 | PACKAGECONFIG[xrender] = "-xrender,-no-xrender,libxrender" | ||
| 102 | PACKAGECONFIG[xshape] = "-xshape,-no-xshape" | ||
| 103 | PACKAGECONFIG[xsync] = "-xsync,-no-xsync" | ||
| 104 | PACKAGECONFIG[xvideo] = "-xvideo,-no-xvideo" | ||
| 105 | PACKAGECONFIG[openvg] = "-openvg,-no-openvg" | ||
| 106 | PACKAGECONFIG[iconv] = "-iconv,-no-iconv,virtual/libiconv" | ||
| 107 | PACKAGECONFIG[xkb] = "-xkb,-no-xkb -no-xkbcommon,libxkbcommon" | ||
| 108 | PACKAGECONFIG[evdev] = "-evdev,-no-evdev" | ||
| 109 | PACKAGECONFIG[mtdev] = "-mtdev,-no-mtdev,mtdev" | ||
| 110 | # depends on glib | ||
| 111 | PACKAGECONFIG[fontconfig] = "-fontconfig,-no-fontconfig,fontconfig" | ||
| 112 | PACKAGECONFIG[gtkstyle] = "-gtkstyle,-no-gtkstyle,gtk+" | ||
| 113 | PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb" | ||
| 114 | PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb" | ||
| 115 | PACKAGECONFIG[mitshm] = "-mitshm,-no-mitshm,mitshm" | ||
| 116 | PACKAGECONFIG[kms] = "-kms,-no-kms,virtual/mesa virtual/egl" | ||
| 117 | # needed for qtwebkit | ||
| 118 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" | ||
| 119 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" | ||
| 120 | # use -openssl-linked here to ensure that RDEPENDS for libcrypto and libssl are detected | ||
| 121 | PACKAGECONFIG[openssl] = "-openssl-linked,-no-openssl,openssl" | ||
| 122 | PACKAGECONFIG[alsa] = "-alsa,-no-alsa,alsa-lib" | ||
| 123 | PACKAGECONFIG[pulseaudio] = "-pulseaudio,-no-pulseaudio,pulseaudio" | ||
| 124 | PACKAGECONFIG[nis] = "-nis,-no-nis" | ||
| 125 | PACKAGECONFIG[widgets] = "-widgets,-no-widgets" | ||
| 126 | |||
| 127 | QT_CONFIG_FLAGS += " \ | ||
| 128 | -shared \ | ||
| 129 | -silent \ | ||
| 130 | -no-pch \ | ||
| 131 | -no-rpath \ | ||
| 132 | -pkg-config \ | ||
| 133 | ${EXTRA_OECONF} \ | ||
| 134 | " | ||
| 135 | |||
| 136 | do_generate_qt_config_file_append() { | ||
| 137 | cat >> ${QT_CONF_PATH} <<EOF | ||
| 138 | |||
| 139 | [EffectivePaths] | ||
| 140 | Prefix=.. | ||
| 141 | EOF | ||
| 142 | } | ||
| 143 | |||
| 144 | # qtbase is exception, we need to use mkspecs from ${S} | ||
| 145 | QMAKE_MKSPEC_PATH = "${B}" | ||
| 146 | |||
| 147 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location | ||
| 148 | OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake" | ||
| 149 | OE_QMAKE_QMAKE = "bin/qmake" | ||
| 150 | |||
| 151 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 152 | export OE_QMAKE_COMPILER | ||
| 153 | export OE_QMAKE_CC | ||
| 154 | export OE_QMAKE_CFLAGS | ||
| 155 | export OE_QMAKE_CXX | ||
| 156 | export OE_QMAKE_CXXFLAGS | ||
| 157 | export OE_QMAKE_LINK | ||
| 158 | export OE_QMAKE_LDFLAGS | ||
| 159 | export OE_QMAKE_AR | ||
| 160 | export OE_QMAKE_STRIP | ||
| 161 | |||
| 162 | do_configure() { | ||
| 163 | # we need symlink in path relative to source, because | ||
| 164 | # EffectivePaths:Prefix is relative to qmake location | ||
| 165 | if [ ! -e ${B}/bin/qmake ]; then | ||
| 166 | mkdir ${B}/bin | ||
| 167 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake | ||
| 168 | fi | ||
| 169 | |||
| 170 | ${S}/configure -v \ | ||
| 171 | -opensource -confirm-license \ | ||
| 172 | -sysroot ${STAGING_DIR_TARGET} \ | ||
| 173 | -no-gcc-sysroot \ | ||
| 174 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 175 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 176 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 177 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 178 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 179 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 180 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 181 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 182 | -libexecdir ${OE_QMAKE_PATH_LIBEXECS} \ | ||
| 183 | -plugindir ${OE_QMAKE_PATH_PLUGINS} \ | ||
| 184 | -importdir ${OE_QMAKE_PATH_IMPORTS} \ | ||
| 185 | -qmldir ${OE_QMAKE_PATH_QML} \ | ||
| 186 | -translationdir ${OE_QMAKE_PATH_TRANSLATIONS} \ | ||
| 187 | -testsdir ${OE_QMAKE_PATH_TESTS} \ | ||
| 188 | -examplesdir ${OE_QMAKE_PATH_EXAMPLES} \ | ||
| 189 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ | ||
| 190 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ | ||
| 191 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ | ||
| 192 | -platform ${OE_QMAKESPEC} \ | ||
| 193 | -xplatform linux-oe-g++ \ | ||
| 194 | ${QT_CONFIG_FLAGS} | ||
| 195 | |||
| 196 | qmake5_base_do_configure | ||
| 197 | } | ||
| 198 | |||
| 199 | do_compile_append() { | ||
| 200 | # copy corelib/3rdparty/qmake sources required by qmake -> ${B} | ||
| 201 | cp -ra ${S}/src/corelib ${B}/src | ||
| 202 | cp -ra ${S}/src/3rdparty ${B}/src | ||
| 203 | cp -ra ${S}/qmake ${B} | ||
| 204 | cp ${S}/.qmake.conf ${B}/qmake | ||
| 205 | cd ${B}/qmake | ||
| 206 | # align qt5 tools source path to ${S} | ||
| 207 | sed -i 's:\.\./tools:${S}/tools:g' qmake.pro | ||
| 208 | ../${OE_QMAKE_QMAKE} | ||
| 209 | oe_runmake CC="${CC}" CXX="${CXX}" | ||
| 210 | } | ||
| 211 | |||
| 212 | do_install_append() { | ||
| 213 | install -m 0755 ${B}/qmake/bin/qmake ${D}/${bindir}/${QT_DIR_NAME} | ||
| 214 | |||
| 215 | ### Fix up the binaries to the right location | ||
| 216 | ### TODO: FIX | ||
| 217 | # install fonts manually if they are missing | ||
| 218 | if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then | ||
| 219 | cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS} | ||
| 220 | chown -R root:root ${D}/${OE_QMAKE_PATH_LIBS}/fonts | ||
| 221 | fi | ||
| 222 | |||
| 223 | # Remove example.pro file as it is useless | ||
| 224 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro | ||
| 225 | |||
| 226 | # Remove macx-ios-clang directory because /usr/lib/qt5/mkspecs/macx-ios-clang/rename_main.sh:#!/bin/bash | ||
| 227 | # triggers QA Issue: qtbase-mkspecs requires /bin/bash, but no providers in its RDEPENDS [file-rdeps] | ||
| 228 | rm -rf ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/macx-ios-clang | ||
| 229 | } | ||
| 230 | |||
| 231 | PACKAGES =. " \ | ||
| 232 | ${PN}-fonts \ | ||
| 233 | ${PN}-fonts-ttf-vera \ | ||
| 234 | ${PN}-fonts-ttf-dejavu \ | ||
| 235 | ${PN}-fonts-pfa \ | ||
| 236 | ${PN}-fonts-pfb \ | ||
| 237 | ${PN}-fonts-qpf \ | ||
| 238 | " | ||
| 239 | |||
| 240 | RRECOMMENDS_${PN}-fonts = " \ | ||
| 241 | ${PN}-fonts-ttf-vera \ | ||
| 242 | ${PN}-fonts-ttf-dejavu \ | ||
| 243 | ${PN}-fonts-pfa \ | ||
| 244 | ${PN}-fonts-pfb \ | ||
| 245 | ${PN}-fonts-qpf \ | ||
| 246 | " | ||
| 247 | |||
| 248 | ALLOW_EMPTY_${PN}-fonts = "1" | ||
| 249 | |||
| 250 | FILES_${PN}-fonts-ttf-vera = "${OE_QMAKE_PATH_LIBS}/fonts/Vera*.ttf" | ||
| 251 | FILES_${PN}-fonts-ttf-dejavu = "${OE_QMAKE_PATH_LIBS}/fonts/DejaVu*.ttf" | ||
| 252 | FILES_${PN}-fonts-pfa = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfa" | ||
| 253 | FILES_${PN}-fonts-pfb = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfb" | ||
| 254 | FILES_${PN}-fonts-qpf = "${OE_QMAKE_PATH_LIBS}/fonts/*.qpf*" | ||
| 255 | FILES_${PN}-fonts = "${OE_QMAKE_PATH_LIBS}/fonts/README \ | ||
| 256 | ${OE_QMAKE_PATH_LIBS}/fonts/fontdir" | ||
| 257 | |||
| 258 | sysroot_stage_dirs_append() { | ||
| 259 | # $to is 2nd parameter passed to sysroot_stage_dir, e.g. ${SYSROOT_DESTDIR} passed from sysroot_stage_all | ||
| 260 | rm -rf $to${OE_QMAKE_PATH_LIBS}/fonts | ||
| 261 | } | ||
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index ed6878c3..44295a03 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | ||
| 3 | 3 | ||
| 4 | SRC_URI = "\ | 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" |
| 5 | ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ | 5 | LIC_FILES_CHKSUM = " \ |
| 6 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 7 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 6 | " | 10 | " |
| 7 | 11 | ||
| 8 | # common for qtbase-native, qtbase-nativesdk and qtbase | 12 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| @@ -25,9 +29,244 @@ SRC_URI += "\ | |||
| 25 | file://0012-Set-paths-for-target-properly.patch \ | 29 | file://0012-Set-paths-for-target-properly.patch \ |
| 26 | " | 30 | " |
| 27 | 31 | ||
| 28 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" | 32 | DEPENDS += "qtbase-native" |
| 33 | |||
| 34 | # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp | ||
| 35 | |||
| 36 | # for syncqt | ||
| 37 | RDEPENDS_${PN}-tools += "perl" | ||
| 38 | |||
| 39 | # separate some parts of PACKAGECONFIG which are often changed | ||
| 40 | # be aware that you need to add icu to build qtwebkit, default | ||
| 41 | # PACKAGECONFIG is kept rather minimal for people who don't need | ||
| 42 | # stuff like webkit (and it's easier to add options than remove) | ||
| 43 | |||
| 44 | PACKAGECONFIG_GL ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" | ||
| 45 | PACKAGECONFIG_FB ?= "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" | ||
| 46 | PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle xkb', '', d)}" | ||
| 47 | PACKAGECONFIG_FONTS ?= "" | ||
| 48 | PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib" | ||
| 49 | PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 50 | PACKAGECONFIG_DISTRO ?= "" | ||
| 51 | # Either release or debug, can be overridden in bbappends | ||
| 52 | PACKAGECONFIG_RELEASE ?= "release" | ||
| 53 | # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency | ||
| 54 | # PACKAGECONFIG_OPENSSL ?= "openssl" | ||
| 55 | PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs" | ||
| 56 | |||
| 57 | PACKAGECONFIG ?= " \ | ||
| 58 | ${PACKAGECONFIG_RELEASE} \ | ||
| 59 | ${PACKAGECONFIG_DEFAULT} \ | ||
| 60 | ${PACKAGECONFIG_OPENSSL} \ | ||
| 61 | ${PACKAGECONFIG_GL} \ | ||
| 62 | ${PACKAGECONFIG_FB} \ | ||
| 63 | ${PACKAGECONFIG_X11} \ | ||
| 64 | ${PACKAGECONFIG_FONTS} \ | ||
| 65 | ${PACKAGECONFIG_SYSTEM} \ | ||
| 66 | ${PACKAGECONFIG_MULTIMEDIA} \ | ||
| 67 | ${PACKAGECONFIG_DISTRO} \ | ||
| 68 | " | ||
| 69 | |||
| 70 | PACKAGECONFIG[release] = "-release,-debug" | ||
| 71 | PACKAGECONFIG[developer] = "-developer-build" | ||
| 72 | PACKAGECONFIG[sm] = "-sm,-no-sm" | ||
| 73 | PACKAGECONFIG[tests] = "-make tests,-nomake tests" | ||
| 74 | PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples" | ||
| 75 | PACKAGECONFIG[tools] = "-make tools,-nomake tools" | ||
| 76 | # only for completeness, configure will add libs even if you try to explicitly remove it | ||
| 77 | PACKAGECONFIG[libs] = "-make libs,-nomake libs" | ||
| 78 | # accessibility is required to compile qtquickcontrols | ||
| 79 | PACKAGECONFIG[accessibility] = "-accessibility,-no-accessibility" | ||
| 80 | PACKAGECONFIG[glib] = "-glib,-no-glib,glib-2.0" | ||
| 81 | # use either system freetype or bundled freetype, if you disable freetype completely | ||
| 82 | # fontdatabases/basic/qbasicfontdatabase.cpp will fail to build and system freetype | ||
| 83 | # works only together with fontconfig | ||
| 84 | PACKAGECONFIG[freetype] = "-system-freetype,-freetype,freetype" | ||
| 85 | PACKAGECONFIG[jpeg] = "-system-libjpeg,-no-libjpeg,jpeg" | ||
| 86 | PACKAGECONFIG[libpng] = "-system-libpng,-no-libpng,libpng" | ||
| 87 | PACKAGECONFIG[zlib] = "-system-zlib,-qt-zlib,zlib" | ||
| 88 | PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre" | ||
| 89 | PACKAGECONFIG[gl] = "-opengl desktop -no-eglfs,,virtual/libgl" | ||
| 90 | PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl" | ||
| 91 | PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib" | ||
| 92 | PACKAGECONFIG[cups] = "-cups,-no-cups,cups" | ||
| 93 | PACKAGECONFIG[dbus] = "-dbus,-no-dbus,dbus" | ||
| 94 | PACKAGECONFIG[xcb] = "-xcb -xcb-xlib -system-xcb,-no-xcb,libxcb xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil" | ||
| 95 | PACKAGECONFIG[sql-ibase] = "-sql-ibase,-no-sql-ibase" | ||
| 96 | PACKAGECONFIG[sql-mysql] = "-sql-mysql,-no-sql-mysql,mysql5" | ||
| 97 | PACKAGECONFIG[sql-psql] = "-sql-psql,-no-sql-psql,postgresql" | ||
| 98 | PACKAGECONFIG[sql-odbc] = "-sql-odbc,-no-sql-odbc" | ||
| 99 | PACKAGECONFIG[sql-oci] = "-sql-oci,-no-sql-oci" | ||
| 100 | PACKAGECONFIG[sql-tds] = "-sql-tds,-no-sql-tds" | ||
| 101 | PACKAGECONFIG[sql-db2] = "-sql-db2,-no-sql-db2" | ||
| 102 | PACKAGECONFIG[sql-sqlite2] = "-sql-sqlite2,-no-sql-sqlite2,sqlite" | ||
| 103 | PACKAGECONFIG[sql-sqlite] = "-sql-sqlite,-no-sql-sqlite,sqlite3" | ||
| 104 | PACKAGECONFIG[xcursor] = "-xcursor,-no-xcursor,libxcursor" | ||
| 105 | PACKAGECONFIG[xinerama] = "-xinerama,-no-xinerama,libxinerama" | ||
| 106 | PACKAGECONFIG[xinput] = "-xinput,-no-xinput" | ||
| 107 | PACKAGECONFIG[xinput2] = "-xinput2,-no-xinput2,libxi" | ||
| 108 | PACKAGECONFIG[xfixes] = "-xfixes,-no-xfixes,libxfixes" | ||
| 109 | PACKAGECONFIG[xrandr] = "-xrandr,-no-xrandr,libxrandr" | ||
| 110 | PACKAGECONFIG[xrender] = "-xrender,-no-xrender,libxrender" | ||
| 111 | PACKAGECONFIG[xshape] = "-xshape,-no-xshape" | ||
| 112 | PACKAGECONFIG[xsync] = "-xsync,-no-xsync" | ||
| 113 | PACKAGECONFIG[xvideo] = "-xvideo,-no-xvideo" | ||
| 114 | PACKAGECONFIG[openvg] = "-openvg,-no-openvg" | ||
| 115 | PACKAGECONFIG[iconv] = "-iconv,-no-iconv,virtual/libiconv" | ||
| 116 | PACKAGECONFIG[xkb] = "-xkb,-no-xkb -no-xkbcommon,libxkbcommon" | ||
| 117 | PACKAGECONFIG[evdev] = "-evdev,-no-evdev" | ||
| 118 | PACKAGECONFIG[mtdev] = "-mtdev,-no-mtdev,mtdev" | ||
| 119 | # depends on glib | ||
| 120 | PACKAGECONFIG[fontconfig] = "-fontconfig,-no-fontconfig,fontconfig" | ||
| 121 | PACKAGECONFIG[gtkstyle] = "-gtkstyle,-no-gtkstyle,gtk+" | ||
| 122 | PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb" | ||
| 123 | PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb" | ||
| 124 | PACKAGECONFIG[mitshm] = "-mitshm,-no-mitshm,mitshm" | ||
| 125 | PACKAGECONFIG[kms] = "-kms,-no-kms,virtual/mesa virtual/egl" | ||
| 126 | # needed for qtwebkit | ||
| 127 | PACKAGECONFIG[icu] = "-icu,-no-icu,icu" | ||
| 128 | PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev" | ||
| 129 | # use -openssl-linked here to ensure that RDEPENDS for libcrypto and libssl are detected | ||
| 130 | PACKAGECONFIG[openssl] = "-openssl-linked,-no-openssl,openssl" | ||
| 131 | PACKAGECONFIG[alsa] = "-alsa,-no-alsa,alsa-lib" | ||
| 132 | PACKAGECONFIG[pulseaudio] = "-pulseaudio,-no-pulseaudio,pulseaudio" | ||
| 133 | PACKAGECONFIG[nis] = "-nis,-no-nis" | ||
| 134 | PACKAGECONFIG[widgets] = "-widgets,-no-widgets" | ||
| 135 | |||
| 136 | QT_CONFIG_FLAGS += " \ | ||
| 137 | -shared \ | ||
| 138 | -silent \ | ||
| 139 | -no-pch \ | ||
| 140 | -no-rpath \ | ||
| 141 | -pkg-config \ | ||
| 142 | ${EXTRA_OECONF} \ | ||
| 143 | " | ||
| 144 | |||
| 145 | do_generate_qt_config_file_append() { | ||
| 146 | cat >> ${QT_CONF_PATH} <<EOF | ||
| 147 | |||
| 148 | [EffectivePaths] | ||
| 149 | Prefix=.. | ||
| 150 | EOF | ||
| 151 | } | ||
| 152 | |||
| 153 | # qtbase is exception, we need to use mkspecs from ${S} | ||
| 154 | QMAKE_MKSPEC_PATH = "${B}" | ||
| 155 | |||
| 156 | # another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location | ||
| 157 | OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake" | ||
| 158 | OE_QMAKE_QMAKE = "bin/qmake" | ||
| 159 | |||
| 160 | # qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell | ||
| 161 | export OE_QMAKE_COMPILER | ||
| 162 | export OE_QMAKE_CC | ||
| 163 | export OE_QMAKE_CFLAGS | ||
| 164 | export OE_QMAKE_CXX | ||
| 165 | export OE_QMAKE_CXXFLAGS | ||
| 166 | export OE_QMAKE_LINK | ||
| 167 | export OE_QMAKE_LDFLAGS | ||
| 168 | export OE_QMAKE_AR | ||
| 169 | export OE_QMAKE_STRIP | ||
| 170 | |||
| 171 | do_configure() { | ||
| 172 | # we need symlink in path relative to source, because | ||
| 173 | # EffectivePaths:Prefix is relative to qmake location | ||
| 174 | if [ ! -e ${B}/bin/qmake ]; then | ||
| 175 | mkdir ${B}/bin | ||
| 176 | ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake | ||
| 177 | fi | ||
| 29 | 178 | ||
| 30 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | 179 | ${S}/configure -v \ |
| 31 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | 180 | -opensource -confirm-license \ |
| 32 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | 181 | -sysroot ${STAGING_DIR_TARGET} \ |
| 33 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | 182 | -no-gcc-sysroot \ |
| 183 | -prefix ${OE_QMAKE_PATH_PREFIX} \ | ||
| 184 | -bindir ${OE_QMAKE_PATH_BINS} \ | ||
| 185 | -libdir ${OE_QMAKE_PATH_LIBS} \ | ||
| 186 | -datadir ${OE_QMAKE_PATH_DATA} \ | ||
| 187 | -sysconfdir ${OE_QMAKE_PATH_SETTINGS} \ | ||
| 188 | -docdir ${OE_QMAKE_PATH_DOCS} \ | ||
| 189 | -headerdir ${OE_QMAKE_PATH_HEADERS} \ | ||
| 190 | -archdatadir ${OE_QMAKE_PATH_ARCHDATA} \ | ||
| 191 | -libexecdir ${OE_QMAKE_PATH_LIBEXECS} \ | ||
| 192 | -plugindir ${OE_QMAKE_PATH_PLUGINS} \ | ||
| 193 | -importdir ${OE_QMAKE_PATH_IMPORTS} \ | ||
| 194 | -qmldir ${OE_QMAKE_PATH_QML} \ | ||
| 195 | -translationdir ${OE_QMAKE_PATH_TRANSLATIONS} \ | ||
| 196 | -testsdir ${OE_QMAKE_PATH_TESTS} \ | ||
| 197 | -examplesdir ${OE_QMAKE_PATH_EXAMPLES} \ | ||
| 198 | -hostbindir ${OE_QMAKE_PATH_HOST_BINS} \ | ||
| 199 | -hostdatadir ${OE_QMAKE_PATH_HOST_DATA} \ | ||
| 200 | -external-hostbindir ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} \ | ||
| 201 | -platform ${OE_QMAKESPEC} \ | ||
| 202 | -xplatform linux-oe-g++ \ | ||
| 203 | ${QT_CONFIG_FLAGS} | ||
| 204 | |||
| 205 | qmake5_base_do_configure | ||
| 206 | } | ||
| 207 | |||
| 208 | do_compile_append() { | ||
| 209 | # copy corelib/3rdparty/qmake sources required by qmake -> ${B} | ||
| 210 | cp -ra ${S}/src/corelib ${B}/src | ||
| 211 | cp -ra ${S}/src/3rdparty ${B}/src | ||
| 212 | cp -ra ${S}/qmake ${B} | ||
| 213 | cp ${S}/.qmake.conf ${B}/qmake | ||
| 214 | cd ${B}/qmake | ||
| 215 | # align qt5 tools source path to ${S} | ||
| 216 | sed -i 's:\.\./tools:${S}/tools:g' qmake.pro | ||
| 217 | ../${OE_QMAKE_QMAKE} | ||
| 218 | oe_runmake CC="${CC}" CXX="${CXX}" | ||
| 219 | } | ||
| 220 | |||
| 221 | do_install_append() { | ||
| 222 | install -m 0755 ${B}/qmake/bin/qmake ${D}/${bindir}/${QT_DIR_NAME} | ||
| 223 | |||
| 224 | ### Fix up the binaries to the right location | ||
| 225 | ### TODO: FIX | ||
| 226 | # install fonts manually if they are missing | ||
| 227 | if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then | ||
| 228 | cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS} | ||
| 229 | chown -R root:root ${D}/${OE_QMAKE_PATH_LIBS}/fonts | ||
| 230 | fi | ||
| 231 | |||
| 232 | # Remove example.pro file as it is useless | ||
| 233 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro | ||
| 234 | |||
| 235 | # Remove macx-ios-clang directory because /usr/lib/qt5/mkspecs/macx-ios-clang/rename_main.sh:#!/bin/bash | ||
| 236 | # triggers QA Issue: qtbase-mkspecs requires /bin/bash, but no providers in its RDEPENDS [file-rdeps] | ||
| 237 | rm -rf ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/macx-ios-clang | ||
| 238 | } | ||
| 239 | |||
| 240 | PACKAGES =. " \ | ||
| 241 | ${PN}-fonts \ | ||
| 242 | ${PN}-fonts-ttf-vera \ | ||
| 243 | ${PN}-fonts-ttf-dejavu \ | ||
| 244 | ${PN}-fonts-pfa \ | ||
| 245 | ${PN}-fonts-pfb \ | ||
| 246 | ${PN}-fonts-qpf \ | ||
| 247 | " | ||
| 248 | |||
| 249 | RRECOMMENDS_${PN}-fonts = " \ | ||
| 250 | ${PN}-fonts-ttf-vera \ | ||
| 251 | ${PN}-fonts-ttf-dejavu \ | ||
| 252 | ${PN}-fonts-pfa \ | ||
| 253 | ${PN}-fonts-pfb \ | ||
| 254 | ${PN}-fonts-qpf \ | ||
| 255 | " | ||
| 256 | |||
| 257 | ALLOW_EMPTY_${PN}-fonts = "1" | ||
| 258 | |||
| 259 | FILES_${PN}-fonts-ttf-vera = "${OE_QMAKE_PATH_LIBS}/fonts/Vera*.ttf" | ||
| 260 | FILES_${PN}-fonts-ttf-dejavu = "${OE_QMAKE_PATH_LIBS}/fonts/DejaVu*.ttf" | ||
| 261 | FILES_${PN}-fonts-pfa = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfa" | ||
| 262 | FILES_${PN}-fonts-pfb = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfb" | ||
| 263 | FILES_${PN}-fonts-qpf = "${OE_QMAKE_PATH_LIBS}/fonts/*.qpf*" | ||
| 264 | FILES_${PN}-fonts = "${OE_QMAKE_PATH_LIBS}/fonts/README \ | ||
| 265 | ${OE_QMAKE_PATH_LIBS}/fonts/fontdir" | ||
| 266 | |||
| 267 | sysroot_stage_dirs_append() { | ||
| 268 | # $to is 2nd parameter passed to sysroot_stage_dir, e.g. ${SYSROOT_DESTDIR} passed from sysroot_stage_all | ||
| 269 | rm -rf $to${OE_QMAKE_PATH_LIBS}/fonts | ||
| 270 | } | ||
| 271 | |||
| 272 | SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" | ||
diff --git a/recipes-qt/qt5/qtconnectivity.inc b/recipes-qt/qt5/qtconnectivity.inc deleted file mode 100644 index ab8d31e5..00000000 --- a/recipes-qt/qt5/qtconnectivity.inc +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative" | ||
| 4 | |||
| 5 | PACKAGECONFIG ??= "" | ||
| 6 | PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4" | ||
| 7 | |||
| 8 | do_configure_prepend() { | ||
| 9 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 10 | # disable bluez test if it isn't enabled by PACKAGECONFIG | ||
| 11 | sed -i 's/^qtCompileTest(bluez)/OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtconnectivity.pro | ||
| 12 | } | ||
| 13 | |||
| 14 | LICENSE += "| GPL-2.0" | ||
| 15 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtconnectivity_git.bb b/recipes-qt/qt5/qtconnectivity_git.bb index 0e62a236..8ed64fb4 100644 --- a/recipes-qt/qt5/qtconnectivity_git.bb +++ b/recipes-qt/qt5/qtconnectivity_git.bb | |||
| @@ -1,4 +1,24 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${BPN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase qtdeclarative" | ||
| 14 | |||
| 15 | PACKAGECONFIG ??= "" | ||
| 16 | PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4" | ||
| 17 | |||
| 18 | do_configure_prepend() { | ||
| 19 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 20 | # disable bluez test if it isn't enabled by PACKAGECONFIG | ||
| 21 | sed -i 's/^qtCompileTest(bluez)/OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtconnectivity.pro | ||
| 22 | } | ||
| 3 | 23 | ||
| 4 | SRCREV = "b4bf23453e65995bdd8827b6e146edd5cafeddc3" | 24 | SRCREV = "b4bf23453e65995bdd8827b6e146edd5cafeddc3" |
diff --git a/recipes-qt/qt5/qtdeclarative.inc b/recipes-qt/qt5/qtdeclarative.inc deleted file mode 100644 index 10487ca6..00000000 --- a/recipes-qt/qt5/qtdeclarative.inc +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://0001-qmltestexample-fix-link.patch \ | ||
| 5 | " | ||
| 6 | |||
| 7 | # There are no LGPLv3-only licensed files in this component. | ||
| 8 | |||
| 9 | DEPENDS += "qtbase" | ||
| 10 | |||
| 11 | PACKAGECONFIG ??= "qtxmlpatterns" | ||
| 12 | PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns" | ||
| 13 | |||
| 14 | do_configure_prepend() { | ||
| 15 | # disable qtxmlpatterns test if it isn't enabled by PACKAGECONFIG | ||
| 16 | sed -e 's/^\(qtHaveModule(xmlpatterns)\)/OE_QTXMLPATTERNS_ENABLED:\1/' -i ${S}/src/imports/imports.pro | ||
| 17 | sed -e 's/^\(!qtHaveModule(xmlpatterns)\)/!OE_QTXMLPATTERNS_ENABLED|\1/' -i ${S}/tests/auto/quick/quick.pro | ||
| 18 | } | ||
| 19 | |||
| 20 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtxmlpatterns', 'CONFIG+=OE_QTXMLPATTERNS_ENABLED', '', d)}" | ||
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb index caa851a3..5f628c28 100644 --- a/recipes-qt/qt5/qtdeclarative_git.bb +++ b/recipes-qt/qt5/qtdeclarative_git.bb | |||
| @@ -1,4 +1,30 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase" | ||
| 14 | |||
| 15 | SRC_URI += " \ | ||
| 16 | file://0001-qmltestexample-fix-link.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | PACKAGECONFIG ??= "qtxmlpatterns" | ||
| 20 | PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns" | ||
| 21 | |||
| 22 | do_configure_prepend() { | ||
| 23 | # disable qtxmlpatterns test if it isn't enabled by PACKAGECONFIG | ||
| 24 | sed -e 's/^\(qtHaveModule(xmlpatterns)\)/OE_QTXMLPATTERNS_ENABLED:\1/' -i ${S}/src/imports/imports.pro | ||
| 25 | sed -e 's/^\(!qtHaveModule(xmlpatterns)\)/!OE_QTXMLPATTERNS_ENABLED|\1/' -i ${S}/tests/auto/quick/quick.pro | ||
| 26 | } | ||
| 27 | |||
| 28 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtxmlpatterns', 'CONFIG+=OE_QTXMLPATTERNS_ENABLED', '', d)}" | ||
| 3 | 29 | ||
| 4 | SRCREV = "2b3c2339616680537145a9cc2e7567575add1abb" | 30 | SRCREV = "2b3c2339616680537145a9cc2e7567575add1abb" |
diff --git a/recipes-qt/qt5/qtenginio.inc b/recipes-qt/qt5/qtenginio.inc deleted file mode 100644 index 687b414d..00000000 --- a/recipes-qt/qt5/qtenginio.inc +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns" | ||
| 4 | |||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 6 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 7 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6" | ||
| 8 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
diff --git a/recipes-qt/qt5/qtenginio_git.bb b/recipes-qt/qt5/qtenginio_git.bb index 9e2c703f..2f13a2bf 100644 --- a/recipes-qt/qt5/qtenginio_git.bb +++ b/recipes-qt/qt5/qtenginio_git.bb | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns" | ||
| 3 | 12 | ||
| 4 | QT_MODULE_BRANCH = "1.1" | 13 | QT_MODULE_BRANCH = "1.1" |
| 5 | SRCREV = "30ee95cd19f9a435ce337b4f651175ed2e8ba2e5" | 14 | SRCREV = "30ee95cd19f9a435ce337b4f651175ed2e8ba2e5" |
diff --git a/recipes-qt/qt5/qtgraphicaleffects.inc b/recipes-qt/qt5/qtgraphicaleffects.inc deleted file mode 100644 index 9b862cf2..00000000 --- a/recipes-qt/qt5/qtgraphicaleffects.inc +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtdeclarative" | ||
| 4 | |||
| 5 | RDEPENDS_${PN}-dev = "" | ||
| 6 | |||
| 7 | # There are no LGPLv3-only licensed files in this component. | ||
| 8 | # There are no GPLv2 licensed files in this component. | ||
| 9 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtgraphicaleffects_git.bb b/recipes-qt/qt5/qtgraphicaleffects_git.bb index cf2498b2..d7f0e87c 100644 --- a/recipes-qt/qt5/qtgraphicaleffects_git.bb +++ b/recipes-qt/qt5/qtgraphicaleffects_git.bb | |||
| @@ -1,4 +1,19 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # There are no GPLv2 licensed files in this component. | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 9 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 10 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 11 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 12 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 13 | " | ||
| 14 | |||
| 15 | DEPENDS += "qtdeclarative" | ||
| 16 | |||
| 17 | RDEPENDS_${PN}-dev = "" | ||
| 3 | 18 | ||
| 4 | SRCREV = "6eef4b5fa1836c9cb7ebc5dcb269a8d3114eb6c3" | 19 | SRCREV = "6eef4b5fa1836c9cb7ebc5dcb269a8d3114eb6c3" |
diff --git a/recipes-qt/qt5/qtimageformats.inc b/recipes-qt/qt5/qtimageformats.inc deleted file mode 100644 index 94c3a9de..00000000 --- a/recipes-qt/qt5/qtimageformats.inc +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase" | ||
| 4 | ALLOW_EMPTY_${PN} = "1" | ||
| 5 | |||
| 6 | SRC_URI += "file://0001-qtimageformats.pro-Make-the-dependencies-determinist.patch" | ||
| 7 | |||
| 8 | PACKAGECONFIG ?= "libtiff" | ||
| 9 | # Currently we don't have recipe for libmng, but lock it anyway so qtimageformats stay deterministic even when libmng is introduced | ||
| 10 | PACKAGECONFIG[jasper] = ",,jasper" | ||
| 11 | PACKAGECONFIG[libmng] = ",,libmng" | ||
| 12 | PACKAGECONFIG[libtiff] = ",,tiff" | ||
| 13 | PACKAGECONFIG[libwebp] = ",,libwebp" | ||
| 14 | |||
| 15 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libmng', 'CONFIG+=OE_LIBMNG_ENABLED', '', d)}" | ||
| 16 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'jasper', 'CONFIG+=OE_JASPER_ENABLED', '', d)}" | ||
| 17 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libtiff', 'CONFIG+=OE_LIBTIFF_ENABLED', '', d)}" | ||
| 18 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libwebp', 'CONFIG+=OE_LIBWEBP_ENABLED', '', d)}" | ||
| 19 | |||
| 20 | LICENSE += "| GPL-2.0" | ||
| 21 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtimageformats_git.bb b/recipes-qt/qt5/qtimageformats_git.bb index 149148ea..bd2f8939 100644 --- a/recipes-qt/qt5/qtimageformats_git.bb +++ b/recipes-qt/qt5/qtimageformats_git.bb | |||
| @@ -1,4 +1,30 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase" | ||
| 14 | ALLOW_EMPTY_${PN} = "1" | ||
| 15 | |||
| 16 | SRC_URI += "file://0001-qtimageformats.pro-Make-the-dependencies-determinist.patch" | ||
| 17 | |||
| 18 | PACKAGECONFIG ?= "libtiff" | ||
| 19 | # Currently we don't have recipe for libmng, but lock it anyway so qtimageformats stay deterministic even when libmng is introduced | ||
| 20 | PACKAGECONFIG[jasper] = ",,jasper" | ||
| 21 | PACKAGECONFIG[libmng] = ",,libmng" | ||
| 22 | PACKAGECONFIG[libtiff] = ",,tiff" | ||
| 23 | PACKAGECONFIG[libwebp] = ",,libwebp" | ||
| 24 | |||
| 25 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libmng', 'CONFIG+=OE_LIBMNG_ENABLED', '', d)}" | ||
| 26 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'jasper', 'CONFIG+=OE_JASPER_ENABLED', '', d)}" | ||
| 27 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libtiff', 'CONFIG+=OE_LIBTIFF_ENABLED', '', d)}" | ||
| 28 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libwebp', 'CONFIG+=OE_LIBWEBP_ENABLED', '', d)}" | ||
| 3 | 29 | ||
| 4 | SRCREV = "98f83553e9fe2aa5fc54b32513af6ba3aa60a07b" | 30 | SRCREV = "98f83553e9fe2aa5fc54b32513af6ba3aa60a07b" |
diff --git a/recipes-qt/qt5/qtlocation.inc b/recipes-qt/qt5/qtlocation.inc deleted file mode 100644 index 7941240f..00000000 --- a/recipes-qt/qt5/qtlocation.inc +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qt3d" | ||
| 4 | # qtsystems qtmultimedia | ||
| 5 | |||
| 6 | PACKAGECONFIG ??= "" | ||
| 7 | # older geoclue 0.x is needed | ||
| 8 | PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue" | ||
| 9 | PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy" | ||
| 10 | |||
| 11 | do_configure_prepend() { | ||
| 12 | # disable geoclue tests if it isn't enabled by PACKAGECONFIG | ||
| 13 | sed -i -e 's/^\(qtCompileTest(geoclue)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 14 | sed -i -e 's/^\(qtCompileTest(geoclue-satellite)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 15 | # disable gypsy test if it isn't enabled by PACKAGECONFIG | ||
| 16 | sed -i -e 's/^\(qtCompileTest(gypsy)\)/OE_GYPSY_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 17 | } | ||
| 18 | |||
| 19 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}" | ||
| 20 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}" | ||
| 21 | |||
| 22 | LICENSE += "| GPL-2.0" | ||
| 23 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtlocation_git.bb b/recipes-qt/qt5/qtlocation_git.bb index 75b4f724..7ff4c3d7 100644 --- a/recipes-qt/qt5/qtlocation_git.bb +++ b/recipes-qt/qt5/qtlocation_git.bb | |||
| @@ -1,4 +1,32 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase qt3d" | ||
| 14 | # qtsystems qtmultimedia | ||
| 15 | |||
| 16 | PACKAGECONFIG ??= "" | ||
| 17 | # older geoclue 0.x is needed | ||
| 18 | PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue" | ||
| 19 | PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy" | ||
| 20 | |||
| 21 | do_configure_prepend() { | ||
| 22 | # disable geoclue tests if it isn't enabled by PACKAGECONFIG | ||
| 23 | sed -i -e 's/^\(qtCompileTest(geoclue)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 24 | sed -i -e 's/^\(qtCompileTest(geoclue-satellite)\)/OE_GEOCLUE_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 25 | # disable gypsy test if it isn't enabled by PACKAGECONFIG | ||
| 26 | sed -i -e 's/^\(qtCompileTest(gypsy)\)/OE_GYPSY_ENABLED:\1/' ${S}/qtlocation.pro | ||
| 27 | } | ||
| 28 | |||
| 29 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}" | ||
| 30 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}" | ||
| 3 | 31 | ||
| 4 | SRCREV = "b13fec3c7ed08b7d0e79c08312a3c3285eb20ef3" | 32 | SRCREV = "b13fec3c7ed08b7d0e79c08312a3c3285eb20ef3" |
diff --git a/recipes-qt/qt5/qtmultimedia.inc b/recipes-qt/qt5/qtmultimedia.inc deleted file mode 100644 index bb53b9c9..00000000 --- a/recipes-qt/qt5/qtmultimedia.inc +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # There are no LGPLv3-only licensed files in this component. | ||
| 4 | |||
| 5 | DEPENDS += "qtdeclarative" | ||
| 6 | |||
| 7 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ | ||
| 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 9 | PACKAGECONFIG[alsa] = ",,alsa-lib" | ||
| 10 | PACKAGECONFIG[pulseaudio] = ",,pulseaudio" | ||
| 11 | PACKAGECONFIG[openal] = ",,openal-soft" | ||
| 12 | PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 13 | PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad" | ||
| 14 | |||
| 15 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}" | ||
| 16 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}" | ||
| 17 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}" | ||
| 18 | |||
| 19 | # Handles GStreamer support | ||
| 20 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer', 'GST_VERSION=1.0', '', d)}" | ||
| 21 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', '', d)}" | ||
| 22 | # Disable GStreamer if completely disabled | ||
| 23 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_gstreamer', d)}" | ||
| 24 | |||
| 25 | SRC_URI += "\ | ||
| 26 | file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \ | ||
| 27 | " | ||
diff --git a/recipes-qt/qt5/qtmultimedia_git.bb b/recipes-qt/qt5/qtmultimedia_git.bb index 17951699..66bba543 100644 --- a/recipes-qt/qt5/qtmultimedia_git.bb +++ b/recipes-qt/qt5/qtmultimedia_git.bb | |||
| @@ -1,4 +1,37 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtdeclarative" | ||
| 14 | |||
| 15 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ | ||
| 16 | ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}" | ||
| 17 | PACKAGECONFIG[alsa] = ",,alsa-lib" | ||
| 18 | PACKAGECONFIG[pulseaudio] = ",,pulseaudio" | ||
| 19 | PACKAGECONFIG[openal] = ",,openal-soft" | ||
| 20 | PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad" | ||
| 21 | PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad" | ||
| 22 | |||
| 23 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}" | ||
| 24 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}" | ||
| 25 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}" | ||
| 26 | |||
| 27 | # Handles GStreamer support | ||
| 28 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer', 'GST_VERSION=1.0', '', d)}" | ||
| 29 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', '', d)}" | ||
| 30 | # Disable GStreamer if completely disabled | ||
| 31 | EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_gstreamer', d)}" | ||
| 32 | |||
| 33 | SRC_URI += "\ | ||
| 34 | file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \ | ||
| 35 | " | ||
| 3 | 36 | ||
| 4 | SRCREV = "6fe3061c1f6b7438d20c7bfb92c7652cedc5b049" | 37 | SRCREV = "6fe3061c1f6b7438d20c7bfb92c7652cedc5b049" |
diff --git a/recipes-qt/qt5/qtquick1.inc b/recipes-qt/qt5/qtquick1.inc deleted file mode 100644 index c3ae7cf1..00000000 --- a/recipes-qt/qt5/qtquick1.inc +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtscript qtsvg qtxmlpatterns qtwebkit" | ||
| 4 | # qttools | ||
| 5 | |||
| 6 | # There are no LGPLv3-only licensed files in this component. | ||
| 7 | # There are no GPLv2 licensed files in this component. | ||
| 8 | # Note that some files are LGPL-2.1 only without Digia-Qt-LGPL-Exception-1.1. | ||
| 9 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtquick1_git.bb b/recipes-qt/qt5/qtquick1_git.bb index 7cc23d5c..a90d2e3e 100644 --- a/recipes-qt/qt5/qtquick1_git.bb +++ b/recipes-qt/qt5/qtquick1_git.bb | |||
| @@ -1,4 +1,19 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # There are no GPLv2 licensed files in this component. | ||
| 6 | # Note that some files are LGPL-2.1 only without Digia-Qt-LGPL-Exception-1.1. | ||
| 7 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 8 | LIC_FILES_CHKSUM = " \ | ||
| 9 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 10 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 11 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 12 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 13 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 14 | " | ||
| 15 | |||
| 16 | DEPENDS += "qtscript qtsvg qtxmlpatterns qtwebkit" | ||
| 17 | # qttools | ||
| 3 | 18 | ||
| 4 | SRCREV = "c78f720de6de9340492f8395109252919283a955" | 19 | SRCREV = "c78f720de6de9340492f8395109252919283a955" |
diff --git a/recipes-qt/qt5/qtquickcontrols.inc b/recipes-qt/qt5/qtquickcontrols.inc deleted file mode 100644 index 89bda5ed..00000000 --- a/recipes-qt/qt5/qtquickcontrols.inc +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtdeclarative" | ||
| 4 | |||
| 5 | RDEPENDS_${PN}-dev = "" | ||
| 6 | |||
| 7 | LICENSE += "| GPL-2.0" | ||
| 8 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtquickcontrols_git.bb b/recipes-qt/qt5/qtquickcontrols_git.bb index ddc4ccfc..5afb31a3 100644 --- a/recipes-qt/qt5/qtquickcontrols_git.bb +++ b/recipes-qt/qt5/qtquickcontrols_git.bb | |||
| @@ -1,4 +1,17 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtdeclarative" | ||
| 14 | |||
| 15 | RDEPENDS_${PN}-dev = "" | ||
| 3 | 16 | ||
| 4 | SRCREV = "de9145dcd904068256e28e130fdfda2e8014efe8" | 17 | SRCREV = "de9145dcd904068256e28e130fdfda2e8014efe8" |
diff --git a/recipes-qt/qt5/qtscript.inc b/recipes-qt/qt5/qtscript.inc deleted file mode 100644 index 5a534f0d..00000000 --- a/recipes-qt/qt5/qtscript.inc +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # qemuarm build fails with: | ||
| 4 | # /OE/build/oe-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/qtscript/5.4.1+gitAUTOINC+822df36f25-r0/git/src/3rdparty/javascriptcore/JavaScriptCore/assembler/AssemblerBuffer.h: In member function 'void QTJSC::AssemblerBuffer::putInt64Unchecked(int64_t)': | ||
| 5 | #/OE/build/oe-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/qtscript/5.4.1+gitAUTOINC+822df36f25-r0/git/src/3rdparty/javascriptcore/JavaScriptCore/assembler/AssemblerBuffer.h:106:58: warning: cast from 'char*' to 'int64_t* {aka long long int*}' increases required alignment of target type [-Wcast-align] | ||
| 6 | # *reinterpret_cast<int64_t*>(&m_buffer[m_size]) = value; | ||
| 7 | # ^ | ||
| 8 | #{standard input}: Assembler messages: | ||
| 9 | #{standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r1-r3}' | ||
| 10 | #{standard input}:23: Error: selected processor does not support Thumb mode `stmdb sp!,{r4-r8,lr}' | ||
| 11 | #{standard input}:30: Error: lo register required -- `ldmia sp!,{r4-r8,lr}' | ||
| 12 | #{standard input}:43: Error: lo register required -- `ldmia sp!,{r4-r8,lr}' | ||
| 13 | ARM_INSTRUCTION_SET = "arm" | ||
| 14 | |||
| 15 | # There are no LGPLv3-only licensed files in this component. | ||
| 16 | # Note that some files are LGPL-2.1 only without Digia-Qt-LGPL-Exception-1.1. | ||
| 17 | DEPENDS += "qtbase" | ||
diff --git a/recipes-qt/qt5/qtscript_git.bb b/recipes-qt/qt5/qtscript_git.bb index 4b99e381..489be2e6 100644 --- a/recipes-qt/qt5/qtscript_git.bb +++ b/recipes-qt/qt5/qtscript_git.bb | |||
| @@ -1,4 +1,28 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # Note that some files are LGPL-2.1 only without Digia-Qt-LGPL-Exception-1.1. | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 9 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 10 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 11 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 12 | " | ||
| 13 | |||
| 14 | # qemuarm build fails with: | ||
| 15 | # /OE/build/oe-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/qtscript/5.4.1+gitAUTOINC+822df36f25-r0/git/src/3rdparty/javascriptcore/JavaScriptCore/assembler/AssemblerBuffer.h: In member function 'void QTJSC::AssemblerBuffer::putInt64Unchecked(int64_t)': | ||
| 16 | #/OE/build/oe-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/qtscript/5.4.1+gitAUTOINC+822df36f25-r0/git/src/3rdparty/javascriptcore/JavaScriptCore/assembler/AssemblerBuffer.h:106:58: warning: cast from 'char*' to 'int64_t* {aka long long int*}' increases required alignment of target type [-Wcast-align] | ||
| 17 | # *reinterpret_cast<int64_t*>(&m_buffer[m_size]) = value; | ||
| 18 | # ^ | ||
| 19 | #{standard input}: Assembler messages: | ||
| 20 | #{standard input}:22: Error: selected processor does not support Thumb mode `stmdb sp!,{r1-r3}' | ||
| 21 | #{standard input}:23: Error: selected processor does not support Thumb mode `stmdb sp!,{r4-r8,lr}' | ||
| 22 | #{standard input}:30: Error: lo register required -- `ldmia sp!,{r4-r8,lr}' | ||
| 23 | #{standard input}:43: Error: lo register required -- `ldmia sp!,{r4-r8,lr}' | ||
| 24 | ARM_INSTRUCTION_SET = "arm" | ||
| 25 | |||
| 26 | DEPENDS += "qtbase" | ||
| 3 | 27 | ||
| 4 | SRCREV = "822df36f252c5a16cdf82f5666f36e7011df46c4" | 28 | SRCREV = "822df36f252c5a16cdf82f5666f36e7011df46c4" |
diff --git a/recipes-qt/qt5/qtsensors.inc b/recipes-qt/qt5/qtsensors.inc deleted file mode 100644 index 88c5e782..00000000 --- a/recipes-qt/qt5/qtsensors.inc +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative" | ||
| 4 | |||
| 5 | # There are no LGPLv3-only licensed files in this component. | ||
| 6 | # There are no GPLv2 licensed files in this component. | ||
| 7 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtsensors_git.bb b/recipes-qt/qt5/qtsensors_git.bb index 982b2f72..31131d87 100644 --- a/recipes-qt/qt5/qtsensors_git.bb +++ b/recipes-qt/qt5/qtsensors_git.bb | |||
| @@ -1,4 +1,17 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # There are no GPLv2 licensed files in this component. | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 9 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 10 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 11 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 12 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 13 | " | ||
| 14 | |||
| 15 | DEPENDS += "qtbase qtdeclarative" | ||
| 3 | 16 | ||
| 4 | SRCREV = "26c99a8f7832a5549d315ad434e038ae3964e224" | 17 | SRCREV = "26c99a8f7832a5549d315ad434e038ae3964e224" |
diff --git a/recipes-qt/qt5/qtserialport.inc b/recipes-qt/qt5/qtserialport.inc deleted file mode 100644 index c9877c67..00000000 --- a/recipes-qt/qt5/qtserialport.inc +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | SRC_URI += " \ | ||
| 4 | file://0001-Unix-Clear-serial_struct-instances.patch \ | ||
| 5 | " | ||
| 6 | |||
| 7 | DEPENDS += "qtbase" | ||
| 8 | |||
| 9 | # text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what | ||
| 10 | # other qt* components use :/ | ||
| 11 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 12 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 13 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 14 | file://LGPL_EXCEPTION.txt;md5=eb6c371255e1262c55ae9b652a90b528 \ | ||
| 15 | file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa" | ||
diff --git a/recipes-qt/qt5/qtserialport_git.bb b/recipes-qt/qt5/qtserialport_git.bb index a4e471b8..e95d564e 100644 --- a/recipes-qt/qt5/qtserialport_git.bb +++ b/recipes-qt/qt5/qtserialport_git.bb | |||
| @@ -1,4 +1,21 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what | ||
| 5 | # other qt* components use :/ | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 9 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 10 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 11 | file://LGPL_EXCEPTION.txt;md5=eb6c371255e1262c55ae9b652a90b528 \ | ||
| 12 | file://LICENSE.FDL;md5=3801d7932fdc07fd9efe89f9854a6caa \ | ||
| 13 | " | ||
| 14 | |||
| 15 | SRC_URI += " \ | ||
| 16 | file://0001-Unix-Clear-serial_struct-instances.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | DEPENDS += "qtbase" | ||
| 3 | 20 | ||
| 4 | SRCREV = "b84fe7eb3d6d977a347bfbb82da724409b2eda69" | 21 | SRCREV = "b84fe7eb3d6d977a347bfbb82da724409b2eda69" |
diff --git a/recipes-qt/qt5/qtsvg.inc b/recipes-qt/qt5/qtsvg.inc deleted file mode 100644 index ce2eee40..00000000 --- a/recipes-qt/qt5/qtsvg.inc +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # There are no LGPLv3-only licensed files in this component. | ||
| 4 | DEPENDS += "qtbase" | ||
diff --git a/recipes-qt/qt5/qtsvg_git.bb b/recipes-qt/qt5/qtsvg_git.bb index b9e57f55..89f0815b 100644 --- a/recipes-qt/qt5/qtsvg_git.bb +++ b/recipes-qt/qt5/qtsvg_git.bb | |||
| @@ -1,4 +1,15 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase" | ||
| 3 | 14 | ||
| 4 | SRCREV = "1fb79c9f2b50294b989cf2bdd8bfaaf0a458e2a8" | 15 | SRCREV = "1fb79c9f2b50294b989cf2bdd8bfaaf0a458e2a8" |
diff --git a/recipes-qt/qt5/qtsystems.inc b/recipes-qt/qt5/qtsystems.inc deleted file mode 100644 index e9b14aeb..00000000 --- a/recipes-qt/qt5/qtsystems.inc +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative udev gconf" | ||
| 4 | |||
| 5 | PACKAGECONFIG ??= "" | ||
| 6 | PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4" | ||
| 7 | |||
| 8 | do_configure_prepend() { | ||
| 9 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 10 | # disable bluez test if it isn't enabled by PACKAGECONFIG | ||
| 11 | sed -i 's/^ qtCompileTest(bluez)/ OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtsystems.pro | ||
| 12 | } | ||
| 13 | |||
| 14 | do_install_append() { | ||
| 15 | # Remove example.pro file as it is useless | ||
| 16 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro | ||
| 17 | } | ||
| 18 | |||
| 19 | LICENSE = "GFDL-1.3 & LGPL-2.1 | GPL-3.0" | ||
| 20 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 21 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 22 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 23 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qtsystems_git.bb b/recipes-qt/qt5/qtsystems_git.bb index ea253d6f..edc03603 100644 --- a/recipes-qt/qt5/qtsystems_git.bb +++ b/recipes-qt/qt5/qtsystems_git.bb | |||
| @@ -1,5 +1,29 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & LGPL-2.1 | GPL-3.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 7 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | " | ||
| 11 | |||
| 12 | DEPENDS += "qtbase qtdeclarative udev gconf" | ||
| 13 | |||
| 14 | PACKAGECONFIG ??= "" | ||
| 15 | PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4" | ||
| 16 | |||
| 17 | do_configure_prepend() { | ||
| 18 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 19 | # disable bluez test if it isn't enabled by PACKAGECONFIG | ||
| 20 | sed -i 's/^ qtCompileTest(bluez)/ OE_BLUEZ_ENABLED:qtCompileTest(bluez)/g' ${S}/qtsystems.pro | ||
| 21 | } | ||
| 22 | |||
| 23 | do_install_append() { | ||
| 24 | # Remove example.pro file as it is useless | ||
| 25 | rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro | ||
| 26 | } | ||
| 3 | 27 | ||
| 4 | QT_MODULE_BRANCH = "dev" | 28 | QT_MODULE_BRANCH = "dev" |
| 5 | 29 | ||
diff --git a/recipes-qt/qt5/qttools-native.inc b/recipes-qt/qt5/qttools-native.inc deleted file mode 100644 index 03b88cd1..00000000 --- a/recipes-qt/qt5/qttools-native.inc +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | DEPENDS = "qtbase-native" | ||
| 2 | |||
| 3 | QT_MODULE = "qttools" | ||
| 4 | |||
| 5 | require qt5-native.inc | ||
| 6 | |||
| 7 | SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch" | ||
| 8 | |||
| 9 | do_configure() { | ||
| 10 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly | ||
| 11 | } | ||
| 12 | |||
| 13 | do_install() { | ||
| 14 | oe_runmake install INSTALL_ROOT=${D} | ||
| 15 | } | ||
diff --git a/recipes-qt/qt5/qttools-native_git.bb b/recipes-qt/qt5/qttools-native_git.bb index bbaafc52..219fc2e9 100644 --- a/recipes-qt/qt5/qttools-native_git.bb +++ b/recipes-qt/qt5/qttools-native_git.bb | |||
| @@ -1,9 +1,26 @@ | |||
| 1 | DEPENDS = "qtbase-native" | ||
| 2 | |||
| 3 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 4 | LIC_FILES_CHKSUM = " \ | ||
| 5 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 6 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 7 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 8 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 9 | " | ||
| 10 | |||
| 11 | QT_MODULE = "qttools" | ||
| 12 | |||
| 13 | require qt5-native.inc | ||
| 1 | require qt5-git.inc | 14 | require qt5-git.inc |
| 2 | require ${PN}.inc | ||
| 3 | 15 | ||
| 4 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | 16 | SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch" |
| 5 | 17 | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | 18 | do_configure() { |
| 7 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | 19 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly |
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | 20 | } |
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | 21 | |
| 22 | do_install() { | ||
| 23 | oe_runmake install INSTALL_ROOT=${D} | ||
| 24 | } | ||
| 25 | |||
| 26 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | ||
diff --git a/recipes-qt/qt5/qttools.inc b/recipes-qt/qt5/qttools.inc deleted file mode 100644 index 97717ae1..00000000 --- a/recipes-qt/qt5/qttools.inc +++ /dev/null | |||
| @@ -1,16 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns" | ||
| 4 | |||
| 5 | SRC_URI += " \ | ||
| 6 | file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \ | ||
| 7 | file://0003-add-noqtwebkit-configuration.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | FILES_${PN}-tools += "${datadir}/${QT_DIR_NAME}/phrasebooks" | ||
| 11 | FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples" | ||
| 12 | |||
| 13 | PACKAGECONFIG ??= "" | ||
| 14 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" | ||
| 15 | |||
| 16 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)}" | ||
diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb index bbaafc52..4ba2b8ad 100644 --- a/recipes-qt/qt5/qttools_git.bb +++ b/recipes-qt/qt5/qttools_git.bb | |||
| @@ -1,9 +1,27 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | ||
| 3 | 3 | ||
| 4 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" |
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | ||
| 7 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | " | ||
| 11 | |||
| 12 | DEPENDS += "qtbase qtdeclarative qtxmlpatterns" | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \ | ||
| 16 | file://0003-add-noqtwebkit-configuration.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | FILES_${PN}-tools += "${datadir}/${QT_DIR_NAME}/phrasebooks" | ||
| 20 | FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples" | ||
| 5 | 21 | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ | 22 | PACKAGECONFIG ??= "" |
| 7 | file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ | 23 | PACKAGECONFIG[qtwebkit] = ",,qtwebkit" |
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | 24 | |
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | 25 | EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)}" |
| 26 | |||
| 27 | SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" | ||
diff --git a/recipes-qt/qt5/qttranslations.inc b/recipes-qt/qt5/qttranslations.inc deleted file mode 100644 index 45f7609a..00000000 --- a/recipes-qt/qt5/qttranslations.inc +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qttools-native" | ||
| 4 | |||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 6 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 7 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6" | ||
| 8 | LICENSE = "(LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 9 | |||
| 10 | PACKAGES =. " \ | ||
| 11 | ${PN}-assistant \ | ||
| 12 | ${PN}-designer \ | ||
| 13 | ${PN}-linguist \ | ||
| 14 | ${PN}-qmlviewer \ | ||
| 15 | ${PN}-qtconnectivity \ | ||
| 16 | ${PN}-qtmultimedia \ | ||
| 17 | ${PN}-qtlocation \ | ||
| 18 | ${PN}-qtdeclarative \ | ||
| 19 | ${PN}-qtquickcontrols \ | ||
| 20 | ${PN}-qtxmlpatterns \ | ||
| 21 | ${PN}-qtconfig \ | ||
| 22 | ${PN}-qtquick1 \ | ||
| 23 | ${PN}-qtscript \ | ||
| 24 | ${PN}-qtbase \ | ||
| 25 | ${PN}-qthelp \ | ||
| 26 | ${PN}-qt \ | ||
| 27 | " | ||
| 28 | |||
| 29 | FILES_${PN}-assistant = " \ | ||
| 30 | ${OE_QMAKE_PATH_TRANSLATIONS}/assistant_*.qm \ | ||
| 31 | " | ||
| 32 | |||
| 33 | FILES_${PN}-designer = " \ | ||
| 34 | ${OE_QMAKE_PATH_TRANSLATIONS}/designer_*.qm \ | ||
| 35 | " | ||
| 36 | |||
| 37 | FILES_${PN}-linguist = " \ | ||
| 38 | ${OE_QMAKE_PATH_TRANSLATIONS}/linguist_*.qm \ | ||
| 39 | " | ||
| 40 | |||
| 41 | FILES_${PN}-qmlviewer = " \ | ||
| 42 | ${OE_QMAKE_PATH_TRANSLATIONS}/qmlviewer_*.qm \ | ||
| 43 | " | ||
| 44 | |||
| 45 | FILES_${PN}-qtconnectivity = " \ | ||
| 46 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtconnectivity_*.qm \ | ||
| 47 | " | ||
| 48 | |||
| 49 | FILES_${PN}-qtmultimedia = " \ | ||
| 50 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtmultimedia_*.qm \ | ||
| 51 | " | ||
| 52 | |||
| 53 | FILES_${PN}-qtlocation = " \ | ||
| 54 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtlocation_*.qm \ | ||
| 55 | " | ||
| 56 | |||
| 57 | FILES_${PN}-qtdeclarative = " \ | ||
| 58 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtdeclarative_*.qm \ | ||
| 59 | " | ||
| 60 | |||
| 61 | FILES_${PN}-qtquickcontrols = " \ | ||
| 62 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtquickcontrols_*.qm \ | ||
| 63 | " | ||
| 64 | |||
| 65 | FILES_${PN}-qtxmlpatterns = " \ | ||
| 66 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtxmlpatterns_*.qm \ | ||
| 67 | " | ||
| 68 | |||
| 69 | FILES_${PN}-qtconfig = " \ | ||
| 70 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtconfig_*.qm \ | ||
| 71 | " | ||
| 72 | |||
| 73 | FILES_${PN}-qtquick1 = " \ | ||
| 74 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtquick1_*.qm \ | ||
| 75 | " | ||
| 76 | |||
| 77 | FILES_${PN}-qtscript = " \ | ||
| 78 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtscript_*.qm \ | ||
| 79 | " | ||
| 80 | |||
| 81 | FILES_${PN}-qtbase = " \ | ||
| 82 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtbase_*.qm \ | ||
| 83 | " | ||
| 84 | |||
| 85 | FILES_${PN}-qthelp = " \ | ||
| 86 | ${OE_QMAKE_PATH_TRANSLATIONS}/qt_help_*.qm \ | ||
| 87 | " | ||
| 88 | |||
| 89 | FILES_${PN}-qt = " \ | ||
| 90 | ${OE_QMAKE_PATH_TRANSLATIONS}/qt_*.qm \ | ||
| 91 | " | ||
diff --git a/recipes-qt/qt5/qttranslations_git.bb b/recipes-qt/qt5/qttranslations_git.bb index a16b6fff..b5fd345a 100644 --- a/recipes-qt/qt5/qttranslations_git.bb +++ b/recipes-qt/qt5/qttranslations_git.bb | |||
| @@ -1,4 +1,96 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "(LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | " | ||
| 10 | |||
| 11 | DEPENDS += "qtbase qttools-native" | ||
| 12 | |||
| 13 | PACKAGES =. " \ | ||
| 14 | ${PN}-assistant \ | ||
| 15 | ${PN}-designer \ | ||
| 16 | ${PN}-linguist \ | ||
| 17 | ${PN}-qmlviewer \ | ||
| 18 | ${PN}-qtconnectivity \ | ||
| 19 | ${PN}-qtmultimedia \ | ||
| 20 | ${PN}-qtlocation \ | ||
| 21 | ${PN}-qtdeclarative \ | ||
| 22 | ${PN}-qtquickcontrols \ | ||
| 23 | ${PN}-qtxmlpatterns \ | ||
| 24 | ${PN}-qtconfig \ | ||
| 25 | ${PN}-qtquick1 \ | ||
| 26 | ${PN}-qtscript \ | ||
| 27 | ${PN}-qtbase \ | ||
| 28 | ${PN}-qthelp \ | ||
| 29 | ${PN}-qt \ | ||
| 30 | " | ||
| 31 | |||
| 32 | FILES_${PN}-assistant = " \ | ||
| 33 | ${OE_QMAKE_PATH_TRANSLATIONS}/assistant_*.qm \ | ||
| 34 | " | ||
| 35 | |||
| 36 | FILES_${PN}-designer = " \ | ||
| 37 | ${OE_QMAKE_PATH_TRANSLATIONS}/designer_*.qm \ | ||
| 38 | " | ||
| 39 | |||
| 40 | FILES_${PN}-linguist = " \ | ||
| 41 | ${OE_QMAKE_PATH_TRANSLATIONS}/linguist_*.qm \ | ||
| 42 | " | ||
| 43 | |||
| 44 | FILES_${PN}-qmlviewer = " \ | ||
| 45 | ${OE_QMAKE_PATH_TRANSLATIONS}/qmlviewer_*.qm \ | ||
| 46 | " | ||
| 47 | |||
| 48 | FILES_${PN}-qtconnectivity = " \ | ||
| 49 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtconnectivity_*.qm \ | ||
| 50 | " | ||
| 51 | |||
| 52 | FILES_${PN}-qtmultimedia = " \ | ||
| 53 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtmultimedia_*.qm \ | ||
| 54 | " | ||
| 55 | |||
| 56 | FILES_${PN}-qtlocation = " \ | ||
| 57 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtlocation_*.qm \ | ||
| 58 | " | ||
| 59 | |||
| 60 | FILES_${PN}-qtdeclarative = " \ | ||
| 61 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtdeclarative_*.qm \ | ||
| 62 | " | ||
| 63 | |||
| 64 | FILES_${PN}-qtquickcontrols = " \ | ||
| 65 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtquickcontrols_*.qm \ | ||
| 66 | " | ||
| 67 | |||
| 68 | FILES_${PN}-qtxmlpatterns = " \ | ||
| 69 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtxmlpatterns_*.qm \ | ||
| 70 | " | ||
| 71 | |||
| 72 | FILES_${PN}-qtconfig = " \ | ||
| 73 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtconfig_*.qm \ | ||
| 74 | " | ||
| 75 | |||
| 76 | FILES_${PN}-qtquick1 = " \ | ||
| 77 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtquick1_*.qm \ | ||
| 78 | " | ||
| 79 | |||
| 80 | FILES_${PN}-qtscript = " \ | ||
| 81 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtscript_*.qm \ | ||
| 82 | " | ||
| 83 | |||
| 84 | FILES_${PN}-qtbase = " \ | ||
| 85 | ${OE_QMAKE_PATH_TRANSLATIONS}/qtbase_*.qm \ | ||
| 86 | " | ||
| 87 | |||
| 88 | FILES_${PN}-qthelp = " \ | ||
| 89 | ${OE_QMAKE_PATH_TRANSLATIONS}/qt_help_*.qm \ | ||
| 90 | " | ||
| 91 | |||
| 92 | FILES_${PN}-qt = " \ | ||
| 93 | ${OE_QMAKE_PATH_TRANSLATIONS}/qt_*.qm \ | ||
| 94 | " | ||
| 3 | 95 | ||
| 4 | SRCREV = "1224b6890e0b0971e5eeea9f52d806f1890de0ed" | 96 | SRCREV = "1224b6890e0b0971e5eeea9f52d806f1890de0ed" |
diff --git a/recipes-qt/qt5/qtwayland-native.inc b/recipes-qt/qt5/qtwayland-native.inc deleted file mode 100644 index b6af19e8..00000000 --- a/recipes-qt/qt5/qtwayland-native.inc +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | require qt5-native.inc | ||
| 2 | |||
| 3 | QT_MODULE = "${BPN}" | ||
| 4 | |||
| 5 | DEPENDS = "qtbase-native wayland-native" | ||
| 6 | |||
| 7 | SRC_URI += " \ | ||
| 8 | file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \ | ||
| 9 | " | ||
| 10 | |||
| 11 | do_configure() { | ||
| 12 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S}/src/qtwaylandscanner | ||
| 13 | } | ||
| 14 | |||
| 15 | do_install() { | ||
| 16 | oe_runmake install INSTALL_ROOT=${D} | ||
| 17 | } | ||
| 18 | |||
| 19 | # There are no LGPLv3-only licensed files in this component. | ||
| 20 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 21 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 22 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 23 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 24 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qtwayland-native_git.bb b/recipes-qt/qt5/qtwayland-native_git.bb index 3be3e510..3ae35b4b 100644 --- a/recipes-qt/qt5/qtwayland-native_git.bb +++ b/recipes-qt/qt5/qtwayland-native_git.bb | |||
| @@ -1,4 +1,29 @@ | |||
| 1 | require qt5-native.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 8 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | QT_MODULE = "${BPN}" | ||
| 14 | |||
| 15 | DEPENDS = "qtbase-native wayland-native" | ||
| 16 | |||
| 17 | SRC_URI += " \ | ||
| 18 | file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \ | ||
| 19 | " | ||
| 20 | |||
| 21 | do_configure() { | ||
| 22 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S}/src/qtwaylandscanner | ||
| 23 | } | ||
| 24 | |||
| 25 | do_install() { | ||
| 26 | oe_runmake install INSTALL_ROOT=${D} | ||
| 27 | } | ||
| 3 | 28 | ||
| 4 | SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" | 29 | SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" |
diff --git a/recipes-qt/qt5/qtwayland.inc b/recipes-qt/qt5/qtwayland.inc deleted file mode 100644 index d126b04c..00000000 --- a/recipes-qt/qt5/qtwayland.inc +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # wayland-native is already in wayland DEPENDS, but add it here | ||
| 4 | # explicitly, because it's native wayland-scanner we're looking for | ||
| 5 | # libxkbcommon isn't mandatory make it easier to remove by .bbappend | ||
| 6 | # (e.g. for building qtwayland with danny which doesn't have libxkbcommon in oe-core). | ||
| 7 | XKB_DEPENDS = "libxkbcommon xproto" | ||
| 8 | DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_DEPENDS}" | ||
| 9 | |||
| 10 | QT_WAYLAND_CONFIG ?= "wayland-compositor" | ||
| 11 | QT_WAYLAND_DEFINES ?= "" | ||
| 12 | QT_WAYLAND_BUILD_PARTS ?= "examples" | ||
| 13 | |||
| 14 | EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}" | ||
| 15 | EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}" | ||
| 16 | EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=${QT_WAYLAND_BUILD_PARTS}" | ||
| 17 | |||
| 18 | FILES_${PN}-plugins += " \ | ||
| 19 | ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \ | ||
| 20 | " | ||
| 21 | |||
| 22 | FILES_${PN}-plugins-dbg += " \ | ||
| 23 | ${OE_QMAKE_PATH_PLUGINS}/*/*/.debug/* \ | ||
| 24 | " | ||
| 25 | |||
| 26 | # There are no LGPLv3-only licensed files in this component. | ||
| 27 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 28 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 29 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 30 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 31 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" | ||
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb index 93ef54aa..7f1388d0 100644 --- a/recipes-qt/qt5/qtwayland_git.bb +++ b/recipes-qt/qt5/qtwayland_git.bb | |||
| @@ -1,7 +1,37 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | ||
| 3 | 3 | ||
| 4 | SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" | 4 | # There are no LGPLv3-only licensed files in this component. |
| 5 | LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
| 8 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | # wayland-native is already in wayland DEPENDS, but add it here | ||
| 14 | # explicitly, because it's native wayland-scanner we're looking for | ||
| 15 | # libxkbcommon isn't mandatory make it easier to remove by .bbappend | ||
| 16 | # (e.g. for building qtwayland with danny which doesn't have libxkbcommon in oe-core). | ||
| 17 | XKB_DEPENDS = "libxkbcommon xproto" | ||
| 18 | DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_DEPENDS}" | ||
| 19 | |||
| 20 | QT_WAYLAND_CONFIG ?= "wayland-compositor" | ||
| 21 | QT_WAYLAND_DEFINES ?= "" | ||
| 22 | QT_WAYLAND_BUILD_PARTS ?= "examples" | ||
| 23 | |||
| 24 | EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}" | ||
| 25 | EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}" | ||
| 26 | EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=${QT_WAYLAND_BUILD_PARTS}" | ||
| 27 | |||
| 28 | FILES_${PN}-plugins += " \ | ||
| 29 | ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \ | ||
| 30 | " | ||
| 31 | |||
| 32 | FILES_${PN}-plugins-dbg += " \ | ||
| 33 | ${OE_QMAKE_PATH_PLUGINS}/*/*/.debug/* \ | ||
| 34 | " | ||
| 5 | 35 | ||
| 6 | SRC_URI += " \ | 36 | SRC_URI += " \ |
| 7 | file://0001-examples-wayland-include-server-buffer-only-when-bui.patch \ | 37 | file://0001-examples-wayland-include-server-buffer-only-when-bui.patch \ |
| @@ -14,3 +44,5 @@ do_install_append() { | |||
| 14 | install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/qwayland-server-*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private | 44 | install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/qwayland-server-*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private |
| 15 | install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/*protocol*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private | 45 | install ${B}/include/QtCompositor/${QT_VERSION}/QtCompositor/private/*protocol*.h ${D}${OE_QMAKE_PATH_QT_HEADERS}/QtCompositor/${QT_VERSION}/QtCompositor/private |
| 16 | } | 46 | } |
| 47 | |||
| 48 | SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" | ||
diff --git a/recipes-qt/qt5/qtwebchannel.inc b/recipes-qt/qt5/qtwebchannel.inc deleted file mode 100644 index f31a4b95..00000000 --- a/recipes-qt/qt5/qtwebchannel.inc +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtdeclarative qtwebsockets" | ||
| 4 | |||
| 5 | # There are no LGPLv3-only licensed files in this component. | ||
| 6 | # There are no GPLv2 licensed files in this component. | ||
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 8 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 9 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 10 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 11 | " | ||
diff --git a/recipes-qt/qt5/qtwebchannel_git.bb b/recipes-qt/qt5/qtwebchannel_git.bb index 30fcde8c..a8008837 100644 --- a/recipes-qt/qt5/qtwebchannel_git.bb +++ b/recipes-qt/qt5/qtwebchannel_git.bb | |||
| @@ -1,4 +1,16 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # There are no GPLv2 licensed files in this component. | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 9 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 10 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 11 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 12 | " | ||
| 13 | |||
| 14 | DEPENDS += "qtdeclarative qtwebsockets" | ||
| 3 | 15 | ||
| 4 | SRCREV = "358e5acba3154a8ab4b53b22797c2c1eae4707dc" | 16 | SRCREV = "358e5acba3154a8ab4b53b22797c2c1eae4707dc" |
diff --git a/recipes-qt/qt5/qtwebengine.inc b/recipes-qt/qt5/qtwebengine.inc deleted file mode 100644 index 4a5b0e8f..00000000 --- a/recipes-qt/qt5/qtwebengine.inc +++ /dev/null | |||
| @@ -1,69 +0,0 @@ | |||
| 1 | SUMMARY = "QtWebEngine combines the power of Chromium and Qt" | ||
| 2 | LICENSE = "LGPL-3.0 & BSD" | ||
| 3 | LIC_FILES_CHKSUM = " \ | ||
| 4 | file://src/core/browser_context_qt.cpp;md5=91895ac1852e1b07202d9716194e8dd8;beginline=1;endline=35 \ | ||
| 5 | file://src/3rdparty/chromium/LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5 \ | ||
| 6 | file://LICENSE.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ | ||
| 7 | " | ||
| 8 | DEPENDS += " \ | ||
| 9 | ninja-native \ | ||
| 10 | qtbase qtdeclarative qtxmlpatterns qtquickcontrols \ | ||
| 11 | libdrm fontconfig pixman openssl pango cairo icu pciutils \ | ||
| 12 | libcap \ | ||
| 13 | " | ||
| 14 | |||
| 15 | COMPATIBLE_MACHINE = "(-)" | ||
| 16 | COMPATIBLE_MACHINE_i586 = "(.*)" | ||
| 17 | COMPATIBLE_MACHINE_x86-64 = "(.*)" | ||
| 18 | COMPATIBLE_MACHINE_armv6 = "(.*)" | ||
| 19 | COMPATIBLE_MACHINE_armv7a = "(.*)" | ||
| 20 | |||
| 21 | inherit qmake5 | ||
| 22 | inherit gettext | ||
| 23 | inherit pythonnative | ||
| 24 | inherit perlnative | ||
| 25 | |||
| 26 | require recipes-qt/qt5/qt5.inc | ||
| 27 | |||
| 28 | # To avoid trouble start with not separated build directory | ||
| 29 | SEPB = "${S}" | ||
| 30 | B = "${SEPB}" | ||
| 31 | |||
| 32 | # Project ERROR: Missing CMake tests. Either create tests in tests/auto/cmake, or disable cmake config file creation with CONFIG-=create_cmake. | ||
| 33 | EXTRA_QMAKEVARS_POST += "CONFIG-=create_cmake" | ||
| 34 | |||
| 35 | export NINJA_PATH="${STAGING_BINDIR_NATIVE}/ninja" | ||
| 36 | |||
| 37 | do_configure() { | ||
| 38 | # replace LD with CXX, to workaround a possible gyp inheritssue? | ||
| 39 | export LD="${CXX}" | ||
| 40 | export CC="${CC}" | ||
| 41 | export CXX="${CXX}" | ||
| 42 | export CC_host="gcc" | ||
| 43 | export CXX_host="g++" | ||
| 44 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" | ||
| 45 | |||
| 46 | # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as | ||
| 47 | # arguments here | ||
| 48 | ${OE_QMAKE_QMAKE} -r ${EXTRA_QMAKEVARS_PRE} QTWEBENGINE_ROOT="${S}" \ | ||
| 49 | QMAKE_CXX="${OE_QMAKE_CXX}" QMAKE_CC="${OE_QMAKE_CC}" \ | ||
| 50 | QMAKE_LINK="${OE_QMAKE_LINK}" \ | ||
| 51 | QMAKE_CFLAGS="${OE_QMAKE_CFLAGS}" \ | ||
| 52 | QMAKE_CXXFLAGS="${OE_QMAKE_CXXFLAGS}" \ | ||
| 53 | QMAKE_AR="${OE_QMAKE_AR}" \ | ||
| 54 | -after ${EXTRA_QMAKEVARS_POST} | ||
| 55 | } | ||
| 56 | |||
| 57 | do_install_append() { | ||
| 58 | rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true | ||
| 59 | } | ||
| 60 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 61 | |||
| 62 | # for /usr/share/qt5/qtwebengine_resources.pak | ||
| 63 | FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}" | ||
| 64 | |||
| 65 | RDEPENDS_${PN}-examples += " \ | ||
| 66 | ${PN}-qmlplugins \ | ||
| 67 | qtquickcontrols-qmlplugins \ | ||
| 68 | qtdeclarative-qmlplugins \ | ||
| 69 | " | ||
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb index 81c53335..c14a556c 100644 --- a/recipes-qt/qt5/qtwebengine_git.bb +++ b/recipes-qt/qt5/qtwebengine_git.bb | |||
| @@ -1,5 +1,75 @@ | |||
| 1 | SUMMARY = "QtWebEngine combines the power of Chromium and Qt" | ||
| 2 | |||
| 3 | LICENSE = "LGPL-3.0 & BSD" | ||
| 4 | LIC_FILES_CHKSUM = " \ | ||
| 5 | file://src/core/browser_context_qt.cpp;md5=91895ac1852e1b07202d9716194e8dd8;beginline=1;endline=35 \ | ||
| 6 | file://src/3rdparty/chromium/LICENSE;md5=537e0b52077bf0a616d0a0c8a79bc9d5 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ | ||
| 8 | " | ||
| 9 | |||
| 10 | DEPENDS += " \ | ||
| 11 | ninja-native \ | ||
| 12 | qtbase qtdeclarative qtxmlpatterns qtquickcontrols \ | ||
| 13 | libdrm fontconfig pixman openssl pango cairo icu pciutils \ | ||
| 14 | libcap \ | ||
| 15 | " | ||
| 16 | |||
| 17 | COMPATIBLE_MACHINE = "(-)" | ||
| 18 | COMPATIBLE_MACHINE_i586 = "(.*)" | ||
| 19 | COMPATIBLE_MACHINE_x86-64 = "(.*)" | ||
| 20 | COMPATIBLE_MACHINE_armv6 = "(.*)" | ||
| 21 | COMPATIBLE_MACHINE_armv7a = "(.*)" | ||
| 22 | |||
| 23 | inherit qmake5 | ||
| 24 | inherit gettext | ||
| 25 | inherit pythonnative | ||
| 26 | inherit perlnative | ||
| 27 | |||
| 28 | require qt5.inc | ||
| 1 | require qt5-git.inc | 29 | require qt5-git.inc |
| 2 | require ${PN}.inc | 30 | |
| 31 | # To avoid trouble start with not separated build directory | ||
| 32 | SEPB = "${S}" | ||
| 33 | B = "${SEPB}" | ||
| 34 | |||
| 35 | # Project ERROR: Missing CMake tests. Either create tests in tests/auto/cmake, or disable cmake config file creation with CONFIG-=create_cmake. | ||
| 36 | EXTRA_QMAKEVARS_POST += "CONFIG-=create_cmake" | ||
| 37 | |||
| 38 | export NINJA_PATH="${STAGING_BINDIR_NATIVE}/ninja" | ||
| 39 | |||
| 40 | do_configure() { | ||
| 41 | # replace LD with CXX, to workaround a possible gyp inheritssue? | ||
| 42 | export LD="${CXX}" | ||
| 43 | export CC="${CC}" | ||
| 44 | export CXX="${CXX}" | ||
| 45 | export CC_host="gcc" | ||
| 46 | export CXX_host="g++" | ||
| 47 | export QMAKE_MAKE_ARGS="${EXTRA_OEMAKE}" | ||
| 48 | |||
| 49 | # qmake can't find the OE_QMAKE_* variables on it's own so directly passing them as | ||
| 50 | # arguments here | ||
| 51 | ${OE_QMAKE_QMAKE} -r ${EXTRA_QMAKEVARS_PRE} QTWEBENGINE_ROOT="${S}" \ | ||
| 52 | QMAKE_CXX="${OE_QMAKE_CXX}" QMAKE_CC="${OE_QMAKE_CC}" \ | ||
| 53 | QMAKE_LINK="${OE_QMAKE_LINK}" \ | ||
| 54 | QMAKE_CFLAGS="${OE_QMAKE_CFLAGS}" \ | ||
| 55 | QMAKE_CXXFLAGS="${OE_QMAKE_CXXFLAGS}" \ | ||
| 56 | QMAKE_AR="${OE_QMAKE_AR}" \ | ||
| 57 | -after ${EXTRA_QMAKEVARS_POST} | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install_append() { | ||
| 61 | rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true | ||
| 62 | } | ||
| 63 | PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" | ||
| 64 | |||
| 65 | # for /usr/share/qt5/qtwebengine_resources.pak | ||
| 66 | FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}" | ||
| 67 | |||
| 68 | RDEPENDS_${PN}-examples += " \ | ||
| 69 | ${PN}-qmlplugins \ | ||
| 70 | qtquickcontrols-qmlplugins \ | ||
| 71 | qtdeclarative-qmlplugins \ | ||
| 72 | " | ||
| 3 | 73 | ||
| 4 | QT_MODULE_BRANCH = "5.4" | 74 | QT_MODULE_BRANCH = "5.4" |
| 5 | QT_MODULE_BRANCH_CHROMIUM = "37.0.2062-based" | 75 | QT_MODULE_BRANCH_CHROMIUM = "37.0.2062-based" |
diff --git a/recipes-qt/qt5/qtwebkit-examples.inc b/recipes-qt/qt5/qtwebkit-examples.inc deleted file mode 100644 index 317fabb5..00000000 --- a/recipes-qt/qt5/qtwebkit-examples.inc +++ /dev/null | |||
| @@ -1,17 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # There are no LGPLv3-only licensed files in this component. | ||
| 4 | # There are no GPLv2 licensed files in this component. | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://examples/webkitwidgets/scroller/wheel/main.cpp;endline=112;md5=6f92d041824c63426993c8ce3ae0eb77 \ | ||
| 9 | file://examples/webkitwidgets/imageanalyzer/imageanalyzer.cpp;endline=223;md5=13ffb472fefe4bdf6464954a22251f35" | ||
| 10 | |||
| 11 | SRC_URI += " \ | ||
| 12 | file://0001-qtwebkit-examples-enable-building-examples-by-defaul.patch \ | ||
| 13 | " | ||
| 14 | |||
| 15 | DEPENDS += "qtwebkit" | ||
| 16 | RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins" | ||
| 17 | RDEPENDS_${PN}-examples += "${@base_contains('PACKAGECONFIG_OPENSSL', 'openssl', 'ca-certificates', '', d)}" | ||
diff --git a/recipes-qt/qt5/qtwebkit-examples_git.bb b/recipes-qt/qt5/qtwebkit-examples_git.bb index 7225ae52..7ae9fc78 100644 --- a/recipes-qt/qt5/qtwebkit-examples_git.bb +++ b/recipes-qt/qt5/qtwebkit-examples_git.bb | |||
| @@ -1,4 +1,23 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | # There are no GPLv2 licensed files in this component. | ||
| 6 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 9 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 10 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 11 | file://examples/webkitwidgets/scroller/wheel/main.cpp;endline=112;md5=6f92d041824c63426993c8ce3ae0eb77 \ | ||
| 12 | file://examples/webkitwidgets/imageanalyzer/imageanalyzer.cpp;endline=223;md5=13ffb472fefe4bdf6464954a22251f35 \ | ||
| 13 | " | ||
| 14 | |||
| 15 | SRC_URI += " \ | ||
| 16 | file://0001-qtwebkit-examples-enable-building-examples-by-defaul.patch \ | ||
| 17 | " | ||
| 18 | |||
| 19 | DEPENDS += "qtwebkit" | ||
| 20 | RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins" | ||
| 21 | RDEPENDS_${PN}-examples += "${@base_contains('PACKAGECONFIG_OPENSSL', 'openssl', 'ca-certificates', '', d)}" | ||
| 3 | 22 | ||
| 4 | SRCREV = "734663277730bc20dacf0a6b07427002a53cc107" | 23 | SRCREV = "734663277730bc20dacf0a6b07427002a53cc107" |
diff --git a/recipes-qt/qt5/qtwebkit.inc b/recipes-qt/qt5/qtwebkit.inc deleted file mode 100644 index 38f2b2b4..00000000 --- a/recipes-qt/qt5/qtwebkit.inc +++ /dev/null | |||
| @@ -1,61 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | LICENSE = "BSD & LGPLv2+ | GPL-2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 5 | file://Source/WebCore/rendering/RenderApplet.h;endline=22;md5=fb9694013ad71b78f8913af7a5959680 \ | ||
| 6 | file://Source/WebKit/gtk/webkit/webkit.h;endline=21;md5=b4fbe9f4a944f1d071dba1d2c76b3351 \ | ||
| 7 | file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee" | ||
| 8 | |||
| 9 | DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt leveldb" | ||
| 10 | |||
| 11 | # qemuarm build fails with: | ||
| 12 | # | {standard input}: Assembler messages: | ||
| 13 | # | {standard input}:106: Error: invalid immediate: 983040 is out of range | ||
| 14 | # | {standard input}:106: Error: value of 983040 too large for field of 2 bytes at 146 | ||
| 15 | ARM_INSTRUCTION_SET = "arm" | ||
| 16 | |||
| 17 | SRC_URI += "\ | ||
| 18 | file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ | ||
| 19 | file://0002-Remove-TEXTREL-tag-in-x86.patch \ | ||
| 20 | " | ||
| 21 | |||
| 22 | PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel" | ||
| 23 | PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base" | ||
| 24 | PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base" | ||
| 25 | PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation" | ||
| 26 | PACKAGECONFIG[qtmultimedia] = "OE_QTMULTIMEDIA_ENABLED,,qtmultimedia" | ||
| 27 | PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors" | ||
| 28 | PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel" | ||
| 29 | PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp" | ||
| 30 | |||
| 31 | do_configure_prepend() { | ||
| 32 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 33 | # disable gstreamer-1.0 test if it isn't enabled by PACKAGECONFIG | ||
| 34 | sed -e 's/\s\(packagesExist(".*\<gstreamer-1.0\>.*")\)/ OE_GSTREAMER_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 35 | # disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG | ||
| 36 | sed -e 's/\s\(packagesExist(".*\<gstreamer-0.10\>.*")\)/ OE_GSTREAMER010_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 37 | # disable qtlocation test if it isn't enabled by PACKAGECONFIG | ||
| 38 | sed -e 's/\s\(qtHaveModule(positioning)\)/ OE_QTLOCATION_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 39 | # disable qtmultimedia test if it isn't enabled by PACKAGECONFIG | ||
| 40 | sed -e 's/(video):\(qtHaveModule(multimediawidgets)\)/(video):OE_QTMULTIMEDIA_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 41 | # disable qtsensors test if it isn't enabled by PACKAGECONFIG | ||
| 42 | sed -e 's/\s\(qtHaveModule(sensors)\)/ OE_QTSENSORS_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 43 | # disable qtwebchannel test if it isn't enabled by PACKAGECONFIG | ||
| 44 | sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/Target.pri | ||
| 45 | sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/WebKit2.pri | ||
| 46 | # disable libwebp test if it isn't enabled by PACKAGECONFIG | ||
| 47 | sed -e 's/\s\(config_libwebp: \)/ OE_LIBWEBP_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 48 | } | ||
| 49 | |||
| 50 | # qtwebkit gets terribly big when linking with all debug info, disable by default | ||
| 51 | QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0" | ||
| 52 | EXTRA_QMAKEVARS_PRE += "${QTWEBKIT_DEBUG}" | ||
| 53 | |||
| 54 | # remove default ${PN}-examples-dbg ${PN}-examples set in qt5.inc, because it conflicts with ${PN} from separate webkit-examples recipe | ||
| 55 | PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN} ${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs " | ||
| 56 | |||
| 57 | # make sure rb files are used from sysroot, not from host | ||
| 58 | # ruby-1.9.3-always-use-i386.patch is doing target_cpu=`echo $target_cpu | sed s/i.86/i386/` | ||
| 59 | # we need to replace it too (a bit longer version without importing re) | ||
| 60 | RUBY_SYS = "${@ '${BUILD_SYS}'.replace('i486', 'i386').replace('i586', 'i386').replace('i686', 'i386') }" | ||
| 61 | export RUBYLIB="${STAGING_DATADIR_NATIVE}/rubygems:${STAGING_LIBDIR_NATIVE}/ruby:${STAGING_LIBDIR_NATIVE}/ruby/${RUBY_SYS}" | ||
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb index 3d391783..085f35d4 100644 --- a/recipes-qt/qt5/qtwebkit_git.bb +++ b/recipes-qt/qt5/qtwebkit_git.bb | |||
| @@ -1,4 +1,66 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "BSD & LGPLv2+ | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 7 | file://Source/WebCore/rendering/RenderApplet.h;endline=22;md5=fb9694013ad71b78f8913af7a5959680 \ | ||
| 8 | file://Source/WebKit/gtk/webkit/webkit.h;endline=21;md5=b4fbe9f4a944f1d071dba1d2c76b3351 \ | ||
| 9 | file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee \ | ||
| 10 | " | ||
| 11 | |||
| 12 | DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt leveldb" | ||
| 13 | |||
| 14 | # qemuarm build fails with: | ||
| 15 | # | {standard input}: Assembler messages: | ||
| 16 | # | {standard input}:106: Error: invalid immediate: 983040 is out of range | ||
| 17 | # | {standard input}:106: Error: value of 983040 too large for field of 2 bytes at 146 | ||
| 18 | ARM_INSTRUCTION_SET = "arm" | ||
| 19 | |||
| 20 | SRC_URI += "\ | ||
| 21 | file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ | ||
| 22 | file://0002-Remove-TEXTREL-tag-in-x86.patch \ | ||
| 23 | " | ||
| 24 | |||
| 25 | PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel" | ||
| 26 | PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base" | ||
| 27 | PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base" | ||
| 28 | PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation" | ||
| 29 | PACKAGECONFIG[qtmultimedia] = "OE_QTMULTIMEDIA_ENABLED,,qtmultimedia" | ||
| 30 | PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors" | ||
| 31 | PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel" | ||
| 32 | PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp" | ||
| 33 | |||
| 34 | do_configure_prepend() { | ||
| 35 | export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}" | ||
| 36 | # disable gstreamer-1.0 test if it isn't enabled by PACKAGECONFIG | ||
| 37 | sed -e 's/\s\(packagesExist(".*\<gstreamer-1.0\>.*")\)/ OE_GSTREAMER_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 38 | # disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG | ||
| 39 | sed -e 's/\s\(packagesExist(".*\<gstreamer-0.10\>.*")\)/ OE_GSTREAMER010_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 40 | # disable qtlocation test if it isn't enabled by PACKAGECONFIG | ||
| 41 | sed -e 's/\s\(qtHaveModule(positioning)\)/ OE_QTLOCATION_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 42 | # disable qtmultimedia test if it isn't enabled by PACKAGECONFIG | ||
| 43 | sed -e 's/(video):\(qtHaveModule(multimediawidgets)\)/(video):OE_QTMULTIMEDIA_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 44 | # disable qtsensors test if it isn't enabled by PACKAGECONFIG | ||
| 45 | sed -e 's/\s\(qtHaveModule(sensors)\)/ OE_QTSENSORS_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 46 | # disable qtwebchannel test if it isn't enabled by PACKAGECONFIG | ||
| 47 | sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/Target.pri | ||
| 48 | sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/WebKit2.pri | ||
| 49 | # disable libwebp test if it isn't enabled by PACKAGECONFIG | ||
| 50 | sed -e 's/\s\(config_libwebp: \)/ OE_LIBWEBP_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf | ||
| 51 | } | ||
| 52 | |||
| 53 | # qtwebkit gets terribly big when linking with all debug info, disable by default | ||
| 54 | QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0" | ||
| 55 | EXTRA_QMAKEVARS_PRE += "${QTWEBKIT_DEBUG}" | ||
| 56 | |||
| 57 | # remove default ${PN}-examples-dbg ${PN}-examples set in qt5.inc, because it conflicts with ${PN} from separate webkit-examples recipe | ||
| 58 | PACKAGES = "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN} ${PN}-qmlplugins-dbg ${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-qmlplugins ${PN}-tools ${PN}-plugins ${PN}-mkspecs " | ||
| 59 | |||
| 60 | # make sure rb files are used from sysroot, not from host | ||
| 61 | # ruby-1.9.3-always-use-i386.patch is doing target_cpu=`echo $target_cpu | sed s/i.86/i386/` | ||
| 62 | # we need to replace it too (a bit longer version without importing re) | ||
| 63 | RUBY_SYS = "${@ '${BUILD_SYS}'.replace('i486', 'i386').replace('i586', 'i386').replace('i686', 'i386') }" | ||
| 64 | export RUBYLIB="${STAGING_DATADIR_NATIVE}/rubygems:${STAGING_LIBDIR_NATIVE}/ruby:${STAGING_LIBDIR_NATIVE}/ruby/${RUBY_SYS}" | ||
| 3 | 65 | ||
| 4 | SRCREV = "738ad7e37c66f2afdbc7a77aff3ab7fa510361a2" | 66 | SRCREV = "738ad7e37c66f2afdbc7a77aff3ab7fa510361a2" |
diff --git a/recipes-qt/qt5/qtwebsockets.inc b/recipes-qt/qt5/qtwebsockets.inc deleted file mode 100644 index 5fb149a6..00000000 --- a/recipes-qt/qt5/qtwebsockets.inc +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase qtdeclarative" | ||
| 4 | |||
| 5 | LICENSE = "GFDL-1.3 & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c \ | ||
| 7 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 10 | " | ||
diff --git a/recipes-qt/qt5/qtwebsockets_git.bb b/recipes-qt/qt5/qtwebsockets_git.bb index 4c96e256..9cd69b15 100644 --- a/recipes-qt/qt5/qtwebsockets_git.bb +++ b/recipes-qt/qt5/qtwebsockets_git.bb | |||
| @@ -1,4 +1,14 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE;md5=4fbd65380cdd255951079008b364516c \ | ||
| 7 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 10 | " | ||
| 11 | |||
| 12 | DEPENDS += "qtbase qtdeclarative" | ||
| 3 | 13 | ||
| 4 | SRCREV = "5b469aa3c4d6b9c68feb9cf92d03614077518894" | 14 | SRCREV = "5b469aa3c4d6b9c68feb9cf92d03614077518894" |
diff --git a/recipes-qt/qt5/qtx11extras.inc b/recipes-qt/qt5/qtx11extras.inc deleted file mode 100644 index 40e1d5c3..00000000 --- a/recipes-qt/qt5/qtx11extras.inc +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | DEPENDS += "qtbase" | ||
| 4 | |||
| 5 | LICENSE += "| GPL-2.0" | ||
| 6 | LIC_FILES_CHKSUM += "file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed" | ||
diff --git a/recipes-qt/qt5/qtx11extras_git.bb b/recipes-qt/qt5/qtx11extras_git.bb index 63ccdcbd..d286570a 100644 --- a/recipes-qt/qt5/qtx11extras_git.bb +++ b/recipes-qt/qt5/qtx11extras_git.bb | |||
| @@ -1,4 +1,15 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = " \ | ||
| 6 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 7 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 9 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 10 | file://LICENSE.GPLv2;md5=e782f55badfa137e5e59c330f12cc8ed \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase" | ||
| 3 | 14 | ||
| 4 | SRCREV = "bcc86311359e138ecc3a8fc1ce6eee1cda2ec0f5" | 15 | SRCREV = "bcc86311359e138ecc3a8fc1ce6eee1cda2ec0f5" |
diff --git a/recipes-qt/qt5/qtxmlpatterns.inc b/recipes-qt/qt5/qtxmlpatterns.inc deleted file mode 100644 index ce2eee40..00000000 --- a/recipes-qt/qt5/qtxmlpatterns.inc +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | require qt5.inc | ||
| 2 | |||
| 3 | # There are no LGPLv3-only licensed files in this component. | ||
| 4 | DEPENDS += "qtbase" | ||
diff --git a/recipes-qt/qt5/qtxmlpatterns_git.bb b/recipes-qt/qt5/qtxmlpatterns_git.bb index 3bdbbdc3..8b58c5ad 100644 --- a/recipes-qt/qt5/qtxmlpatterns_git.bb +++ b/recipes-qt/qt5/qtxmlpatterns_git.bb | |||
| @@ -1,4 +1,15 @@ | |||
| 1 | require qt5.inc | ||
| 1 | require qt5-git.inc | 2 | require qt5-git.inc |
| 2 | require ${PN}.inc | 3 | |
| 4 | # There are no LGPLv3-only licensed files in this component. | ||
| 5 | LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)" | ||
| 6 | LIC_FILES_CHKSUM = " \ | ||
| 7 | file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \ | ||
| 8 | file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \ | ||
| 9 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
| 10 | file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ | ||
| 11 | " | ||
| 12 | |||
| 13 | DEPENDS += "qtbase" | ||
| 3 | 14 | ||
| 4 | SRCREV = "db784fb1c01ca2a0e7ada2c407cd1aab3aa98fee" | 15 | SRCREV = "db784fb1c01ca2a0e7ada2c407cd1aab3aa98fee" |
