summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2009-06-08 16:36:01 +0100
committerRob Taylor <rob.taylor@codethink.co.uk>2009-07-22 16:43:37 +0100
commit6cb16f26ef6ee3fe8b6eee492d67a8d52e2fb0b6 (patch)
tree576676ca2fde9005c6bafadca88cf76e86957dcb
parent60ac7e30c7fa108537eeae51a1bb8a144c80f176 (diff)
downloadvala-6cb16f26ef6ee3fe8b6eee492d67a8d52e2fb0b6.tar.gz
support .deps files when using new .gir files.
-rw-r--r--vapigen/valavapigen.vala17
1 files changed, 16 insertions, 1 deletions
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index bed723888..4b8f3521d 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -126,7 +126,22 @@ class Vala.VAPIGen : Object {
}
}
}
-
+
+ // depsfile for gir case
+ if (library != null) {
+ var depsfile = library + ".deps";
+ if (FileUtils.test (depsfile, FileTest.EXISTS)) {
+
+ string[] deps = get_packages_from_depsfile (depsfile);
+
+ foreach (string dep in deps) {
+ if (!add_package (dep)) {
+ Report.error (null, "%s not found in specified Vala API directories".printf (dep));
+ }
+ }
+ }
+ }
+
if (packages != null) {
foreach (string package in packages) {
if (!add_package (package)) {