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 = "" |
| 5 | VALADEPENDS_class-target = "vala" |
| 6 | DEPENDS_append = " vala-native ${VALADEPENDS}" |
| 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 |
| 11 | export XDG_DATA_DIRS = "${STAGING_DATADIR}" |
| 12 | |
| 13 | # Package additional files |
| 14 | FILES_${PN}-dev += "\ |
| 15 | ${datadir}/vala/vapi/*.vapi \ |
| 16 | ${datadir}/vala/vapi/*.deps \ |
| 17 | ${datadir}/gir-1.0 \ |
| 18 | " |