[tracker-miners] meson: Install enums for GSettings schemas
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners] meson: Install enums for GSettings schemas
- Date: Thu, 19 Oct 2017 19:43:57 +0000 (UTC)
commit fe1ad232b74fb34c387127a9ce620a404dbc430c
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Thu Oct 19 20:42:46 2017 +0100
meson: Install enums for GSettings schemas
meson.build | 3 +++
src/meson.build | 14 ++++++++++++++
src/miners/fs/meson.build | 2 +-
src/tracker-extract/meson.build | 2 +-
src/tracker-writeback/meson.build | 2 +-
5 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 46ea2d9..d8700b9 100644
--- a/meson.build
+++ b/meson.build
@@ -352,8 +352,11 @@ tracker_extract_rules_dir = join_paths(get_option('prefix'), get_option('datadir
tracker_miner_services_dir = join_paths(get_option('prefix'), get_option('datadir'), 'tracker/miners')
tracker_writeback_modules_dir = join_paths(get_option('prefix'), get_option('libdir'),
'tracker-miners-@0@/writeback-modules'.format(tracker_api_version))
+gsettings_schema_dir = join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0', 'schemas')
vapi_dir = join_paths(get_option('prefix'), get_option('datadir'), 'vala', 'vapi')
+glib_mkenums = find_program('glib-mkenums')
+
subdir('src')
if get_option('docs')
diff --git a/src/meson.build b/src/meson.build
index e711db8..8aeeae3 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -13,4 +13,18 @@ subdir('miners')
# Public metadata writeback tool & modiles
subdir('tracker-writeback')
+custom_target('tracker-miners-settings-enums',
+ input: 'libtracker-common/tracker-enums.h',
+ output: 'org.freedesktop.TrackerMiners.enums.xml',
+ command: [glib_mkenums,
+ '--comments', '<!-- @comment@ -->',
+ '--fhead', '<schemalist>',
+ '--vhead', '<@type@ id="org.freedesktop.TrackerMiners.@EnumName@">',
+ '--vprod', ' <value nick="@valuenick@" value="@valuenum@"/>',
+ '--vtail', ' </@type@>',
+ '--ftail', '</schemalist>', '@INPUT@'],
+ capture: true,
+ install: true,
+ install_dir: gsettings_schema_dir)
+
meson.add_install_script('create-miner-symlinks.sh', dbus_services_dir, tracker_miner_services_dir)
diff --git a/src/miners/fs/meson.build b/src/miners/fs/meson.build
index 5d74908..2ba122e 100644
--- a/src/miners/fs/meson.build
+++ b/src/miners/fs/meson.build
@@ -63,7 +63,7 @@ custom_target('tracker-miner-fs-settings-schema',
output: 'org.freedesktop.Tracker.Miner.Files.gschema.xml',
command: ['intltool-merge', '--quiet', '--xml-style', '--utf8', join_paths(meson.source_root(), 'po'),
'@INPUT@', '@OUTPUT@'],
install: true,
- install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
+ install_dir: gsettings_schema_dir)
if install_systemd_user_services
configure_file(
diff --git a/src/tracker-extract/meson.build b/src/tracker-extract/meson.build
index 2f429e2..816ef5a 100644
--- a/src/tracker-extract/meson.build
+++ b/src/tracker-extract/meson.build
@@ -189,7 +189,7 @@ custom_target('tracker-extract-settings-schema',
output: 'org.freedesktop.Tracker.Extract.gschema.xml',
command: ['intltool-merge', '--quiet', '--xml-style', '--utf8', join_paths(meson.source_root(), 'po'),
'@INPUT@', '@OUTPUT@'],
install: true,
- install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
+ install_dir: gsettings_schema_dir)
if install_systemd_user_services
configure_file(
diff --git a/src/tracker-writeback/meson.build b/src/tracker-writeback/meson.build
index 81aab03..cd32edd 100644
--- a/src/tracker-writeback/meson.build
+++ b/src/tracker-writeback/meson.build
@@ -60,7 +60,7 @@ custom_target('tracker-writeback-settings-schema',
output: 'org.freedesktop.Tracker.Writeback.gschema.xml',
command: ['intltool-merge', '--quiet', '--xml-style', '--utf8', join_paths(meson.source_root(), 'po'),
'@INPUT@', '@OUTPUT@'],
install: true,
- install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
+ install_dir: gsettings_schema_dir)
if install_systemd_user_services
configure_file(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]