summaryrefslogtreecommitdiff
path: root/vapigen
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-08-19 17:01:51 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-08-19 17:01:51 +0200
commitf1278166d5801f660a495df5ca11246bf68b691f (patch)
tree81f65b37d423d9d96d96166f053c6a0f75f3b787 /vapigen
parentc89c305ceb63c9b4ba017eec4a3daf734e822651 (diff)
downloadvala-f1278166d5801f660a495df5ca11246bf68b691f.tar.gz
vapigen: Mark given source-files as such and force girparser to handle them
E.g. gtk+-4.0 is *one* library with multiple namespaces and gir files. So we need to handle this case and allow all explicitly given GIR files to be parsed.
Diffstat (limited to 'vapigen')
-rw-r--r--vapigen/valavapigen.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index ba29e489d..3453afd48 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -131,7 +131,9 @@ class Vala.VAPIGen {
foreach (string source in sources) {
if (FileUtils.test (source, FileTest.EXISTS)) {
- context.add_source_file (new SourceFile (context, SourceFileType.PACKAGE, source));
+ var source_file = new SourceFile (context, SourceFileType.PACKAGE, source);
+ source_file.explicit = true;
+ context.add_source_file (source_file);
} else {
Report.error (null, "%s not found".printf (source));
}