diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2015-11-27 15:48:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-07 13:40:14 +0000 |
commit | 8b11ed8a75a15328bbd22d100a976cc669b84b58 (patch) | |
tree | 9b93d0fcd8fd973943ca61f126cae47066113922 /meta/recipes-qt/qt4/nativesdk-qt4-tools.inc | |
parent | 0baadc8a98daa14090b04e728fb5a44af3f545c8 (diff) | |
download | poky-8b11ed8a75a15328bbd22d100a976cc669b84b58.tar.gz |
qt4: remove recipes and classes
Qt4 is no longer supportd upstream, but it is still needed for LSB compliancy.
Qt4 recipes have been moved to a separate meta-qt4 layer to be consistent with
meta-qt3 and meta-qt5.
(From OE-Core rev: cb89d2b25b4edb1241bc5426a69a6bc44df9be2c)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4/nativesdk-qt4-tools.inc')
-rw-r--r-- | meta/recipes-qt/qt4/nativesdk-qt4-tools.inc | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc b/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc deleted file mode 100644 index 54bf2a12a5..0000000000 --- a/meta/recipes-qt/qt4/nativesdk-qt4-tools.inc +++ /dev/null | |||
@@ -1,128 +0,0 @@ | |||
1 | SUMMARY = "SDK tools for Qt version 4.x" | ||
2 | DEPENDS = "nativesdk-zlib nativesdk-dbus qt4-native ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11', '', d)}" | ||
3 | SECTION = "libs" | ||
4 | HOMEPAGE = "http://qt-project.org/" | ||
5 | LICENSE = "LGPLv2.1 | GPLv3" | ||
6 | |||
7 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/qt4-${PV}:" | ||
8 | |||
9 | inherit nativesdk qmake2 | ||
10 | |||
11 | SRC_URI = "http://download.qt-project.org/official_releases/qt/4.8/${PV}/qt-everywhere-opensource-src-${PV}.tar.gz \ | ||
12 | file://0001-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ | ||
13 | file://0004-configure-qmake-is-already-built-in-qt4-tools-native.patch \ | ||
14 | file://0005-configure-set-LFLAGS-to-pick-up-zlib-from-staging.patch \ | ||
15 | file://0006-configure-Use-OE_QMAKE_-values-to-specify-Qt-utility.patch \ | ||
16 | file://0007-dbus-Remove-const-usage-that-causes-compile-failure-.patch \ | ||
17 | file://0008-qmake.pro-Allow-building-a-separate-qmake-for-the-ta.patch \ | ||
18 | file://g++.conf \ | ||
19 | file://linux.conf" | ||
20 | |||
21 | UPSTREAM_CHECK_URI = "http://download.qt.io/official_releases/qt/4.8/" | ||
22 | UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/" | ||
23 | |||
24 | S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}" | ||
25 | |||
26 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
27 | file://LICENSE.GPL3;md5=6e1694ee338db410417517884918d4d2 \ | ||
28 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6" | ||
29 | |||
30 | require qt4_arch.inc | ||
31 | |||
32 | # FIXME: make it work with "${STAGING_BINDIR_NATIVE}/pkg-config --cflags dbus-1" | ||
33 | EXTRA_OECONF = "-prefix ${prefix} \ | ||
34 | -qt-libjpeg -system-zlib \ | ||
35 | -no-libjpeg -no-libpng -no-libmng -no-libtiff \ | ||
36 | -no-accessibility \ | ||
37 | -no-cups \ | ||
38 | -no-exceptions \ | ||
39 | -no-nas-sound \ | ||
40 | -no-nis -no-openssl \ | ||
41 | -verbose -release -fast -static \ | ||
42 | -platform ${TARGET_OS}-oe-g++ \ | ||
43 | -xplatform ${TARGET_OS}-oe-g++ \ | ||
44 | -arch ${QT_ARCH} \ | ||
45 | -embedded -no-freetype -no-glib -no-iconv \ | ||
46 | -qt3support \ | ||
47 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/include/dbus-1.0 \ | ||
48 | -I${STAGING_DIR_HOST}${SDKPATHNATIVE}/usr/lib/dbus-1.0/include" | ||
49 | |||
50 | # yank default -e, otherwise we get the following error: | ||
51 | # moc_qbuffer.cpp: No such file or directory | ||
52 | EXTRA_OEMAKE = " " | ||
53 | |||
54 | do_configure() { | ||
55 | # Avoid problems with Qt 4.8.0 configure setting QMAKE_LINK from LD (since we want the linker to be g++) | ||
56 | unset LD | ||
57 | |||
58 | if [ ! -e mkspecs/${TARGET_OS}-oe-g++ ]; then | ||
59 | ln -sf linux-g++ mkspecs/${TARGET_OS}-oe-g++ | ||
60 | fi | ||
61 | |||
62 | cp ../g++.conf mkspecs/common | ||
63 | cp ../linux.conf mkspecs/common | ||
64 | |||
65 | if [ -f mkspecs/common/g++-base.conf ] ; then | ||
66 | # don't use host g++ even during configure (4.8.0+) | ||
67 | sed -i -e "s#= g++#= ${CXX}#" mkspecs/common/g++-base.conf | ||
68 | sed -i -e "s#= gcc#= ${CC}#" mkspecs/common/g++-base.conf | ||
69 | fi | ||
70 | |||
71 | # Use qmake from qt4-native for building | ||
72 | if [ ! -e bin/qmake ]; then | ||
73 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake2 bin/qmake | ||
74 | fi | ||
75 | set_arch | ||
76 | (echo o; echo yes) | CC="${CC}" CXX="${CXX}" ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
77 | } | ||
78 | |||
79 | TOBUILD = "\ | ||
80 | src/tools/bootstrap \ | ||
81 | src/tools/moc \ | ||
82 | src/corelib \ | ||
83 | src/sql \ | ||
84 | src/dbus \ | ||
85 | src/qt3support \ | ||
86 | src/xml \ | ||
87 | src/tools/uic \ | ||
88 | src/tools/rcc \ | ||
89 | src/network \ | ||
90 | src/gui \ | ||
91 | src/tools/uic3 \ | ||
92 | tools/linguist/lrelease \ | ||
93 | tools/linguist/lupdate \ | ||
94 | tools/qdbus \ | ||
95 | " | ||
96 | |||
97 | do_compile() { | ||
98 | for i in ${TOBUILD}; do | ||
99 | cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}" | ||
100 | done | ||
101 | |||
102 | # Build nativesdk qmake | ||
103 | export QMAKESPEC="${S}/mkspecs/${TARGET_OS}-oe-g++" | ||
104 | cd ${S}/qmake | ||
105 | ${OE_QMAKE_QMAKE} | ||
106 | oe_runmake CC="${CC}" CXX="${CXX}" | ||
107 | cd ${S} | ||
108 | } | ||
109 | |||
110 | do_install() { | ||
111 | install -d ${D}${bindir} | ||
112 | install -m 0755 bin/qmake2 ${D}${bindir}/qmake2 | ||
113 | for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do | ||
114 | install -m 0755 bin/${i} ${D}${bindir}/${i}4 | ||
115 | done | ||
116 | |||
117 | (cd ${D}${bindir}; \ | ||
118 | ln -s qmake2 qmake; \ | ||
119 | for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ | ||
120 | ln -s ${i}4 ${i}; \ | ||
121 | done) | ||
122 | |||
123 | install -d ${D}${sysconfdir} | ||
124 | cat >${D}${sysconfdir}/qt.conf <<EOF | ||
125 | [Paths] | ||
126 | Prefix = ${prefix} | ||
127 | EOF | ||
128 | } | ||