[vala/parallel: 12/17] vapigen: Adjust to ValaSourceFile API changes
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/parallel: 12/17] vapigen: Adjust to ValaSourceFile API changes
- Date: Sun, 29 Aug 2010 22:22:02 +0000 (UTC)
commit dce96908d2ee0d56e703e0cfbad7c2119b6aaf33
Author: Ryan Lortie <desrt desrt ca>
Date: Fri Aug 27 01:07:15 2010 +0200
vapigen: Adjust to ValaSourceFile API changes
vapigen/valavapicheck.vala | 4 ++--
vapigen/valavapigen.vala | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/vapigen/valavapicheck.vala b/vapigen/valavapicheck.vala
index b6fa644..daa8776 100644
--- a/vapigen/valavapicheck.vala
+++ b/vapigen/valavapicheck.vala
@@ -24,8 +24,8 @@ using GLib;
class Vala.VAPICheck : Object {
public VAPICheck (string gidlname, CodeContext context = new CodeContext ()) {
- gidl = new SourceFile (context, gidlname);
- metadata = new SourceFile (context, gidlname.substring (0, gidlname.length - 5) + ".metadata");
+ gidl = new SourceFile (context, SourceFileType.SOURCE, gidlname);
+ metadata = new SourceFile (context, SourceFileType.SOURCE, gidlname.substring (0, gidlname.length - 5) + ".metadata");
this.context = context;
}
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index 403fa89..577d519 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -77,7 +77,7 @@ class Vala.VAPIGen : Object {
context.add_package (pkg);
- context.add_source_file (new SourceFile (context, package_path, true));
+ context.add_source_file (new SourceFile (context, SourceFileType.PACKAGE, package_path));
var deps_filename = Path.build_filename (Path.get_dirname (package_path), "%s.deps".printf (pkg));
if (FileUtils.test (deps_filename, FileTest.EXISTS)) {
@@ -176,7 +176,7 @@ class Vala.VAPIGen : Object {
foreach (string source in sources) {
if (FileUtils.test (source, FileTest.EXISTS)) {
- context.add_source_file (new SourceFile (context, source, true));
+ context.add_source_file (new SourceFile (context, SourceFileType.PACKAGE, source));
} else {
Report.error (null, "%s not found".printf (source));
}
@@ -240,7 +240,7 @@ class Vala.VAPIGen : Object {
// interface writer ignores external packages
foreach (SourceFile file in context.get_source_files ()) {
if (!file.filename.has_suffix (".vapi")) {
- file.external_package = false;
+ file.file_type = SourceFileType.SOURCE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]