From be7e0c2d5689d962fd2424e60ed21062d0674e95 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 11 Sep 2023 23:03:51 +0200 Subject: Backport Meson build support Meson builds have better integration with Vala. For example, Meson handles incremental compilation of Vala source files better than CMake. Limitations: As done with CMake builds, gresource.xml should be compiled. Now, it has been generated from a CMake build and manually copied into the source tree. --- libdino/src/application.vala | 1 - libdino/src/plugin/registry.vala | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'libdino/src') diff --git a/libdino/src/application.vala b/libdino/src/application.vala index aaec4a11..048a88ff 100644 --- a/libdino/src/application.vala +++ b/libdino/src/application.vala @@ -2,7 +2,6 @@ using Dino.Entities; namespace Dino { -extern const string VERSION; public string get_version() { return VERSION; } public string get_short_version() { if (!VERSION.contains("~")) return VERSION; diff --git a/libdino/src/plugin/registry.vala b/libdino/src/plugin/registry.vala index e28c4de7..c75fbefe 100644 --- a/libdino/src/plugin/registry.vala +++ b/libdino/src/plugin/registry.vala @@ -3,14 +3,14 @@ using Gee; namespace Dino.Plugins { public class Registry { - internal ArrayList encryption_list_entries = new ArrayList(); - internal HashMap call_encryption_entries = new HashMap(); - internal ArrayList account_settings_entries = new ArrayList(); - internal ArrayList contact_details_entries = new ArrayList(); - internal Map text_commands = new HashMap(); - internal Gee.List conversation_addition_populators = new ArrayList(); - internal Gee.List notification_populators = new ArrayList(); - internal Gee.Collection conversation_titlebar_entries = new Gee.TreeSet((a, b) => { + public ArrayList encryption_list_entries = new ArrayList(); + public HashMap call_encryption_entries = new HashMap(); + public ArrayList account_settings_entries = new ArrayList(); + public ArrayList contact_details_entries = new ArrayList(); + public Map text_commands = new HashMap(); + public Gee.List conversation_addition_populators = new ArrayList(); + public Gee.List notification_populators = new ArrayList(); + public Gee.Collection conversation_titlebar_entries = new Gee.TreeSet((a, b) => { return (int)(a.order - b.order); }); public VideoCallPlugin? video_call_plugin; -- cgit v1.2.3