diff options
author | Kai Kang <kai.kang@windriver.com> | 2018-10-10 23:03:01 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-12 16:57:21 +0100 |
commit | a60029776d82ede444d1195a4c318a2a659b7662 (patch) | |
tree | 0d79f7302e289ed8670adaa9893ba491dfd23346 | |
parent | d5e56347a6e7eae0f0fcf46bf862532e67751a0e (diff) | |
download | poky-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>
-rw-r--r-- | meta/recipes-devtools/vala/vala.inc | 7 |
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 | |||
24 | FILES_${PN} += "${datadir}/${BPN}-${SHRT_VER}/vapi ${libdir}/${BPN}-${SHRT_VER}/" | 24 | FILES_${PN} += "${datadir}/${BPN}-${SHRT_VER}/vapi ${libdir}/${BPN}-${SHRT_VER}/" |
25 | FILES_${PN}-doc += "${datadir}/devhelp" | 25 | FILES_${PN}-doc += "${datadir}/devhelp" |
26 | 26 | ||
27 | # .gir files from gobject-introspection are installed to ${libdir} when multilib is enabled | ||
28 | GIRDIR_OPT = "${@'--girdir=${STAGING_LIBDIR}/gir-1.0' if d.getVar('MULTILIBS') else ''}" | ||
29 | |||
27 | do_configure_prepend_class-target() { | 30 | do_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 |
32 | vapigen-${SHRT_VER} "\$@" | 35 | vapigen-${SHRT_VER} ${GIRDIR_OPT} "\$@" |
33 | EOF | 36 | EOF |
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 | |||
62 | SSTATE_SCAN_FILES += "vapigen-wrapper" | ||