summaryrefslogtreecommitdiffstats
path: root/meta/classes/vala.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/vala.bbclass')
-rw-r--r--meta/classes/vala.bbclass21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
new file mode 100644
index 0000000..0b7803b
--- /dev/null
+++ b/meta/classes/vala.bbclass
@@ -0,0 +1,21 @@
1# Vala has problems with multiple concurrent invocations
2PARALLEL_MAKE = ""
3
4# Everyone needs vala-native and targets need vala, too,
5# because that is where target builds look for .vapi files.
6#
7VALADEPENDS = ""
8VALADEPENDS_class-target = "vala"
9DEPENDS_append = " vala-native ${VALADEPENDS}"
10
11# Our patched version of Vala looks in STAGING_DATADIR for .vapi files
12export STAGING_DATADIR
13# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
14export XDG_DATA_DIRS = "${STAGING_DATADIR}"
15
16# Package additional files
17FILES_${PN}-dev += "\
18 ${datadir}/vala/vapi/*.vapi \
19 ${datadir}/vala/vapi/*.deps \
20 ${datadir}/gir-1.0 \
21"