summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-10-09 20:40:03 +0200
committerJürg Billeter <j@bitron.ch>2009-10-09 20:41:16 +0200
commit931b465053c2f335feec73096030fb6110bca92f (patch)
tree798b0e20b08094ed28e44405e6e4f8b9ca0ec2cc /compiler
parent375d022f098cde02a32144baece21c4c2bd1522f (diff)
downloadvala-931b465053c2f335feec73096030fb6110bca92f.tar.gz
valac: Add --use-header command-line option
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 2b32f9dad..f2b023408 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -43,6 +43,7 @@ class Vala.Compiler {
static bool ccode_only;
static string header_filename;
+ static bool use_header;
static string internal_header_filename;
static string internal_vapi_filename;
static string includedir;
@@ -85,6 +86,7 @@ class Vala.Compiler {
{ "version", 0, 0, OptionArg.NONE, ref version, "Display version number", null },
{ "ccode", 'C', 0, OptionArg.NONE, ref ccode_only, "Output C code", null },
{ "header", 'H', 0, OptionArg.FILENAME, ref header_filename, "Output C header file", "FILE" },
+ { "use-header", 0, 0, OptionArg.NONE, ref use_header, "Use C header file", null },
{ "includedir", 0, 0, OptionArg.FILENAME, ref includedir, "Directory used to include the C header file", "DIRECTORY" },
{ "internal-header", 'h', 0, OptionArg.FILENAME, ref internal_header_filename, "Output internal C header file", "FILE" },
{ "internal-vapi", 0, 0, OptionArg.FILENAME, ref internal_vapi_filename, "Output vapi with internal api", "FILE" },
@@ -195,6 +197,7 @@ class Vala.Compiler {
context.ccode_only = ccode_only;
context.compile_only = compile_only;
context.header_filename = header_filename;
+ context.use_header = use_header;
context.internal_header_filename = internal_header_filename;
context.includedir = includedir;
context.output = output;