summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorRichard Wiedenhöft <richard@wiedenhoeft.xyz>2014-09-03 18:56:28 +0200
committerFlorian Brosch <flo.brosch@gmail.com>2014-09-03 18:56:28 +0200
commit343340b65668f3c33d940840e0e7bd28d47aef0b (patch)
treed5efdef08efffa0085c5bc8274392262c5cb91b4 /compiler
parent7022319cdced4d2a180a8cff93ebb823df46c124 (diff)
downloadvala-343340b65668f3c33d940840e0e7bd28d47aef0b.tar.gz
Added option --vapi-comments to include comments in vapi-files
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 4a20ea1ba..9c50fcb0e 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -53,6 +53,7 @@ class Vala.Compiler {
static string internal_header_filename;
static string internal_vapi_filename;
static string fast_vapi_filename;
+ static bool vapi_comments;
static string symbols_filename;
static string includedir;
static bool compile_only;
@@ -111,6 +112,7 @@ class Vala.Compiler {
{ "internal-vapi", 0, 0, OptionArg.FILENAME, ref internal_vapi_filename, "Output vapi with internal api", "FILE" },
{ "fast-vapi", 0, 0, OptionArg.STRING, ref fast_vapi_filename, "Output vapi without performing symbol resolution", null },
{ "use-fast-vapi", 0, 0, OptionArg.STRING_ARRAY, ref fast_vapis, "Use --fast-vapi output during this compile", null },
+ { "vapi-comments", 0, 0, OptionArg.NONE, ref vapi_comments, "Include comments in generated vapi", null },
{ "deps", 0, 0, OptionArg.STRING, ref dependencies, "Write make-style dependency information to this file", null },
{ "symbols", 0, 0, OptionArg.FILENAME, ref symbols_filename, "Output symbols file", "FILE" },
{ "compile", 'c', 0, OptionArg.NONE, ref compile_only, "Compile but do not link", null },
@@ -217,6 +219,7 @@ class Vala.Compiler {
context.directory = context.basedir;
}
context.vapi_directories = vapi_directories;
+ context.vapi_comments = vapi_comments;
context.gir_directories = gir_directories;
context.metadata_directories = metadata_directories;
context.debug = debug;