blob: 460ddb36f04bbf4ed93fcb2998e4c0bdf95a1d97 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
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#
10VALADEPENDS = ""
11VALADEPENDS:class-target = "vala"
12DEPENDS:append = " vala-native ${VALADEPENDS}"
13
14# Our patched version of Vala looks in STAGING_DATADIR for .vapi files
15export STAGING_DATADIR
16# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
17export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
18
19# Package additional files
20FILES:${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
28do_configure:prepend() {
29 rm -f ${S}/m4/vapigen.m4
30}