[vala/wip/gobject-2.0: 2/8] girparser: Add minimal internal default metadata for GObject-2.0.gir
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/gobject-2.0: 2/8] girparser: Add minimal internal default metadata for GObject-2.0.gir
- Date: Tue, 30 Nov 2021 16:39:53 +0000 (UTC)
commit 465cffd614e333c12162421da208d15e24dbe3bc
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Jun 20 20:26:02 2020 +0200
girparser: Add minimal internal default metadata for GObject-2.0.gir
vala/valagirparser.vala | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 6a4b572af..00bd3a99a 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2194,6 +2194,20 @@ public class Vala.GirParser : CodeVisitor {
context.add_source_file (metadata_file);
metadata = metadata_parser.parse_metadata (metadata_file);
metadata_roots.add (metadata);
+ } else if (Path.get_basename (current_source_file.filename) == "GLib-2.0.gir") {
+ var metadata_parser = new MetadataParser ();
+ var metadata_file = new SourceFile (context, current_source_file.file_type,
"GLib-2.0.metadata",
+ "* skip=false\n");
+ context.add_source_file (metadata_file);
+ metadata = metadata_parser.parse_metadata (metadata_file);
+ metadata_roots.add (metadata);
+ } else if (Path.get_basename (current_source_file.filename) == "GObject-2.0.gir") {
+ var metadata_parser = new MetadataParser ();
+ var metadata_file = new SourceFile (context, current_source_file.file_type,
"GObject-2.0.metadata",
+ "GObject name=\"GLib\"\n* skip=false\nValue struct\n");
+ context.add_source_file (metadata_file);
+ metadata = metadata_parser.parse_metadata (metadata_file);
+ metadata_roots.add (metadata);
}
var ns_metadata = metadata.match_child (gir_namespace);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]