summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2013-06-01 15:55:17 +0200
committerLuca Bruno <lucabru@src.gnome.org>2013-06-04 20:21:28 +0200
commit359a273e357f02953a0901f4d062901330aafb93 (patch)
tree0db0616701742e381b7049a81d4aa0bfc4f7baf4 /compiler
parenta31a2a77dd60e701374487518c6c843ed7b020ea (diff)
downloadvala-359a273e357f02953a0901f4d062901330aafb93.tar.gz
gtktemplate: Static type checking of [GtkCallback] using gresources
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 1f471edd2..4d379fd7d 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -44,6 +44,8 @@ class Vala.Compiler {
[CCode (array_length = false, array_null_terminated = true)]
static string[] fast_vapis;
static string target_glib;
+ [CCode (array_length = false, array_null_terminated = true)]
+ static string[] gresources;
static bool ccode_only;
static string header_filename;
@@ -133,6 +135,7 @@ class Vala.Compiler {
{ "quiet", 'q', 0, OptionArg.NONE, ref quiet_mode, "Do not print messages to the console", null },
{ "verbose", 'v', 0, OptionArg.NONE, ref verbose_mode, "Print additional messages to the console", null },
{ "target-glib", 0, 0, OptionArg.STRING, ref target_glib, "Target version of glib for code generation", "MAJOR.MINOR" },
+ { "gresources", 0, 0, OptionArg.STRING_ARRAY, ref gresources, "XML of gresources", "FILE..." },
{ "enable-version-header", 0, 0, OptionArg.NONE, ref enable_version_header, "Write vala build version in generated files", null },
{ "disable-version-header", 0, 0, OptionArg.NONE, ref disable_version_header, "Do not write vala build version in generated files", null },
{ "", 0, 0, OptionArg.FILENAME_ARRAY, ref sources, null, "FILE..." },
@@ -270,6 +273,8 @@ class Vala.Compiler {
}
context.use_fast_vapi = true;
}
+
+ context.gresources = gresources;
if (context.report.get_errors () > 0 || (fatal_warnings && context.report.get_warnings () > 0)) {
return quit ();