diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 15:16:18 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-28 15:55:10 +0200 |
commit | 7d3f0711eefea2aa60d6d5b1dc4aa2eec3c97098 (patch) | |
tree | 1a0cc0fdff89043a90b07abf77cab34d1e3e0bc8 | |
parent | 0a88f92505f27944e985c9f54e64c04b082778fb (diff) | |
download | meta-qt5-7d3f0711eefea2aa60d6d5b1dc4aa2eec3c97098.tar.gz |
qt5: move do_install modifications to shared qt5.inc and reuse do_configure
-rw-r--r-- | recipes-qt/qt5/qt5.inc | 13 | ||||
-rw-r--r-- | recipes-qt/qt5/qtbase.inc | 11 | ||||
-rw-r--r-- | recipes-qt/qt5/qtdeclarative.inc | 19 | ||||
-rw-r--r-- | recipes-qt/qt5/qtjsbackend.inc | 18 |
4 files changed, 15 insertions, 46 deletions
diff --git a/recipes-qt/qt5/qt5.inc b/recipes-qt/qt5/qt5.inc index a45c0aab..a4ac90b6 100644 --- a/recipes-qt/qt5/qt5.inc +++ b/recipes-qt/qt5/qt5.inc | |||
@@ -81,6 +81,19 @@ do_compile() { | |||
81 | 81 | ||
82 | do_install() { | 82 | do_install() { |
83 | oe_runmake install INSTALL_ROOT=${D} | 83 | oe_runmake install INSTALL_ROOT=${D} |
84 | |||
85 | # everything except HostData and HostBinaries is prefixed with sysroot value, | ||
86 | # but we cannot remove sysroot override, because that's useful for pkg-config etc | ||
87 | if [ -d ${D}${STAGING_DIR_TARGET} ] ; then | ||
88 | cp -ra ${D}${STAGING_DIR_TARGET}/* ${D} | ||
89 | rm -rf ${D}${STAGING_DIR_TARGET} | ||
90 | # remove empty dirs | ||
91 | TMP=`dirname ${D}/${STAGING_DIR_TARGET}` | ||
92 | while test ${TMP} != ${D}; do | ||
93 | rmdir ${TMP} | ||
94 | TMP=`dirname ${TMP}`; | ||
95 | done | ||
96 | fi | ||
84 | } | 97 | } |
85 | 98 | ||
86 | PACKAGES =. "${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-tools ${PN}-plugins ${PN}-mkspecs " | 99 | PACKAGES =. "${PN}-tools-dbg ${PN}-plugins-dbg ${PN}-tools ${PN}-plugins ${PN}-mkspecs " |
diff --git a/recipes-qt/qt5/qtbase.inc b/recipes-qt/qt5/qtbase.inc index b3791ed6..0a8b7397 100644 --- a/recipes-qt/qt5/qtbase.inc +++ b/recipes-qt/qt5/qtbase.inc | |||
@@ -105,17 +105,6 @@ do_install_append() { | |||
105 | # qemu built on host breaks do_package, remove it here (will be replaces with right qemu when do_compile is fixed | 105 | # qemu built on host breaks do_package, remove it here (will be replaces with right qemu when do_compile is fixed |
106 | # ERROR: objcopy failed with exit code 1 (cmd was 'arm-oe-linux-gnueabi-objcopy' --only-keep-debug '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake' '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake') | 106 | # ERROR: objcopy failed with exit code 1 (cmd was 'arm-oe-linux-gnueabi-objcopy' --only-keep-debug '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/qmake' '/OE/oe-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/qtbase/5.0.1-r0.0/package/usr/bin/.debug/qmake') |
107 | rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake | 107 | rm -f ${D}/${bindir}/${QT_DIR_NAME}/qmake |
108 | |||
109 | # everything except HostData and HostBinaries is prefixed with sysroot value, | ||
110 | # but we cannot remove sysroot override, because that's useful for pkg-config etc | ||
111 | cp -ra ${D}${STAGING_DIR_TARGET}/* ${D} | ||
112 | rm -rf ${D}${STAGING_DIR_TARGET} | ||
113 | # remove empty dirs | ||
114 | TMP=`dirname ${D}/${STAGING_DIR_TARGET}` | ||
115 | while test ${TMP} != ${D}; do | ||
116 | rmdir ${TMP} | ||
117 | TMP=`dirname ${TMP}`; | ||
118 | done | ||
119 | } | 108 | } |
120 | 109 | ||
121 | PACKAGES =. "${PN}-fonts " | 110 | PACKAGES =. "${PN}-fonts " |
diff --git a/recipes-qt/qt5/qtdeclarative.inc b/recipes-qt/qt5/qtdeclarative.inc index d77c4849..9b82b225 100644 --- a/recipes-qt/qt5/qtdeclarative.inc +++ b/recipes-qt/qt5/qtdeclarative.inc | |||
@@ -6,27 +6,10 @@ INC_PR = "r0" | |||
6 | 6 | ||
7 | inherit qmake5 | 7 | inherit qmake5 |
8 | 8 | ||
9 | do_configure () { | 9 | do_configure_append () { |
10 | # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) | ||
11 | unset LD | ||
12 | |||
13 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} | 10 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} |
14 | } | 11 | } |
15 | 12 | ||
16 | do_install() { | ||
17 | oe_runmake install INSTALL_ROOT=${D} | ||
18 | # everything except HostData and HostBinaries is prefixed with sysroot value, | ||
19 | # but we cannot remove sysroot override, because that's useful for pkg-config etc | ||
20 | cp -ra ${D}${STAGING_DIR_TARGET}/* ${D} | ||
21 | rm -rf ${D}${STAGING_DIR_TARGET} | ||
22 | # remove empty dirs | ||
23 | TMP=`dirname ${D}/${STAGING_DIR_TARGET}` | ||
24 | while test ${TMP} != ${D}; do | ||
25 | rmdir ${TMP} | ||
26 | TMP=`dirname ${TMP}`; | ||
27 | done | ||
28 | } | ||
29 | |||
30 | FILES_${PN}-qmlplugins-dbg = " \ | 13 | FILES_${PN}-qmlplugins-dbg = " \ |
31 | ${libdir}/${QT_DIR_NAME}/qml/*/.debug \ | 14 | ${libdir}/${QT_DIR_NAME}/qml/*/.debug \ |
32 | ${libdir}/${QT_DIR_NAME}/qml/*/*/.debug \ | 15 | ${libdir}/${QT_DIR_NAME}/qml/*/*/.debug \ |
diff --git a/recipes-qt/qt5/qtjsbackend.inc b/recipes-qt/qt5/qtjsbackend.inc index 7d0dafd6..66ab57b0 100644 --- a/recipes-qt/qt5/qtjsbackend.inc +++ b/recipes-qt/qt5/qtjsbackend.inc | |||
@@ -17,22 +17,6 @@ SRC_URI += " \ | |||
17 | file://0002-v8.pro-respect-external-host-bindir-when-set.patch \ | 17 | file://0002-v8.pro-respect-external-host-bindir-when-set.patch \ |
18 | " | 18 | " |
19 | 19 | ||
20 | do_configure () { | 20 | do_configure_append () { |
21 | # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) | ||
22 | unset LD | ||
23 | |||
24 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} | 21 | ${OE_QMAKE_QMAKE} ${OE_QMAKE_DEBUG_OUTPUT} -r ${S} |
25 | } | 22 | } |
26 | |||
27 | do_install_append () { | ||
28 | # everything except HostData and HostBinaries is prefixed with sysroot value, | ||
29 | # but we cannot remove sysroot override, because that's useful for pkg-config etc | ||
30 | cp -ra ${D}${STAGING_DIR_TARGET}/* ${D} | ||
31 | rm -rf ${D}${STAGING_DIR_TARGET} | ||
32 | # remove empty dirs | ||
33 | TMP=`dirname ${D}/${STAGING_DIR_TARGET}` | ||
34 | while test ${TMP} != ${D}; do | ||
35 | rmdir ${TMP} | ||
36 | TMP=`dirname ${TMP}`; | ||
37 | done | ||
38 | } | ||