Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | # |
| 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
| 7 | # Everyone needs vala-native and targets need vala, too, |
| 8 | # because that is where target builds look for .vapi files. |
| 9 | # |
| 10 | VALADEPENDS = "" |
| 11 | VALADEPENDS:class-target = "vala" |
| 12 | DEPENDS:append = " vala-native ${VALADEPENDS}" |
| 13 | |
| 14 | # Our patched version of Vala looks in STAGING_DATADIR for .vapi files |
| 15 | export STAGING_DATADIR |
| 16 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files |
| 17 | export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}" |
| 18 | |
| 19 | # Package additional files |
| 20 | FILES:${PN}-dev += "\ |
| 21 | ${datadir}/vala/vapi/*.vapi \ |
| 22 | ${datadir}/vala/vapi/*.deps \ |
| 23 | ${datadir}/gir-1.0 \ |
| 24 | " |
| 25 | |
| 26 | # Remove vapigen.m4 that is bundled with tarballs |
| 27 | # because it does not yet have our cross-compile fixes |
| 28 | do_configure:prepend() { |
| 29 | rm -f ${S}/m4/vapigen.m4 |
| 30 | } |