Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Everyone needs vala-native and targets need vala, too, |
| 2 | # because that is where target builds look for .vapi files. |
| 3 | # |
| 4 | VALADEPENDS = "" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 5 | VALADEPENDS:class-target = "vala" |
| 6 | DEPENDS:append = " vala-native ${VALADEPENDS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | |
| 8 | # Our patched version of Vala looks in STAGING_DATADIR for .vapi files |
| 9 | export STAGING_DATADIR |
| 10 | # Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 11 | export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
| 13 | # Package additional files |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 14 | FILES:${PN}-dev += "\ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | ${datadir}/vala/vapi/*.vapi \ |
| 16 | ${datadir}/vala/vapi/*.deps \ |
| 17 | ${datadir}/gir-1.0 \ |
| 18 | " |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 19 | |
| 20 | # Remove vapigen.m4 that is bundled with tarballs |
| 21 | # because it does not yet have our cross-compile fixes |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_configure:prepend() { |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 23 | rm -f ${S}/m4/vapigen.m4 |
| 24 | } |