diff options
author | Rob Taylor <rob.taylor@codethink.co.uk> | 2009-06-08 16:36:01 +0100 |
---|---|---|
committer | Rob Taylor <rob.taylor@codethink.co.uk> | 2009-07-22 16:43:37 +0100 |
commit | 6cb16f26ef6ee3fe8b6eee492d67a8d52e2fb0b6 (patch) | |
tree | 576676ca2fde9005c6bafadca88cf76e86957dcb | |
parent | 60ac7e30c7fa108537eeae51a1bb8a144c80f176 (diff) | |
download | vala-6cb16f26ef6ee3fe8b6eee492d67a8d52e2fb0b6.tar.gz |
support .deps files when using new .gir files.
-rw-r--r-- | vapigen/valavapigen.vala | 17 |
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)) { |