summaryrefslogtreecommitdiff
path: root/classes/vala.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/vala.bbclass')
-rw-r--r--classes/vala.bbclass16
1 files changed, 6 insertions, 10 deletions
diff --git a/classes/vala.bbclass b/classes/vala.bbclass
index 433b64e87e..3510a8acf3 100644
--- a/classes/vala.bbclass
+++ b/classes/vala.bbclass
@@ -1,19 +1,15 @@
# Vala has problems with multiple concurrent invocations
PARALLEL_MAKE = ""
+# Vala needs vala-native
DEPENDS += "vala-native"
+# Vala looks in STAGING_DATADIR for .vapi files
+export STAGING_DATADIR
+
+# Package additional files
FILES_${PN}-dev += "\
${datadir}/vala/vapi/*.vapi \
${datadir}/vala/vapi/*.deps \
+ ${datadir}/gir-1.0 \
"
-
-VALA_DONT_STAGE_VAPIS ?= "\(/config.vapi$\)\|\(/config.deps$\)"
-
-# .vapi and .deps files are arch independent and need to be present in the
-# staging datadir for the native vala compiler
-do_stage_append() {
- install -d ${STAGING_DATADIR_NATIVE}/vala/vapi
- for VALAFILE in `find . -name "*.vapi" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done
- for VALAFILE in `find . -name "*.deps" | grep -v "$VALA_DONT_STAGE_VAPIS"`; do install -m 0644 ${VALAFILE} ${STAGING_DATADIR_NATIVE}/vala/vapi/; done
-}