[vala/wip/dbusgen: 107/107] Fix build
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/dbusgen: 107/107] Fix build
- Date: Tue, 14 Apr 2020 09:54:26 +0000 (UTC)
commit 3386dc0f88bf49ec97cf6a2ef75cdd9ae9d3a28f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Apr 14 11:51:03 2020 +0200
Fix build
dbusgen/valadbusgen.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/dbusgen/valadbusgen.vala b/dbusgen/valadbusgen.vala
index ec2fafcfa..82efdf937 100644
--- a/dbusgen/valadbusgen.vala
+++ b/dbusgen/valadbusgen.vala
@@ -57,7 +57,6 @@ public class Vala.DBusGen {
static string[] vapi_directories;
[CCode (array_length = false, array_null_terminated = true)]
static string[] packages;
- static bool nostdpkg;
static int dbus_timeout = 120000;
static string root_namespace;
[CCode (array_length = false, array_null_terminated = true)]
@@ -69,7 +68,6 @@ public class Vala.DBusGen {
const OptionEntry[] options = {
{ "vapidir", 0, 0, OptionArg.FILENAME_ARRAY, ref vapi_directories, "Look for package bindings
in DIRECTORY", "DIRECTORY..." },
- { "nostdpkg", 0, 0, OptionArg.NONE, ref nostdpkg, "Do not include standard packages", null },
{ "pkg", 0, 0, OptionArg.STRING_ARRAY, ref packages, "Include binding for PACKAGE",
"PACKAGE..." },
{ "directory", 'd', 0, OptionArg.FILENAME, ref directory, "Output directory", "DIRECTORY" },
{ "disable-warnings", 0, 0, OptionArg.NONE, ref disable_warnings, "Disable warnings", null },
@@ -105,12 +103,9 @@ public class Vala.DBusGen {
context.report.set_verbose_errors (!quiet_mode);
CodeContext.push (context);
- context.profile = Profile.GOBJECT;
- context.add_define ("GOBJECT");
+ context.set_target_profile (Profile.GOBJECT, false);
context.vapi_comments = true;
- context.add_external_package ("glib-2.0");
- context.add_external_package ("gobject-2.0");
context.add_external_package ("gio-2.0");
if (packages != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]