Commit fe1ad232 authored by Sam Thursfield's avatar Sam Thursfield

meson: Install enums for GSettings schemas

parent 47050364
......@@ -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')
......
......@@ -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)
......@@ -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(
......
......@@ -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(
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment