summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMihai Prica <mihai.prica@intel.com>2013-08-26 11:50:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-28 00:49:23 +0100
commit807285c751862aaa775db5a13293007bfb3c29df (patch)
treebd9d11d22ce7eb1aa44c0de18a669fb541de43f2 /meta/classes
parent649b48557d8702daaf4f28482848ab0b07abed83 (diff)
downloadopenembedded-core-807285c751862aaa775db5a13293007bfb3c29df.tar.gz
openembedded-core-807285c751862aaa775db5a13293007bfb3c29df.tar.bz2
openembedded-core-807285c751862aaa775db5a13293007bfb3c29df.zip
vala.bbclass: add class from meta-oe
This can be used by packages written in vala. It is required by the Midori web-browser. Signed-off-by: Mihai Prica <mihai.prica@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/vala.bbclass18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
new file mode 100644
index 0000000000..c7db08ceeb
--- /dev/null
+++ b/meta/classes/vala.bbclass
@@ -0,0 +1,18 @@
+# Vala has problems with multiple concurrent invocations
+PARALLEL_MAKE = ""
+
+# Vala needs vala-native
+DEPENDS += "vala-native"
+DEPENDS_virtclass-native += "vala-native"
+
+# Our patched version of Vala looks in STAGING_DATADIR for .vapi files
+export STAGING_DATADIR
+# Upstream Vala >= 0.11 looks in XDG_DATA_DIRS for .vapi files
+export XDG_DATA_DIRS = "${STAGING_DATADIR}"
+
+# Package additional files
+FILES_${PN}-dev += "\
+ ${datadir}/vala/vapi/*.vapi \
+ ${datadir}/vala/vapi/*.deps \
+ ${datadir}/gir-1.0 \
+"