summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2018-10-10 23:03:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-12 16:57:21 +0100
commita60029776d82ede444d1195a4c318a2a659b7662 (patch)
tree0d79f7302e289ed8670adaa9893ba491dfd23346 /meta/recipes-devtools
parentd5e56347a6e7eae0f0fcf46bf862532e67751a0e (diff)
downloadpoky-a60029776d82ede444d1195a4c318a2a659b7662.tar.gz
vala: update vapigen-wrapper
The .gir files from gobject-introspection are configured to install to ${libdir}/gir-1.0 when multilib is enabled. Update vapigen-wrapper accordingly. (From OE-Core rev: 78df4225cc12ba59466ae398b3860b207758e652) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/vala/vala.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-devtools/vala/vala.inc b/meta/recipes-devtools/vala/vala.inc
index b22faad780..f680640ca6 100644
--- a/meta/recipes-devtools/vala/vala.inc
+++ b/meta/recipes-devtools/vala/vala.inc
@@ -24,12 +24,15 @@ inherit autotools pkgconfig upstream-version-is-even
24FILES_${PN} += "${datadir}/${BPN}-${SHRT_VER}/vapi ${libdir}/${BPN}-${SHRT_VER}/" 24FILES_${PN} += "${datadir}/${BPN}-${SHRT_VER}/vapi ${libdir}/${BPN}-${SHRT_VER}/"
25FILES_${PN}-doc += "${datadir}/devhelp" 25FILES_${PN}-doc += "${datadir}/devhelp"
26 26
27# .gir files from gobject-introspection are installed to ${libdir} when multilib is enabled
28GIRDIR_OPT = "${@'--girdir=${STAGING_LIBDIR}/gir-1.0' if d.getVar('MULTILIBS') else ''}"
29
27do_configure_prepend_class-target() { 30do_configure_prepend_class-target() {
28 # Write out a vapigen wrapper that will be provided by pkg-config file installed in target sysroot 31 # Write out a vapigen wrapper that will be provided by pkg-config file installed in target sysroot
29 # The wrapper will call a native vapigen 32 # The wrapper will call a native vapigen
30 cat > ${B}/vapigen-wrapper << EOF 33 cat > ${B}/vapigen-wrapper << EOF
31#!/bin/sh 34#!/bin/sh
32vapigen-${SHRT_VER} "\$@" 35vapigen-${SHRT_VER} ${GIRDIR_OPT} "\$@"
33EOF 36EOF
34 chmod +x ${B}/vapigen-wrapper 37 chmod +x ${B}/vapigen-wrapper
35} 38}
@@ -55,3 +58,5 @@ vapigen_sysroot_preprocess() {
55 -e "s|vapigen=.*|vapigen=${bindir}/vapigen-wrapper|" \ 58 -e "s|vapigen=.*|vapigen=${bindir}/vapigen-wrapper|" \
56 ${SYSROOT_DESTDIR}${libdir}/pkgconfig/vapigen-${SHRT_VER}.pc 59 ${SYSROOT_DESTDIR}${libdir}/pkgconfig/vapigen-${SHRT_VER}.pc
57} 60}
61
62SSTATE_SCAN_FILES += "vapigen-wrapper"