[vala] support .deps files when using new .gir files.
- From: Robert James Taylor <robtaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] support .deps files when using new .gir files.
- Date: Wed, 22 Jul 2009 15:52:38 +0000 (UTC)
commit 6cb16f26ef6ee3fe8b6eee492d67a8d52e2fb0b6
Author: Rob Taylor <rob taylor codethink co uk>
Date: Mon Jun 8 16:36:01 2009 +0100
support .deps files when using new .gir files.
vapigen/valavapigen.vala | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index bed7238..4b8f352 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)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]