]> code.ossystems Code Review - openembedded-core.git/commitdiff
vala.bbclass: add dependency on vala
authorJoe Slater <jslater@windriver.com>
Tue, 29 Oct 2013 17:17:04 +0000 (10:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Oct 2013 17:33:00 +0000 (17:33 +0000)
This class points the inheritor, if it is a target,
to directories in the target sysroot, so we want to
be sure the .vapi files are there.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/vala.bbclass

index c7db08ceebd063313798e6964c437140e5248148..0b7803b251dc709162d4404082e11ea4feacf3b7 100644 (file)
@@ -1,9 +1,12 @@
 # Vala has problems with multiple concurrent invocations
 PARALLEL_MAKE = ""
 
-# Vala needs vala-native
-DEPENDS += "vala-native"
-DEPENDS_virtclass-native += "vala-native"
+# Everyone needs vala-native and targets need vala, too,
+# because that is where target builds look for .vapi files.
+#
+VALADEPENDS = ""
+VALADEPENDS_class-target = "vala"
+DEPENDS_append = " vala-native ${VALADEPENDS}"
 
 # Our patched version of Vala looks in STAGING_DATADIR for .vapi files
 export STAGING_DATADIR