[vala: 7/8] Override cheader to internal cheader when writing the internal vapi.
- From: Robert James Taylor <robtaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala: 7/8] Override cheader to internal cheader when writing the internal vapi.
- Date: Wed, 8 Apr 2009 14:03:59 -0400 (EDT)
commit 33cc9c32f9de7f826ae614422a44b3088fb21707
Author: Rob Taylor <rob taylor codethink co uk>
Date: Wed Apr 8 18:54:08 2009 +0100
Override cheader to internal cheader when writing the internal vapi.
---
compiler/valacompiler.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 001fea2..f1e1cb0 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -339,7 +339,14 @@ class Vala.Compiler {
library = null;
}
if (internal_vapi_filename != null) {
+ if (internal_header_filename == null ||
+ header_filename == null) {
+ Report.error (null, "--internal-vapi may only be used in combination with --header and --internal-header");
+ return quit();
+ }
+
var interface_writer = new CodeWriter (false, true);
+ interface_writer.set_cheader_override(header_filename, internal_header_filename);
string vapi_filename = internal_vapi_filename;
// put .vapi file in current directory unless -d has been explicitly specified
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]