summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2015-05-28 14:58:06 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2015-05-28 21:16:50 +0200
commit48ee17af942ac9860e834c8dec049370e7802a56 (patch)
tree004e47c94682eaa418c9e718c3264ca121732102 /recipes-qt/qt5
parent3208763b8b3f65b17825ded4b2c9b9166d78f2b2 (diff)
downloadmeta-qt5-48ee17af942ac9860e834c8dec049370e7802a56.tar.gz
qt5: merge .inc and _git.bb files
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase.inc272
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb258
-rw-r--r--recipes-qt/qt5/nativesdk-qttools.inc34
-rw-r--r--recipes-qt/qt5/nativesdk-qttools_git.bb48
-rw-r--r--recipes-qt/qt5/qt3d.inc16
-rw-r--r--recipes-qt/qt5/qt3d_git.bb18
-rw-r--r--recipes-qt/qt5/qt5-git.inc10
-rw-r--r--recipes-qt/qt5/qt5.inc1
-rw-r--r--recipes-qt/qt5/qtbase-native.inc109
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bb107
-rw-r--r--recipes-qt/qt5/qtbase.inc261
-rw-r--r--recipes-qt/qt5/qtbase_git.bb255
-rw-r--r--recipes-qt/qt5/qtconnectivity.inc15
-rw-r--r--recipes-qt/qt5/qtconnectivity_git.bb22
-rw-r--r--recipes-qt/qt5/qtdeclarative.inc20
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bb28
-rw-r--r--recipes-qt/qt5/qtenginio.inc8
-rw-r--r--recipes-qt/qt5/qtenginio_git.bb11
-rw-r--r--recipes-qt/qt5/qtgraphicaleffects.inc9
-rw-r--r--recipes-qt/qt5/qtgraphicaleffects_git.bb17
-rw-r--r--recipes-qt/qt5/qtimageformats.inc21
-rw-r--r--recipes-qt/qt5/qtimageformats_git.bb28
-rw-r--r--recipes-qt/qt5/qtlocation.inc23
-rw-r--r--recipes-qt/qt5/qtlocation_git.bb30
-rw-r--r--recipes-qt/qt5/qtmultimedia.inc27
-rw-r--r--recipes-qt/qt5/qtmultimedia_git.bb35
-rw-r--r--recipes-qt/qt5/qtquick1.inc9
-rw-r--r--recipes-qt/qt5/qtquick1_git.bb17
-rw-r--r--recipes-qt/qt5/qtquickcontrols.inc8
-rw-r--r--recipes-qt/qt5/qtquickcontrols_git.bb15
-rw-r--r--recipes-qt/qt5/qtscript.inc17
-rw-r--r--recipes-qt/qt5/qtscript_git.bb26
-rw-r--r--recipes-qt/qt5/qtsensors.inc7
-rw-r--r--recipes-qt/qt5/qtsensors_git.bb15
-rw-r--r--recipes-qt/qt5/qtserialport.inc15
-rw-r--r--recipes-qt/qt5/qtserialport_git.bb19
-rw-r--r--recipes-qt/qt5/qtsvg.inc4
-rw-r--r--recipes-qt/qt5/qtsvg_git.bb13
-rw-r--r--recipes-qt/qt5/qtsystems.inc23
-rw-r--r--recipes-qt/qt5/qtsystems_git.bb26
-rw-r--r--recipes-qt/qt5/qttools-native.inc15
-rw-r--r--recipes-qt/qt5/qttools-native_git.bb29
-rw-r--r--recipes-qt/qt5/qttools.inc16
-rw-r--r--recipes-qt/qt5/qttools_git.bb30
-rw-r--r--recipes-qt/qt5/qttranslations.inc91
-rw-r--r--recipes-qt/qt5/qttranslations_git.bb94
-rw-r--r--recipes-qt/qt5/qtwayland-native.inc24
-rw-r--r--recipes-qt/qt5/qtwayland-native_git.bb27
-rw-r--r--recipes-qt/qt5/qtwayland.inc31
-rw-r--r--recipes-qt/qt5/qtwayland_git.bb36
-rw-r--r--recipes-qt/qt5/qtwebchannel.inc11
-rw-r--r--recipes-qt/qt5/qtwebchannel_git.bb14
-rw-r--r--recipes-qt/qt5/qtwebengine.inc69
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb72
-rw-r--r--recipes-qt/qt5/qtwebkit-examples.inc17
-rw-r--r--recipes-qt/qt5/qtwebkit-examples_git.bb21
-rw-r--r--recipes-qt/qt5/qtwebkit.inc61
-rw-r--r--recipes-qt/qt5/qtwebkit_git.bb64
-rw-r--r--recipes-qt/qt5/qtwebsockets.inc10
-rw-r--r--recipes-qt/qt5/qtwebsockets_git.bb12
-rw-r--r--recipes-qt/qt5/qtx11extras.inc6
-rw-r--r--recipes-qt/qt5/qtx11extras_git.bb13
-rw-r--r--recipes-qt/qt5/qtxmlpatterns.inc4
-rw-r--r--recipes-qt/qt5/qtxmlpatterns_git.bb13
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 @@
1DESCRIPTION = "SDK version of Qt/[X11|Mac|Embedded]"
2DEPENDS = "nativesdk-zlib nativesdk-dbus qtbase-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt-project.org"
5
6QT_MODULE = "qtbase"
7
8require nativesdk-qt5.inc
9
10# it's already included with newer oe-core, but include it here for dylan
11FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
12
13# common for qtbase-native, qtbase-nativesdk and qtbase
14SRC_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
28SRC_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
34SRC_URI += " \
35 file://0013-configure-preserve-built-qmake-and-swap-with-native-.patch \
36"
37
38# CMake's toolchain configuration of nativesdk-qtbase
39SRC_URI += " \
40 file://OEQt5Toolchain.cmake \
41"
42
43PACKAGES = "${PN}-tools-dbg ${PN}-tools-dev ${PN}-tools-staticdev ${PN}-tools"
44
45PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
46
47FILES_${PN}-tools-dev = " \
48 ${includedir} \
49 ${FILES_SOLIBSDEV} ${libdir}/*.la \
50 ${OE_QMAKE_PATH_ARCHDATA}/mkspecs \
51"
52
53FILES_${PN}-tools-staticdev = " \
54 ${libdir}/libQt5Bootstrap.a \
55"
56
57FILES_${PN}-tools-dbg = " \
58 ${libdir}/.debug \
59 ${OE_QMAKE_PATH_BINS}/.debug \
60"
61
62FILES_${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.
73DEBIAN_NOAUTONAME_${PN}-tools = "1"
74
75QT_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
85OE_QMAKE_PATH_HOST_DATA = "${libdir}/${QT_DIR_NAME}"
86OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
87
88do_generate_qt_config_file() {
89 cat > ${QT_CONF_PATH} <<EOF
90[Paths]
91Prefix = ${OE_QMAKE_PATH_PREFIX}
92Headers = ${OE_QMAKE_PATH_HEADERS}
93Libraries = ${OE_QMAKE_PATH_LIBS}
94ArchData = ${OE_QMAKE_PATH_ARCHDATA}
95Data = ${OE_QMAKE_PATH_DATA}
96Binaries = ${OE_QMAKE_PATH_BINS}
97LibraryExecutables = ${OE_QMAKE_PATH_LIBEXECS}
98Plugins = ${OE_QMAKE_PATH_PLUGINS}
99Imports = ${OE_QMAKE_PATH_IMPORTS}
100Qml2Imports = ${OE_QMAKE_PATH_QML}
101Translations = ${OE_QMAKE_PATH_TRANSLATIONS}
102Documentation = ${OE_QMAKE_PATH_DOCS}
103Settings = ${OE_QMAKE_PATH_SETTINGS}
104Examples = ${OE_QMAKE_PATH_EXAMPLES}
105Tests = ${OE_QMAKE_PATH_TESTS}
106HostBinaries = ${OE_QMAKE_PATH_HOST_BINS}
107HostData = ${OE_QMAKE_PATH_HOST_DATA}
108HostLibraries = ${OE_QMAKE_PATH_HOST_LIBS}
109HostSpec = ${OE_QMAKESPEC}
110TartgetSpec = ${OE_XQMAKESPEC}
111ExternalHostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}
112Sysroot =
113EOF
114}
115
116do_generate_qt_config_file_append() {
117 cat >> ${QT_CONF_PATH} <<EOF
118
119[EffectivePaths]
120Prefix=..
121EOF
122}
123
124# qtbase is exception, we need to use mkspecs from ${S}
125QMAKE_MKSPEC_PATH = "${B}"
126
127# qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell
128export OE_QMAKE_COMPILER
129export OE_QMAKE_CC
130export OE_QMAKE_CFLAGS
131export OE_QMAKE_CXX
132export OE_QMAKE_CXXFLAGS
133export OE_QMAKE_LINK
134export OE_QMAKE_LDFLAGS
135export OE_QMAKE_AR
136export OE_QMAKE_STRIP
137
138# another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location
139OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake"
140OE_QMAKE_QMAKE = "bin/qmake"
141
142do_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.*
204EXTRA_QTLIB ?= ""
205
206python __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
213do_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
244do_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
272addtask 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 @@
1require qt5-git.inc 1DESCRIPTION = "SDK version of Qt/[X11|Mac|Embedded]"
2require ${PN}.inc 2DEPENDS = "nativesdk-zlib nativesdk-dbus qtbase-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt-project.org"
3 5
4SRC_URI = "\ 6LICENSE = "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} \ 7LIC_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
14QT_MODULE = "qtbase"
15
16require nativesdk-qt5.inc
17require qt5-git.inc
18
19# it's already included with newer oe-core, but include it here for dylan
20FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
21
8# common for qtbase-native, qtbase-nativesdk and qtbase 22# common for qtbase-native, qtbase-nativesdk and qtbase
9SRC_URI += "\ 23SRC_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
38SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" 52PACKAGES = "${PN}-tools-dbg ${PN}-tools-dev ${PN}-tools-staticdev ${PN}-tools"
53
54PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
55
56FILES_${PN}-tools-dev = " \
57 ${includedir} \
58 ${FILES_SOLIBSDEV} ${libdir}/*.la \
59 ${OE_QMAKE_PATH_ARCHDATA}/mkspecs \
60"
61
62FILES_${PN}-tools-staticdev = " \
63 ${libdir}/libQt5Bootstrap.a \
64"
65
66FILES_${PN}-tools-dbg = " \
67 ${libdir}/.debug \
68 ${OE_QMAKE_PATH_BINS}/.debug \
69"
70
71FILES_${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.
82DEBIAN_NOAUTONAME_${PN}-tools = "1"
83
84QT_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
94OE_QMAKE_PATH_HOST_DATA = "${libdir}/${QT_DIR_NAME}"
95OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
96
97do_generate_qt_config_file() {
98 cat > ${QT_CONF_PATH} <<EOF
99[Paths]
100Prefix = ${OE_QMAKE_PATH_PREFIX}
101Headers = ${OE_QMAKE_PATH_HEADERS}
102Libraries = ${OE_QMAKE_PATH_LIBS}
103ArchData = ${OE_QMAKE_PATH_ARCHDATA}
104Data = ${OE_QMAKE_PATH_DATA}
105Binaries = ${OE_QMAKE_PATH_BINS}
106LibraryExecutables = ${OE_QMAKE_PATH_LIBEXECS}
107Plugins = ${OE_QMAKE_PATH_PLUGINS}
108Imports = ${OE_QMAKE_PATH_IMPORTS}
109Qml2Imports = ${OE_QMAKE_PATH_QML}
110Translations = ${OE_QMAKE_PATH_TRANSLATIONS}
111Documentation = ${OE_QMAKE_PATH_DOCS}
112Settings = ${OE_QMAKE_PATH_SETTINGS}
113Examples = ${OE_QMAKE_PATH_EXAMPLES}
114Tests = ${OE_QMAKE_PATH_TESTS}
115HostBinaries = ${OE_QMAKE_PATH_HOST_BINS}
116HostData = ${OE_QMAKE_PATH_HOST_DATA}
117HostLibraries = ${OE_QMAKE_PATH_HOST_LIBS}
118HostSpec = ${OE_QMAKESPEC}
119TartgetSpec = ${OE_XQMAKESPEC}
120ExternalHostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}
121Sysroot =
122EOF
123}
124
125do_generate_qt_config_file_append() {
126 cat >> ${QT_CONF_PATH} <<EOF
39 127
40LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ 128[EffectivePaths]
41 file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ 129Prefix=..
42 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ 130EOF
43 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" 131}
132
133# qtbase is exception, we need to use mkspecs from ${S}
134QMAKE_MKSPEC_PATH = "${B}"
135
136# qtbase is exception, configure script is using our get(X)QEvalMakeConf and setBootstrapEvalVariable functions to read it from shell
137export OE_QMAKE_COMPILER
138export OE_QMAKE_CC
139export OE_QMAKE_CFLAGS
140export OE_QMAKE_CXX
141export OE_QMAKE_CXXFLAGS
142export OE_QMAKE_LINK
143export OE_QMAKE_LDFLAGS
144export OE_QMAKE_AR
145export OE_QMAKE_STRIP
146
147# another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location
148OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake"
149OE_QMAKE_QMAKE = "bin/qmake"
150
151do_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.*
213EXTRA_QTLIB ?= ""
214
215python __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
222do_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
253do_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
281addtask generate_qt_environment_file after do_install before do_package
282
283SRCREV = "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 @@
1DEPENDS = "nativesdk-qtbase qtbase-native"
2
3QT_MODULE = "qttools"
4
5require nativesdk-qt5.inc
6
7# it's already included with newer oe-core, but include it here for dylan
8FILESEXTRAPATHS =. "${FILE_DIRNAME}/qttools:"
9
10SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
11
12PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
13
14FILES_${PN}-dbg = " \
15 ${OE_QMAKE_PATH_BINS}/.debug \
16"
17
18FILES_${PN} = " \
19 ${OE_QMAKE_PATH_BINS}/* \
20"
21
22do_configure() {
23 ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly
24}
25
26do_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 @@
1LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
2LIC_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
9QT_MODULE = "qttools"
10
11DEPENDS = "nativesdk-qtbase qtbase-native"
12
13require nativesdk-qt5.inc
1require qt5-git.inc 14require qt5-git.inc
2require ${PN}.inc
3 15
4SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" 16# it's already included with newer oe-core, but include it here for dylan
17FILESEXTRAPATHS =. "${FILE_DIRNAME}/qttools:"
18
19SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
20
21PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
22
23FILES_${PN}-dbg = " \
24 ${OE_QMAKE_PATH_BINS}/.debug \
25"
5 26
6LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ 27FILES_${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
31do_configure() {
32 ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly
33}
34
35do_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
45SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtdeclarative"
4
5LICENSE = "GFDL-1.3 & LGPL-2.1 & DIGIA-TPLA-2.4 | GPL-3.0"
6LIC_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
13FILES_${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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & LGPL-2.1 & DIGIA-TPLA-2.4 | GPL-3.0"
5LIC_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
13DEPENDS = "nativesdk-qtbase qtbase-native qtdeclarative"
14
15FILES_${PN}-qmlplugins += " \
16 ${OE_QMAKE_PATH_QML}/*/*/*.bez \
17 ${OE_QMAKE_PATH_QML}/*/*/*.obj \
18"
3 19
4QT_MODULE_BRANCH = "dev" 20QT_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 @@
4QT_MODULE_BRANCH ?= "5.4" 4QT_MODULE_BRANCH ?= "5.4"
5 5
6# each module needs to define valid SRCREV 6# each module needs to define valid SRCREV
7SRC_URI += " \ 7SRC_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
11S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
12 12
13PV = "5.4.1+git${SRCPV}" 13PV = "5.4.1+git${SRCPV}"
14
15DEFAULT_PREFERENCE = "-1"
16
17LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
18LIC_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
38do_configure_prepend() { 37do_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 @@
1DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]"
2DEPENDS = "zlib-native dbus-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt-project.org"
5
6QT_MODULE = "qtbase"
7
8require qt5-native.inc
9
10# common for qtbase-native, qtbase-nativesdk and qtbase
11SRC_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
25SRC_URI += " \
26 file://0011-Always-build-uic.patch \
27 file://0012-Add-external-hostbindir-option-for-native-sdk.patch \
28"
29
30CLEANBROKEN = "1"
31
32QT_CONF_PATH = "${B}/qt.conf"
33
34do_generate_qt_config_file() {
35 :
36}
37
38EXTRA_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
77export OE_QMAKE_COMPILER
78export OE_QMAKE_CC
79export OE_QMAKE_CFLAGS
80export OE_QMAKE_CXX
81export OE_QMAKE_CXXFLAGS
82export OE_QMAKE_LINK
83export OE_QMAKE_LDFLAGS
84export OE_QMAKE_AR
85export OE_QMAKE_STRIP
86
87do_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
92do_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 @@
1require qt5-git.inc 1DESCRIPTION = "Native version of Qt/[X11|Mac|Embedded]"
2require ${PN}.inc 2DEPENDS = "zlib-native dbus-native"
3 3SECTION = "libs"
4SRC_URI = "\ 4HOMEPAGE = "http://qt-project.org"
5 ${QT_GIT}/qt/${QT_MODULE}.git;branch=${QT_MODULE_BRANCH} \ 5LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13QT_MODULE = "qtbase"
14
15require qt5-native.inc
16require qt5-git.inc
17
8# common for qtbase-native, qtbase-nativesdk and qtbase 18# common for qtbase-native, qtbase-nativesdk and qtbase
9SRC_URI += "\ 19SRC_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
28do_install_append() { 38
39CLEANBROKEN = "1"
40
41QT_CONF_PATH = "${B}/qt.conf"
42
43do_generate_qt_config_file() {
44 :
45}
46
47EXTRA_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
86export OE_QMAKE_COMPILER
87export OE_QMAKE_CC
88export OE_QMAKE_CFLAGS
89export OE_QMAKE_CXX
90export OE_QMAKE_CXXFLAGS
91export OE_QMAKE_LINK
92export OE_QMAKE_LDFLAGS
93export OE_QMAKE_AR
94export OE_QMAKE_STRIP
95
96do_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
101do_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
34SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" 124SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60"
35
36LIC_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 @@
1require qt5.inc
2
3# common for qtbase-native, qtbase-nativesdk and qtbase
4SRC_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
18SRC_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
23DEPENDS += "qtbase-native"
24
25# LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
26
27# for syncqt
28RDEPENDS_${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
35PACKAGECONFIG_GL ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
36PACKAGECONFIG_FB ?= "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
37PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle xkb', '', d)}"
38PACKAGECONFIG_FONTS ?= ""
39PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
40PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
41PACKAGECONFIG_DISTRO ?= ""
42# Either release or debug, can be overridden in bbappends
43PACKAGECONFIG_RELEASE ?= "release"
44# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
45# PACKAGECONFIG_OPENSSL ?= "openssl"
46PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs"
47
48PACKAGECONFIG ?= " \
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
61PACKAGECONFIG[release] = "-release,-debug"
62PACKAGECONFIG[developer] = "-developer-build"
63PACKAGECONFIG[sm] = "-sm,-no-sm"
64PACKAGECONFIG[tests] = "-make tests,-nomake tests"
65PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples"
66PACKAGECONFIG[tools] = "-make tools,-nomake tools"
67# only for completeness, configure will add libs even if you try to explicitly remove it
68PACKAGECONFIG[libs] = "-make libs,-nomake libs"
69# accessibility is required to compile qtquickcontrols
70PACKAGECONFIG[accessibility] = "-accessibility,-no-accessibility"
71PACKAGECONFIG[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
75PACKAGECONFIG[freetype] = "-system-freetype,-freetype,freetype"
76PACKAGECONFIG[jpeg] = "-system-libjpeg,-no-libjpeg,jpeg"
77PACKAGECONFIG[libpng] = "-system-libpng,-no-libpng,libpng"
78PACKAGECONFIG[zlib] = "-system-zlib,-qt-zlib,zlib"
79PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre"
80PACKAGECONFIG[gl] = "-opengl desktop -no-eglfs,,virtual/libgl"
81PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl"
82PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib"
83PACKAGECONFIG[cups] = "-cups,-no-cups,cups"
84PACKAGECONFIG[dbus] = "-dbus,-no-dbus,dbus"
85PACKAGECONFIG[xcb] = "-xcb -xcb-xlib -system-xcb,-no-xcb,libxcb xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil"
86PACKAGECONFIG[sql-ibase] = "-sql-ibase,-no-sql-ibase"
87PACKAGECONFIG[sql-mysql] = "-sql-mysql,-no-sql-mysql,mysql5"
88PACKAGECONFIG[sql-psql] = "-sql-psql,-no-sql-psql,postgresql"
89PACKAGECONFIG[sql-odbc] = "-sql-odbc,-no-sql-odbc"
90PACKAGECONFIG[sql-oci] = "-sql-oci,-no-sql-oci"
91PACKAGECONFIG[sql-tds] = "-sql-tds,-no-sql-tds"
92PACKAGECONFIG[sql-db2] = "-sql-db2,-no-sql-db2"
93PACKAGECONFIG[sql-sqlite2] = "-sql-sqlite2,-no-sql-sqlite2,sqlite"
94PACKAGECONFIG[sql-sqlite] = "-sql-sqlite,-no-sql-sqlite,sqlite3"
95PACKAGECONFIG[xcursor] = "-xcursor,-no-xcursor,libxcursor"
96PACKAGECONFIG[xinerama] = "-xinerama,-no-xinerama,libxinerama"
97PACKAGECONFIG[xinput] = "-xinput,-no-xinput"
98PACKAGECONFIG[xinput2] = "-xinput2,-no-xinput2,libxi"
99PACKAGECONFIG[xfixes] = "-xfixes,-no-xfixes,libxfixes"
100PACKAGECONFIG[xrandr] = "-xrandr,-no-xrandr,libxrandr"
101PACKAGECONFIG[xrender] = "-xrender,-no-xrender,libxrender"
102PACKAGECONFIG[xshape] = "-xshape,-no-xshape"
103PACKAGECONFIG[xsync] = "-xsync,-no-xsync"
104PACKAGECONFIG[xvideo] = "-xvideo,-no-xvideo"
105PACKAGECONFIG[openvg] = "-openvg,-no-openvg"
106PACKAGECONFIG[iconv] = "-iconv,-no-iconv,virtual/libiconv"
107PACKAGECONFIG[xkb] = "-xkb,-no-xkb -no-xkbcommon,libxkbcommon"
108PACKAGECONFIG[evdev] = "-evdev,-no-evdev"
109PACKAGECONFIG[mtdev] = "-mtdev,-no-mtdev,mtdev"
110# depends on glib
111PACKAGECONFIG[fontconfig] = "-fontconfig,-no-fontconfig,fontconfig"
112PACKAGECONFIG[gtkstyle] = "-gtkstyle,-no-gtkstyle,gtk+"
113PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb"
114PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb"
115PACKAGECONFIG[mitshm] = "-mitshm,-no-mitshm,mitshm"
116PACKAGECONFIG[kms] = "-kms,-no-kms,virtual/mesa virtual/egl"
117# needed for qtwebkit
118PACKAGECONFIG[icu] = "-icu,-no-icu,icu"
119PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev"
120# use -openssl-linked here to ensure that RDEPENDS for libcrypto and libssl are detected
121PACKAGECONFIG[openssl] = "-openssl-linked,-no-openssl,openssl"
122PACKAGECONFIG[alsa] = "-alsa,-no-alsa,alsa-lib"
123PACKAGECONFIG[pulseaudio] = "-pulseaudio,-no-pulseaudio,pulseaudio"
124PACKAGECONFIG[nis] = "-nis,-no-nis"
125PACKAGECONFIG[widgets] = "-widgets,-no-widgets"
126
127QT_CONFIG_FLAGS += " \
128 -shared \
129 -silent \
130 -no-pch \
131 -no-rpath \
132 -pkg-config \
133 ${EXTRA_OECONF} \
134"
135
136do_generate_qt_config_file_append() {
137 cat >> ${QT_CONF_PATH} <<EOF
138
139[EffectivePaths]
140Prefix=..
141EOF
142}
143
144# qtbase is exception, we need to use mkspecs from ${S}
145QMAKE_MKSPEC_PATH = "${B}"
146
147# another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location
148OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake"
149OE_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
152export OE_QMAKE_COMPILER
153export OE_QMAKE_CC
154export OE_QMAKE_CFLAGS
155export OE_QMAKE_CXX
156export OE_QMAKE_CXXFLAGS
157export OE_QMAKE_LINK
158export OE_QMAKE_LDFLAGS
159export OE_QMAKE_AR
160export OE_QMAKE_STRIP
161
162do_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
199do_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
212do_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
231PACKAGES =. " \
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
240RRECOMMENDS_${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
248ALLOW_EMPTY_${PN}-fonts = "1"
249
250FILES_${PN}-fonts-ttf-vera = "${OE_QMAKE_PATH_LIBS}/fonts/Vera*.ttf"
251FILES_${PN}-fonts-ttf-dejavu = "${OE_QMAKE_PATH_LIBS}/fonts/DejaVu*.ttf"
252FILES_${PN}-fonts-pfa = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfa"
253FILES_${PN}-fonts-pfb = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfb"
254FILES_${PN}-fonts-qpf = "${OE_QMAKE_PATH_LIBS}/fonts/*.qpf*"
255FILES_${PN}-fonts = "${OE_QMAKE_PATH_LIBS}/fonts/README \
256 ${OE_QMAKE_PATH_LIBS}/fonts/fontdir"
257
258sysroot_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc
3 3
4SRC_URI = "\ 4LICENSE = "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} \ 5LIC_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
28SRCREV = "f58e882b7594c59b6050d3c87562fcf836d10f60" 32DEPENDS += "qtbase-native"
33
34# LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
35
36# for syncqt
37RDEPENDS_${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
44PACKAGECONFIG_GL ?= "${@base_contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
45PACKAGECONFIG_FB ?= "${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
46PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsync xshape xrender xrandr xfixes xinput2 xinput xinerama xcursor gtkstyle xkb', '', d)}"
47PACKAGECONFIG_FONTS ?= ""
48PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
49PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
50PACKAGECONFIG_DISTRO ?= ""
51# Either release or debug, can be overridden in bbappends
52PACKAGECONFIG_RELEASE ?= "release"
53# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
54# PACKAGECONFIG_OPENSSL ?= "openssl"
55PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs"
56
57PACKAGECONFIG ?= " \
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
70PACKAGECONFIG[release] = "-release,-debug"
71PACKAGECONFIG[developer] = "-developer-build"
72PACKAGECONFIG[sm] = "-sm,-no-sm"
73PACKAGECONFIG[tests] = "-make tests,-nomake tests"
74PACKAGECONFIG[examples] = "-make examples -compile-examples,-nomake examples"
75PACKAGECONFIG[tools] = "-make tools,-nomake tools"
76# only for completeness, configure will add libs even if you try to explicitly remove it
77PACKAGECONFIG[libs] = "-make libs,-nomake libs"
78# accessibility is required to compile qtquickcontrols
79PACKAGECONFIG[accessibility] = "-accessibility,-no-accessibility"
80PACKAGECONFIG[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
84PACKAGECONFIG[freetype] = "-system-freetype,-freetype,freetype"
85PACKAGECONFIG[jpeg] = "-system-libjpeg,-no-libjpeg,jpeg"
86PACKAGECONFIG[libpng] = "-system-libpng,-no-libpng,libpng"
87PACKAGECONFIG[zlib] = "-system-zlib,-qt-zlib,zlib"
88PACKAGECONFIG[pcre] = "-system-pcre,-qt-pcre,pcre"
89PACKAGECONFIG[gl] = "-opengl desktop -no-eglfs,,virtual/libgl"
90PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2 virtual/egl"
91PACKAGECONFIG[tslib] = "-tslib,-no-tslib,tslib"
92PACKAGECONFIG[cups] = "-cups,-no-cups,cups"
93PACKAGECONFIG[dbus] = "-dbus,-no-dbus,dbus"
94PACKAGECONFIG[xcb] = "-xcb -xcb-xlib -system-xcb,-no-xcb,libxcb xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil"
95PACKAGECONFIG[sql-ibase] = "-sql-ibase,-no-sql-ibase"
96PACKAGECONFIG[sql-mysql] = "-sql-mysql,-no-sql-mysql,mysql5"
97PACKAGECONFIG[sql-psql] = "-sql-psql,-no-sql-psql,postgresql"
98PACKAGECONFIG[sql-odbc] = "-sql-odbc,-no-sql-odbc"
99PACKAGECONFIG[sql-oci] = "-sql-oci,-no-sql-oci"
100PACKAGECONFIG[sql-tds] = "-sql-tds,-no-sql-tds"
101PACKAGECONFIG[sql-db2] = "-sql-db2,-no-sql-db2"
102PACKAGECONFIG[sql-sqlite2] = "-sql-sqlite2,-no-sql-sqlite2,sqlite"
103PACKAGECONFIG[sql-sqlite] = "-sql-sqlite,-no-sql-sqlite,sqlite3"
104PACKAGECONFIG[xcursor] = "-xcursor,-no-xcursor,libxcursor"
105PACKAGECONFIG[xinerama] = "-xinerama,-no-xinerama,libxinerama"
106PACKAGECONFIG[xinput] = "-xinput,-no-xinput"
107PACKAGECONFIG[xinput2] = "-xinput2,-no-xinput2,libxi"
108PACKAGECONFIG[xfixes] = "-xfixes,-no-xfixes,libxfixes"
109PACKAGECONFIG[xrandr] = "-xrandr,-no-xrandr,libxrandr"
110PACKAGECONFIG[xrender] = "-xrender,-no-xrender,libxrender"
111PACKAGECONFIG[xshape] = "-xshape,-no-xshape"
112PACKAGECONFIG[xsync] = "-xsync,-no-xsync"
113PACKAGECONFIG[xvideo] = "-xvideo,-no-xvideo"
114PACKAGECONFIG[openvg] = "-openvg,-no-openvg"
115PACKAGECONFIG[iconv] = "-iconv,-no-iconv,virtual/libiconv"
116PACKAGECONFIG[xkb] = "-xkb,-no-xkb -no-xkbcommon,libxkbcommon"
117PACKAGECONFIG[evdev] = "-evdev,-no-evdev"
118PACKAGECONFIG[mtdev] = "-mtdev,-no-mtdev,mtdev"
119# depends on glib
120PACKAGECONFIG[fontconfig] = "-fontconfig,-no-fontconfig,fontconfig"
121PACKAGECONFIG[gtkstyle] = "-gtkstyle,-no-gtkstyle,gtk+"
122PACKAGECONFIG[directfb] = "-directfb,-no-directfb,directfb"
123PACKAGECONFIG[linuxfb] = "-linuxfb,-no-linuxfb"
124PACKAGECONFIG[mitshm] = "-mitshm,-no-mitshm,mitshm"
125PACKAGECONFIG[kms] = "-kms,-no-kms,virtual/mesa virtual/egl"
126# needed for qtwebkit
127PACKAGECONFIG[icu] = "-icu,-no-icu,icu"
128PACKAGECONFIG[udev] = "-libudev,-no-libudev,udev"
129# use -openssl-linked here to ensure that RDEPENDS for libcrypto and libssl are detected
130PACKAGECONFIG[openssl] = "-openssl-linked,-no-openssl,openssl"
131PACKAGECONFIG[alsa] = "-alsa,-no-alsa,alsa-lib"
132PACKAGECONFIG[pulseaudio] = "-pulseaudio,-no-pulseaudio,pulseaudio"
133PACKAGECONFIG[nis] = "-nis,-no-nis"
134PACKAGECONFIG[widgets] = "-widgets,-no-widgets"
135
136QT_CONFIG_FLAGS += " \
137 -shared \
138 -silent \
139 -no-pch \
140 -no-rpath \
141 -pkg-config \
142 ${EXTRA_OECONF} \
143"
144
145do_generate_qt_config_file_append() {
146 cat >> ${QT_CONF_PATH} <<EOF
147
148[EffectivePaths]
149Prefix=..
150EOF
151}
152
153# qtbase is exception, we need to use mkspecs from ${S}
154QMAKE_MKSPEC_PATH = "${B}"
155
156# another exception is that we need to run bin/qmake, because EffectivePaths are relative to qmake location
157OE_QMAKE_QMAKE_ORIG = "${STAGING_BINDIR_NATIVE}/${QT_DIR_NAME}/qmake"
158OE_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
161export OE_QMAKE_COMPILER
162export OE_QMAKE_CC
163export OE_QMAKE_CFLAGS
164export OE_QMAKE_CXX
165export OE_QMAKE_CXXFLAGS
166export OE_QMAKE_LINK
167export OE_QMAKE_LDFLAGS
168export OE_QMAKE_AR
169export OE_QMAKE_STRIP
170
171do_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
30LIC_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
208do_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
221do_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
240PACKAGES =. " \
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
249RRECOMMENDS_${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
257ALLOW_EMPTY_${PN}-fonts = "1"
258
259FILES_${PN}-fonts-ttf-vera = "${OE_QMAKE_PATH_LIBS}/fonts/Vera*.ttf"
260FILES_${PN}-fonts-ttf-dejavu = "${OE_QMAKE_PATH_LIBS}/fonts/DejaVu*.ttf"
261FILES_${PN}-fonts-pfa = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfa"
262FILES_${PN}-fonts-pfb = "${OE_QMAKE_PATH_LIBS}/fonts/*.pfb"
263FILES_${PN}-fonts-qpf = "${OE_QMAKE_PATH_LIBS}/fonts/*.qpf*"
264FILES_${PN}-fonts = "${OE_QMAKE_PATH_LIBS}/fonts/README \
265 ${OE_QMAKE_PATH_LIBS}/fonts/fontdir"
266
267sysroot_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
272SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative"
4
5PACKAGECONFIG ??= ""
6PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
7
8do_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
14LICENSE += "| GPL-2.0"
15LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${BPN}.inc 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0"
5LIC_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
13DEPENDS += "qtbase qtdeclarative"
14
15PACKAGECONFIG ??= ""
16PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
17
18do_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
4SRCREV = "b4bf23453e65995bdd8827b6e146edd5cafeddc3" 24SRCREV = "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 @@
1require qt5.inc
2
3SRC_URI += " \
4 file://0001-qmltestexample-fix-link.patch \
5"
6
7# There are no LGPLv3-only licensed files in this component.
8
9DEPENDS += "qtbase"
10
11PACKAGECONFIG ??= "qtxmlpatterns"
12PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns"
13
14do_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
20EXTRA_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13DEPENDS += "qtbase"
14
15SRC_URI += " \
16 file://0001-qmltestexample-fix-link.patch \
17"
18
19PACKAGECONFIG ??= "qtxmlpatterns"
20PACKAGECONFIG[qtxmlpatterns] = ",,qtxmlpatterns"
21
22do_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
28EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtxmlpatterns', 'CONFIG+=OE_QTXMLPATTERNS_ENABLED', '', d)}"
3 29
4SRCREV = "2b3c2339616680537145a9cc2e7567575add1abb" 30SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
4
5LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \
6 file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \
7 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6"
8LICENSE = "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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \
7 file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \
8 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
9"
10
11DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
3 12
4QT_MODULE_BRANCH = "1.1" 13QT_MODULE_BRANCH = "1.1"
5SRCREV = "30ee95cd19f9a435ce337b4f651175ed2e8ba2e5" 14SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtdeclarative"
4
5RDEPENDS_${PN}-dev = ""
6
7# There are no LGPLv3-only licensed files in this component.
8# There are no GPLv2 licensed files in this component.
9LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5# There are no GPLv2 licensed files in this component.
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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
15DEPENDS += "qtdeclarative"
16
17RDEPENDS_${PN}-dev = ""
3 18
4SRCREV = "6eef4b5fa1836c9cb7ebc5dcb269a8d3114eb6c3" 19SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase"
4ALLOW_EMPTY_${PN} = "1"
5
6SRC_URI += "file://0001-qtimageformats.pro-Make-the-dependencies-determinist.patch"
7
8PACKAGECONFIG ?= "libtiff"
9# Currently we don't have recipe for libmng, but lock it anyway so qtimageformats stay deterministic even when libmng is introduced
10PACKAGECONFIG[jasper] = ",,jasper"
11PACKAGECONFIG[libmng] = ",,libmng"
12PACKAGECONFIG[libtiff] = ",,tiff"
13PACKAGECONFIG[libwebp] = ",,libwebp"
14
15EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libmng', 'CONFIG+=OE_LIBMNG_ENABLED', '', d)}"
16EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'jasper', 'CONFIG+=OE_JASPER_ENABLED', '', d)}"
17EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libtiff', 'CONFIG+=OE_LIBTIFF_ENABLED', '', d)}"
18EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libwebp', 'CONFIG+=OE_LIBWEBP_ENABLED', '', d)}"
19
20LICENSE += "| GPL-2.0"
21LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0"
5LIC_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
13DEPENDS += "qtbase"
14ALLOW_EMPTY_${PN} = "1"
15
16SRC_URI += "file://0001-qtimageformats.pro-Make-the-dependencies-determinist.patch"
17
18PACKAGECONFIG ?= "libtiff"
19# Currently we don't have recipe for libmng, but lock it anyway so qtimageformats stay deterministic even when libmng is introduced
20PACKAGECONFIG[jasper] = ",,jasper"
21PACKAGECONFIG[libmng] = ",,libmng"
22PACKAGECONFIG[libtiff] = ",,tiff"
23PACKAGECONFIG[libwebp] = ",,libwebp"
24
25EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libmng', 'CONFIG+=OE_LIBMNG_ENABLED', '', d)}"
26EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'jasper', 'CONFIG+=OE_JASPER_ENABLED', '', d)}"
27EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libtiff', 'CONFIG+=OE_LIBTIFF_ENABLED', '', d)}"
28EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'libwebp', 'CONFIG+=OE_LIBWEBP_ENABLED', '', d)}"
3 29
4SRCREV = "98f83553e9fe2aa5fc54b32513af6ba3aa60a07b" 30SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qt3d"
4# qtsystems qtmultimedia
5
6PACKAGECONFIG ??= ""
7# older geoclue 0.x is needed
8PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue"
9PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy"
10
11do_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
19EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}"
20EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}"
21
22LICENSE += "| GPL-2.0"
23LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0"
5LIC_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
13DEPENDS += "qtbase qt3d"
14# qtsystems qtmultimedia
15
16PACKAGECONFIG ??= ""
17# older geoclue 0.x is needed
18PACKAGECONFIG[geoclue] = "OE_GEOCLUE_ENABLED,,gconf geoclue"
19PACKAGECONFIG[gypsy] = "OE_GYPSY_ENABLED,,gconf gypsy"
20
21do_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
29EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'geoclue', 'CONFIG+=OE_GEOCLUE_ENABLED', '', d)}"
30EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gypsy', 'CONFIG+=OE_GYPSY_ENABLED', '', d)}"
3 31
4SRCREV = "b13fec3c7ed08b7d0e79c08312a3c3285eb20ef3" 32SRCREV = "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 @@
1require qt5.inc
2
3# There are no LGPLv3-only licensed files in this component.
4
5DEPENDS += "qtdeclarative"
6
7PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
8 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
9PACKAGECONFIG[alsa] = ",,alsa-lib"
10PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
11PACKAGECONFIG[openal] = ",,openal-soft"
12PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
13PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
14
15EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
16EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
17EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
18
19# Handles GStreamer support
20EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer', 'GST_VERSION=1.0', '', d)}"
21EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', '', d)}"
22# Disable GStreamer if completely disabled
23EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_gstreamer', d)}"
24
25SRC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13DEPENDS += "qtdeclarative"
14
15PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
17PACKAGECONFIG[alsa] = ",,alsa-lib"
18PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
19PACKAGECONFIG[openal] = ",,openal-soft"
20PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
21PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
22
23EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
24EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
25EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
26
27# Handles GStreamer support
28EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer', 'GST_VERSION=1.0', '', d)}"
29EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', '', d)}"
30# Disable GStreamer if completely disabled
31EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_gstreamer', d)}"
32
33SRC_URI += "\
34 file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \
35"
3 36
4SRCREV = "6fe3061c1f6b7438d20c7bfb92c7652cedc5b049" 37SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "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.
9LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${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.
7LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
8LIC_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
16DEPENDS += "qtscript qtsvg qtxmlpatterns qtwebkit"
17# qttools
3 18
4SRCREV = "c78f720de6de9340492f8395109252919283a955" 19SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtdeclarative"
4
5RDEPENDS_${PN}-dev = ""
6
7LICENSE += "| GPL-2.0"
8LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0"
5LIC_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
13DEPENDS += "qtdeclarative"
14
15RDEPENDS_${PN}-dev = ""
3 16
4SRCREV = "de9145dcd904068256e28e130fdfda2e8014efe8" 17SRCREV = "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 @@
1require 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}'
13ARM_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.
17DEPENDS += "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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${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.
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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}'
24ARM_INSTRUCTION_SET = "arm"
25
26DEPENDS += "qtbase"
3 27
4SRCREV = "822df36f252c5a16cdf82f5666f36e7011df46c4" 28SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative"
4
5# There are no LGPLv3-only licensed files in this component.
6# There are no GPLv2 licensed files in this component.
7LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5# There are no GPLv2 licensed files in this component.
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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
15DEPENDS += "qtbase qtdeclarative"
3 16
4SRCREV = "26c99a8f7832a5549d315ad434e038ae3964e224" 17SRCREV = "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 @@
1require qt5.inc
2
3SRC_URI += " \
4 file://0001-Unix-Clear-serial_struct-instances.patch \
5"
6
7DEPENDS += "qtbase"
8
9# text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what
10# other qt* components use :/
11LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what
5# other qt* components use :/
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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
15SRC_URI += " \
16 file://0001-Unix-Clear-serial_struct-instances.patch \
17"
18
19DEPENDS += "qtbase"
3 20
4SRCREV = "b84fe7eb3d6d977a347bfbb82da724409b2eda69" 21SRCREV = "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 @@
1require qt5.inc
2
3# There are no LGPLv3-only licensed files in this component.
4DEPENDS += "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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13DEPENDS += "qtbase"
3 14
4SRCREV = "1fb79c9f2b50294b989cf2bdd8bfaaf0a458e2a8" 15SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative udev gconf"
4
5PACKAGECONFIG ??= ""
6PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
7
8do_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
14do_install_append() {
15 # Remove example.pro file as it is useless
16 rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
17}
18
19LICENSE = "GFDL-1.3 & LGPL-2.1 | GPL-3.0"
20LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & LGPL-2.1 | GPL-3.0"
5LIC_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
12DEPENDS += "qtbase qtdeclarative udev gconf"
13
14PACKAGECONFIG ??= ""
15PACKAGECONFIG[bluez4] = "OE_BLUEZ_ENABLED,,bluez4"
16
17do_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
23do_install_append() {
24 # Remove example.pro file as it is useless
25 rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
26}
3 27
4QT_MODULE_BRANCH = "dev" 28QT_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 @@
1DEPENDS = "qtbase-native"
2
3QT_MODULE = "qttools"
4
5require qt5-native.inc
6
7SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
8
9do_configure() {
10 ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} CONFIG+=linguistonly
11}
12
13do_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 @@
1DEPENDS = "qtbase-native"
2
3LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
4LIC_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
11QT_MODULE = "qttools"
12
13require qt5-native.inc
1require qt5-git.inc 14require qt5-git.inc
2require ${PN}.inc
3 15
4SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" 16SRC_URI += "file://0001-Allow-to-build-only-lrelease-lupdate-lconvert.patch"
5 17
6LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ 18do_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
22do_install() {
23 oe_runmake install INSTALL_ROOT=${D}
24}
25
26SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
4
5SRC_URI += " \
6 file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \
7 file://0003-add-noqtwebkit-configuration.patch \
8"
9
10FILES_${PN}-tools += "${datadir}/${QT_DIR_NAME}/phrasebooks"
11FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples"
12
13PACKAGECONFIG ??= ""
14PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
15
16EXTRA_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc
3 3
4SRCREV = "7f5b11a4a6357d2969e5b24bfb25c47aeb3d99f5" 4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
5LIC_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
12DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
13
14SRC_URI += " \
15 file://0002-assistant-help-fix-linking-of-dependent-libraries.patch \
16 file://0003-add-noqtwebkit-configuration.patch \
17"
18
19FILES_${PN}-tools += "${datadir}/${QT_DIR_NAME}/phrasebooks"
20FILES_${PN}-examples = "${datadir}/${QT_DIR_NAME}/examples"
5 21
6LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=d87ae0d200af76dca730d911474cbe5b \ 22PACKAGECONFIG ??= ""
7 file://LICENSE.LGPLv3;md5=ffcfac38a32c9ebdb8ff768fa1702478 \ 23PACKAGECONFIG[qtwebkit] = ",,qtwebkit"
8 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ 24
9 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e" 25EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'qtwebkit', '', 'CONFIG+=noqtwebkit', d)}"
26
27SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qttools-native"
4
5LIC_FILES_CHKSUM = "file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \
6 file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \
7 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6"
8LICENSE = "(LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
9
10PACKAGES =. " \
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
29FILES_${PN}-assistant = " \
30 ${OE_QMAKE_PATH_TRANSLATIONS}/assistant_*.qm \
31"
32
33FILES_${PN}-designer = " \
34 ${OE_QMAKE_PATH_TRANSLATIONS}/designer_*.qm \
35"
36
37FILES_${PN}-linguist = " \
38 ${OE_QMAKE_PATH_TRANSLATIONS}/linguist_*.qm \
39"
40
41FILES_${PN}-qmlviewer = " \
42 ${OE_QMAKE_PATH_TRANSLATIONS}/qmlviewer_*.qm \
43"
44
45FILES_${PN}-qtconnectivity = " \
46 ${OE_QMAKE_PATH_TRANSLATIONS}/qtconnectivity_*.qm \
47"
48
49FILES_${PN}-qtmultimedia = " \
50 ${OE_QMAKE_PATH_TRANSLATIONS}/qtmultimedia_*.qm \
51"
52
53FILES_${PN}-qtlocation = " \
54 ${OE_QMAKE_PATH_TRANSLATIONS}/qtlocation_*.qm \
55"
56
57FILES_${PN}-qtdeclarative = " \
58 ${OE_QMAKE_PATH_TRANSLATIONS}/qtdeclarative_*.qm \
59"
60
61FILES_${PN}-qtquickcontrols = " \
62 ${OE_QMAKE_PATH_TRANSLATIONS}/qtquickcontrols_*.qm \
63"
64
65FILES_${PN}-qtxmlpatterns = " \
66 ${OE_QMAKE_PATH_TRANSLATIONS}/qtxmlpatterns_*.qm \
67"
68
69FILES_${PN}-qtconfig = " \
70 ${OE_QMAKE_PATH_TRANSLATIONS}/qtconfig_*.qm \
71"
72
73FILES_${PN}-qtquick1 = " \
74 ${OE_QMAKE_PATH_TRANSLATIONS}/qtquick1_*.qm \
75"
76
77FILES_${PN}-qtscript = " \
78 ${OE_QMAKE_PATH_TRANSLATIONS}/qtscript_*.qm \
79"
80
81FILES_${PN}-qtbase = " \
82 ${OE_QMAKE_PATH_TRANSLATIONS}/qtbase_*.qm \
83"
84
85FILES_${PN}-qthelp = " \
86 ${OE_QMAKE_PATH_TRANSLATIONS}/qt_help_*.qm \
87"
88
89FILES_${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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "(LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv21;md5=cff17b12416c896e10ae2c17a64252e7 \
7 file://LICENSE.LGPLv3;md5=c1939be5579666be947371bc8120425f \
8 file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \
9"
10
11DEPENDS += "qtbase qttools-native"
12
13PACKAGES =. " \
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
32FILES_${PN}-assistant = " \
33 ${OE_QMAKE_PATH_TRANSLATIONS}/assistant_*.qm \
34"
35
36FILES_${PN}-designer = " \
37 ${OE_QMAKE_PATH_TRANSLATIONS}/designer_*.qm \
38"
39
40FILES_${PN}-linguist = " \
41 ${OE_QMAKE_PATH_TRANSLATIONS}/linguist_*.qm \
42"
43
44FILES_${PN}-qmlviewer = " \
45 ${OE_QMAKE_PATH_TRANSLATIONS}/qmlviewer_*.qm \
46"
47
48FILES_${PN}-qtconnectivity = " \
49 ${OE_QMAKE_PATH_TRANSLATIONS}/qtconnectivity_*.qm \
50"
51
52FILES_${PN}-qtmultimedia = " \
53 ${OE_QMAKE_PATH_TRANSLATIONS}/qtmultimedia_*.qm \
54"
55
56FILES_${PN}-qtlocation = " \
57 ${OE_QMAKE_PATH_TRANSLATIONS}/qtlocation_*.qm \
58"
59
60FILES_${PN}-qtdeclarative = " \
61 ${OE_QMAKE_PATH_TRANSLATIONS}/qtdeclarative_*.qm \
62"
63
64FILES_${PN}-qtquickcontrols = " \
65 ${OE_QMAKE_PATH_TRANSLATIONS}/qtquickcontrols_*.qm \
66"
67
68FILES_${PN}-qtxmlpatterns = " \
69 ${OE_QMAKE_PATH_TRANSLATIONS}/qtxmlpatterns_*.qm \
70"
71
72FILES_${PN}-qtconfig = " \
73 ${OE_QMAKE_PATH_TRANSLATIONS}/qtconfig_*.qm \
74"
75
76FILES_${PN}-qtquick1 = " \
77 ${OE_QMAKE_PATH_TRANSLATIONS}/qtquick1_*.qm \
78"
79
80FILES_${PN}-qtscript = " \
81 ${OE_QMAKE_PATH_TRANSLATIONS}/qtscript_*.qm \
82"
83
84FILES_${PN}-qtbase = " \
85 ${OE_QMAKE_PATH_TRANSLATIONS}/qtbase_*.qm \
86"
87
88FILES_${PN}-qthelp = " \
89 ${OE_QMAKE_PATH_TRANSLATIONS}/qt_help_*.qm \
90"
91
92FILES_${PN}-qt = " \
93 ${OE_QMAKE_PATH_TRANSLATIONS}/qt_*.qm \
94"
3 95
4SRCREV = "1224b6890e0b0971e5eeea9f52d806f1890de0ed" 96SRCREV = "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 @@
1require qt5-native.inc
2
3QT_MODULE = "${BPN}"
4
5DEPENDS = "qtbase-native wayland-native"
6
7SRC_URI += " \
8 file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \
9"
10
11do_configure() {
12 ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S}/src/qtwaylandscanner
13}
14
15do_install() {
16 oe_runmake install INSTALL_ROOT=${D}
17}
18
19# There are no LGPLv3-only licensed files in this component.
20LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
21LIC_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 @@
1require qt5-native.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13QT_MODULE = "${BPN}"
14
15DEPENDS = "qtbase-native wayland-native"
16
17SRC_URI += " \
18 file://0001-Install-the-qtwaylandscanner-tool-to-the-native-side.patch \
19"
20
21do_configure() {
22 ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S}/src/qtwaylandscanner
23}
24
25do_install() {
26 oe_runmake install INSTALL_ROOT=${D}
27}
3 28
4SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" 29SRCREV = "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 @@
1require 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).
7XKB_DEPENDS = "libxkbcommon xproto"
8DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_DEPENDS}"
9
10QT_WAYLAND_CONFIG ?= "wayland-compositor"
11QT_WAYLAND_DEFINES ?= ""
12QT_WAYLAND_BUILD_PARTS ?= "examples"
13
14EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}"
15EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}"
16EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=${QT_WAYLAND_BUILD_PARTS}"
17
18FILES_${PN}-plugins += " \
19 ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \
20"
21
22FILES_${PN}-plugins-dbg += " \
23 ${OE_QMAKE_PATH_PLUGINS}/*/*/.debug/* \
24"
25
26# There are no LGPLv3-only licensed files in this component.
27LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
28LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc
3 3
4SRCREV = "d5e7965a87d81e2d7157c785403b0aba681de62a" 4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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).
17XKB_DEPENDS = "libxkbcommon xproto"
18DEPENDS += "qtbase qtdeclarative wayland wayland-native qtwayland-native ${XKB_DEPENDS}"
19
20QT_WAYLAND_CONFIG ?= "wayland-compositor"
21QT_WAYLAND_DEFINES ?= ""
22QT_WAYLAND_BUILD_PARTS ?= "examples"
23
24EXTRA_QMAKEVARS_PRE += "CONFIG+=${QT_WAYLAND_CONFIG}"
25EXTRA_QMAKEVARS_PRE += "DEFINES+=${QT_WAYLAND_DEFINES}"
26EXTRA_QMAKEVARS_PRE += "QT_BUILD_PARTS+=${QT_WAYLAND_BUILD_PARTS}"
27
28FILES_${PN}-plugins += " \
29 ${OE_QMAKE_PATH_PLUGINS}/*/*/*${SOLIBSDEV} \
30"
31
32FILES_${PN}-plugins-dbg += " \
33 ${OE_QMAKE_PATH_PLUGINS}/*/*/.debug/* \
34"
5 35
6SRC_URI += " \ 36SRC_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
48SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtdeclarative qtwebsockets"
4
5# There are no LGPLv3-only licensed files in this component.
6# There are no GPLv2 licensed files in this component.
7LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5# There are no GPLv2 licensed files in this component.
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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
14DEPENDS += "qtdeclarative qtwebsockets"
3 15
4SRCREV = "358e5acba3154a8ab4b53b22797c2c1eae4707dc" 16SRCREV = "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 @@
1SUMMARY = "QtWebEngine combines the power of Chromium and Qt"
2LICENSE = "LGPL-3.0 & BSD"
3LIC_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"
8DEPENDS += " \
9 ninja-native \
10 qtbase qtdeclarative qtxmlpatterns qtquickcontrols \
11 libdrm fontconfig pixman openssl pango cairo icu pciutils \
12 libcap \
13"
14
15COMPATIBLE_MACHINE = "(-)"
16COMPATIBLE_MACHINE_i586 = "(.*)"
17COMPATIBLE_MACHINE_x86-64 = "(.*)"
18COMPATIBLE_MACHINE_armv6 = "(.*)"
19COMPATIBLE_MACHINE_armv7a = "(.*)"
20
21inherit qmake5
22inherit gettext
23inherit pythonnative
24inherit perlnative
25
26require recipes-qt/qt5/qt5.inc
27
28# To avoid trouble start with not separated build directory
29SEPB = "${S}"
30B = "${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.
33EXTRA_QMAKEVARS_POST += "CONFIG-=create_cmake"
34
35export NINJA_PATH="${STAGING_BINDIR_NATIVE}/ninja"
36
37do_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
57do_install_append() {
58 rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true
59}
60PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
61
62# for /usr/share/qt5/qtwebengine_resources.pak
63FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}"
64
65RDEPENDS_${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 @@
1SUMMARY = "QtWebEngine combines the power of Chromium and Qt"
2
3LICENSE = "LGPL-3.0 & BSD"
4LIC_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
10DEPENDS += " \
11 ninja-native \
12 qtbase qtdeclarative qtxmlpatterns qtquickcontrols \
13 libdrm fontconfig pixman openssl pango cairo icu pciutils \
14 libcap \
15"
16
17COMPATIBLE_MACHINE = "(-)"
18COMPATIBLE_MACHINE_i586 = "(.*)"
19COMPATIBLE_MACHINE_x86-64 = "(.*)"
20COMPATIBLE_MACHINE_armv6 = "(.*)"
21COMPATIBLE_MACHINE_armv7a = "(.*)"
22
23inherit qmake5
24inherit gettext
25inherit pythonnative
26inherit perlnative
27
28require qt5.inc
1require qt5-git.inc 29require qt5-git.inc
2require ${PN}.inc 30
31# To avoid trouble start with not separated build directory
32SEPB = "${S}"
33B = "${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.
36EXTRA_QMAKEVARS_POST += "CONFIG-=create_cmake"
37
38export NINJA_PATH="${STAGING_BINDIR_NATIVE}/ninja"
39
40do_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
60do_install_append() {
61 rmdir ${D}${OE_QMAKE_PATH_PLUGINS}/${BPN} ${D}${OE_QMAKE_PATH_PLUGINS} || true
62}
63PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
64
65# for /usr/share/qt5/qtwebengine_resources.pak
66FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}"
67
68RDEPENDS_${PN}-examples += " \
69 ${PN}-qmlplugins \
70 qtquickcontrols-qmlplugins \
71 qtdeclarative-qmlplugins \
72"
3 73
4QT_MODULE_BRANCH = "5.4" 74QT_MODULE_BRANCH = "5.4"
5QT_MODULE_BRANCH_CHROMIUM = "37.0.2062-based" 75QT_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 @@
1require qt5.inc
2
3# There are no LGPLv3-only licensed files in this component.
4# There are no GPLv2 licensed files in this component.
5LIC_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
11SRC_URI += " \
12 file://0001-qtwebkit-examples-enable-building-examples-by-defaul.patch \
13"
14
15DEPENDS += "qtwebkit"
16RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins"
17RDEPENDS_${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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5# There are no GPLv2 licensed files in this component.
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
7LIC_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
15SRC_URI += " \
16 file://0001-qtwebkit-examples-enable-building-examples-by-defaul.patch \
17"
18
19DEPENDS += "qtwebkit"
20RDEPENDS_${PN}-examples += "qtwebkit-qmlplugins"
21RDEPENDS_${PN}-examples += "${@base_contains('PACKAGECONFIG_OPENSSL', 'openssl', 'ca-certificates', '', d)}"
3 22
4SRCREV = "734663277730bc20dacf0a6b07427002a53cc107" 23SRCREV = "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 @@
1require qt5.inc
2
3LICENSE = "BSD & LGPLv2+ | GPL-2.0"
4LIC_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
9DEPENDS += "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
15ARM_INSTRUCTION_SET = "arm"
16
17SRC_URI += "\
18 file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \
19 file://0002-Remove-TEXTREL-tag-in-x86.patch \
20"
21
22PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel"
23PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base"
24PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base"
25PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation"
26PACKAGECONFIG[qtmultimedia] = "OE_QTMULTIMEDIA_ENABLED,,qtmultimedia"
27PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors"
28PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel"
29PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp"
30
31do_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
51QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0"
52EXTRA_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
55PACKAGES = "${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)
60RUBY_SYS = "${@ '${BUILD_SYS}'.replace('i486', 'i386').replace('i586', 'i386').replace('i686', 'i386') }"
61export 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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "BSD & LGPLv2+ | GPL-2.0"
5LIC_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
12DEPENDS += "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
18ARM_INSTRUCTION_SET = "arm"
19
20SRC_URI += "\
21 file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \
22 file://0002-Remove-TEXTREL-tag-in-x86.patch \
23"
24
25PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel"
26PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base"
27PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base"
28PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation"
29PACKAGECONFIG[qtmultimedia] = "OE_QTMULTIMEDIA_ENABLED,,qtmultimedia"
30PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors"
31PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel"
32PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp"
33
34do_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
54QTWEBKIT_DEBUG = "QMAKE_CFLAGS+=-g0 QMAKE_CXXFLAGS+=-g0"
55EXTRA_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
58PACKAGES = "${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)
63RUBY_SYS = "${@ '${BUILD_SYS}'.replace('i486', 'i386').replace('i586', 'i386').replace('i686', 'i386') }"
64export RUBYLIB="${STAGING_DATADIR_NATIVE}/rubygems:${STAGING_LIBDIR_NATIVE}/ruby:${STAGING_LIBDIR_NATIVE}/ruby/${RUBY_SYS}"
3 65
4SRCREV = "738ad7e37c66f2afdbc7a77aff3ab7fa510361a2" 66SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase qtdeclarative"
4
5LICENSE = "GFDL-1.3 & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
5LIC_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
12DEPENDS += "qtbase qtdeclarative"
3 13
4SRCREV = "5b469aa3c4d6b9c68feb9cf92d03614077518894" 14SRCREV = "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 @@
1require qt5.inc
2
3DEPENDS += "qtbase"
4
5LICENSE += "| GPL-2.0"
6LIC_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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0"
5LIC_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
13DEPENDS += "qtbase"
3 14
4SRCREV = "bcc86311359e138ecc3a8fc1ce6eee1cda2ec0f5" 15SRCREV = "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 @@
1require qt5.inc
2
3# There are no LGPLv3-only licensed files in this component.
4DEPENDS += "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 @@
1require qt5.inc
1require qt5-git.inc 2require qt5-git.inc
2require ${PN}.inc 3
4# There are no LGPLv3-only licensed files in this component.
5LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | LGPL-3.0)"
6LIC_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
13DEPENDS += "qtbase"
3 14
4SRCREV = "db784fb1c01ca2a0e7ada2c407cd1aab3aa98fee" 15SRCREV = "db784fb1c01ca2a0e7ada2c407cd1aab3aa98fee"