summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2010-08-25 11:12:58 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 13:29:51 +0100
commit7aa5f112b8d647a7e1220c42d4c55a59c4de994e (patch)
tree59f08541d2a3244564d4c281acad56fa9f636b29
parentdd30a64fc1e3f306421d38d3333b70a422759fd6 (diff)
downloadpoky-7aa5f112b8d647a7e1220c42d4c55a59c4de994e.tar.gz
qt-tools-native: add QT4 tool to build qt application
QT4 provides tools like moc (meta object compiler), uic (user interface compiler) etc.. to build qt application. This commit add the qt4 tools. The recipe is from OE with minor cleanup. Signed-off-by: Yu Ke <ke.yu@intel.com>
-rw-r--r--meta-lsb/packages/qt4/qt4-tools-native.inc74
-rw-r--r--meta-lsb/packages/qt4/qt4-tools-native_4.6.3.bb11
2 files changed, 85 insertions, 0 deletions
diff --git a/meta-lsb/packages/qt4/qt4-tools-native.inc b/meta-lsb/packages/qt4/qt4-tools-native.inc
new file mode 100644
index 0000000000..7621d629f1
--- /dev/null
+++ b/meta-lsb/packages/qt4/qt4-tools-native.inc
@@ -0,0 +1,74 @@
1DESCRIPTION = "Native tools for Qt/[X11|Mac|Embedded] version 4.x"
2DEPENDS = "zlib-native dbus-native libsm-native"
3SECTION = "libs"
4HOMEPAGE = "http://qt.nokia.com"
5PRIORITY = "optional"
6
7inherit native
8
9SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.tar.gz \
10 file://qt-config.patch \
11 file://g++.conf \
12 file://linux.conf"
13S = "${WORKDIR}/qt-everywhere-opensource-src-${PV}"
14
15EXTRA_OECONF = "-prefix ${prefix} \
16 -L ${STAGING_LIBDIR_NATIVE} \
17 -I ${STAGING_INCDIR_NATIVE} \
18 -qt-libjpeg -qt-gif -system-zlib \
19 -no-libjpeg -no-libpng \
20 -no-accessibility \
21 -no-cups \
22 -no-exceptions \
23 -no-nas-sound \
24 -no-nis \
25 -verbose -release -static \
26 -qt3support"
27
28# yank default -e, otherwise we get the following error:
29# moc_qbuffer.cpp: No such file or directory
30EXTRA_OEMAKE = " "
31
32do_configure() {
33 (echo o; echo yes) | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}"
34}
35
36TOBUILD = "\
37 src/tools/moc \
38 src/corelib \
39 src/sql \
40 src/dbus \
41 src/qt3support \
42 src/xml \
43 src/tools/uic \
44 src/tools/rcc \
45 src/network \
46 src/gui \
47 src/tools/uic3 \
48 tools/linguist/lrelease \
49 tools/linguist/lupdate \
50 tools/qdbus \
51"
52
53do_compile() {
54 for i in ${TOBUILD}; do
55 cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}"
56 done
57}
58
59NATIVE_INSTALL_WORKS = "1"
60
61do_install() {
62 install -d ${D}${bindir}/
63 install -m 0755 bin/qmake ${D}${bindir}/qmake2
64 for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
65 install -m 0755 bin/${i} ${D}${bindir}/${i}4
66 done
67
68 install -d ${D}${datadir}/qt4/
69 cp -PfR mkspecs ${D}${datadir}/qt4/
70 ln -sf linux-g++ ${D}${datadir}/qt4/mkspecs/${BUILD_OS}-oe-g++
71 cp -f ${WORKDIR}/g++.conf ${WORKDIR}/linux.conf ${D}${datadir}/qt4/mkspecs/common/
72
73 install -m 0644 tools/porting/src/q3porting.xml ${D}${datadir}/qt4/
74}
diff --git a/meta-lsb/packages/qt4/qt4-tools-native_4.6.3.bb b/meta-lsb/packages/qt4/qt4-tools-native_4.6.3.bb
new file mode 100644
index 0000000000..de24b38dea
--- /dev/null
+++ b/meta-lsb/packages/qt4/qt4-tools-native_4.6.3.bb
@@ -0,0 +1,11 @@
1require qt4-tools-native.inc
2
3LICENSE = "LGPLv2.1 | GPLv3"
4LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \
5 file://LICENSE.GPL3;md5=babc5b6b77441da277f5c06b2e547720 \
6 file://LGPL_EXCEPTION.txt;md5=411080a56ff917a5a1aa08c98acae354"
7PR = "r0"
8
9EXTRA_OECONF += " -no-fast -silent -no-rpath"
10
11TOBUILD := "src/tools/bootstrap ${TOBUILD}"