[vala/wip/transform: 82/132] dbus: Require gio-2.0
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 82/132] dbus: Require gio-2.0
- Date: Mon, 16 Apr 2018 15:09:43 +0000 (UTC)
commit ac294774fbccaff3d43ffb3c1de654a86d4dc325
Author: Luca Bruno <lucabru src gnome org>
Date: Fri Apr 13 13:42:14 2012 +0200
dbus: Require gio-2.0
codegen/valagdbusclienttransformer.vala | 8 ++++++++
codegen/valagdbusservertransformer.vala | 8 ++++++++
vala/valacodebuilder.vala | 2 +-
3 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagdbusclienttransformer.vala b/codegen/valagdbusclienttransformer.vala
index 5e887bc..513fbb8 100644
--- a/codegen/valagdbusclienttransformer.vala
+++ b/codegen/valagdbusclienttransformer.vala
@@ -317,6 +317,14 @@ public class Vala.GDBusClientTransformer : GVariantTransformer {
return;
}
+ if (!context.has_package ("gio-2.0")) {
+ if (!iface.error) {
+ Report.error (iface.source_reference, "gio-2.0 package required for dbus type
symbols");
+ iface.error = true;
+ }
+ return;
+ }
+
// create proxy class
var proxy = new Class (iface.name+"Proxy", iface.source_reference, null);
proxy.add_base_type (data_type ("GLib.DBusProxy"));
diff --git a/codegen/valagdbusservertransformer.vala b/codegen/valagdbusservertransformer.vala
index 69cfaad..e693bb1 100644
--- a/codegen/valagdbusservertransformer.vala
+++ b/codegen/valagdbusservertransformer.vala
@@ -301,6 +301,14 @@ public class Vala.GDBusServerTransformer : GDBusClientTransformer {
return;
}
+ if (!context.has_package ("gio-2.0")) {
+ if (!sym.error) {
+ Report.error (sym.source_reference, "gio-2.0 package required for dbus type
symbols");
+ sym.error = true;
+ }
+ return;
+ }
+
generate_interface_method_call (sym);
generate_interface_get_property (sym);
generate_interface_set_property (sym);
diff --git a/vala/valacodebuilder.vala b/vala/valacodebuilder.vala
index 2614cdc..6ad6904 100644
--- a/vala/valacodebuilder.vala
+++ b/vala/valacodebuilder.vala
@@ -1,6 +1,6 @@
/* valacodebuilder.vala
*
- * Copyright (C) 2011 Luca Bruno
+ * Copyright (C) 2012 Luca Bruno
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]