[planner: 20/40] build: Add eds plugin build, disabled by default as known broken
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 20/40] build: Add eds plugin build, disabled by default as known broken
- Date: Thu, 3 Jun 2021 16:28:55 +0000 (UTC)
commit bb050811cd353fbb715de81306966271014b283f
Author: Mart Raudsepp <leio gentoo org>
Date: Wed Mar 4 11:55:00 2020 +0200
build: Add eds plugin build, disabled by default as known broken
meson.build | 9 +++++++++
meson_options.txt | 5 +++++
src/meson.build | 10 ++++++++++
3 files changed, 24 insertions(+)
---
diff --git a/meson.build b/meson.build
index cc536c91..58c782c7 100644
--- a/meson.build
+++ b/meson.build
@@ -28,6 +28,8 @@ configure_file(
)
toplevel_inc = include_directories('.')
+eds_req = '>= 3.6'
+
glib_dep = dependency('glib-2.0', version: '>= 2.38.0')
gmodule_dep = dependency('gmodule-2.0')
gobject_dep = dependency('gobject-2.0')
@@ -49,6 +51,13 @@ endif
python = pymod.find_installation('python2', required: get_option('python'))
python_dep = python.dependency()
+libecal_dep = dependency('libecal-1.2', version: eds_req, required: get_option('eds'))
+libebook_dep = dependency('libebook-1.2', version: eds_req, required: get_option('eds'))
+have_eds = false
+if libecal_dep.found() and libebook_dep.found()
+ have_eds = true
+endif
+
libplanner_deps = [glib_dep, gmodule_dep, gobject_dep, libxml_dep, m_dep,]
planner_deps = [glib_dep, gobject_dep, gmodule_dep, gtk_dep, gnomecanvas_dep, glade_dep, gconf_dep]
diff --git a/meson_options.txt b/meson_options.txt
index b56fc7a9..ae29853c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,6 +2,11 @@ option('database-gda',
type: 'feature',
value: 'auto',
)
+option('eds',
+ type: 'feature',
+ value: 'disabled',
+ description: 'build evolution-data-server plugin -- currently broken, do not enable unless working on it'
+)
option('python',
type: 'feature',
value: 'auto',
diff --git a/src/meson.build b/src/meson.build
index caf1ddc5..832bd188 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -116,6 +116,16 @@ if pygtk_dep.found() and python_dep.found()
)
endif
+if have_eds
+ libeds_plugin_srcs = [ 'planner-eds-plugin.c' ]
+ libeds_plugin_module = shared_module('eds-plugin', [libeds_plugin_srcs],
+ dependencies: [planner_deps, libecal_dep, libebook_dep],
+ include_directories: [toplevel_inc],
+ install: true,
+ install_dir: join_paths(get_option('libdir'), 'planner/plugins'),
+ )
+endif
+
libhtml_plugin_srcs = [ 'planner-html-plugin.c' ]
libhtml_plugin_module = shared_module('html-plugin',
[libhtml_plugin_srcs],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]