Patchwork [v3,1/1] vala.bbclass: add dependency on vala

login
register
mail settings
Submitter Joe Slater
Date Oct. 29, 2013, 5:17 p.m.
Message ID <1383067024-16984-1-git-send-email-jslater@windriver.com>
Download mbox | patch
Permalink /patch/60727/
State Accepted
Commit 15bc2ddaf9a0af079996a0c02c0611b89594ad4a
Headers show

Comments

Joe Slater - Oct. 29, 2013, 5:17 p.m.
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>
---
 meta/classes/vala.bbclass |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/classes/vala.bbclass b/meta/classes/vala.bbclass
index c7db08c..0b7803b 100644
--- a/meta/classes/vala.bbclass
+++ b/meta/classes/vala.bbclass
@@ -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