Commit 03b742d3 authored by Sam Thursfield's avatar Sam Thursfield

build: Modify how we define the GSettings schemas

These changes are needed so that the 'tracker-miners' project can make
use of the 'tracker' settings schemas when build with the
`tracker=subproject` option.  There should be no change to funtionality.

This is related to #24
parent 22062d42
Pipeline #78842 passed with stage
in 2 minutes and 54 seconds
schemas = [
tracker_gsettings_schemas = files([
foreach schema : schemas
foreach schema : tracker_gsettings_schemas
schemas = configure_file(
input: schema,
output: schema,
output: '@PLAINNAME@',
copy: true,
install: true,
install_dir: gsettings_schema_dir)
......@@ -28,9 +28,13 @@ tracker_store_settings_enums = custom_target('tracker-store-settings-enums',
install: true,
install_dir: gsettings_schema_dir)
# for unit tests
# Compile schemas locally so that the functional-tests can use them without
# them being installed into /usr.
output: 'gschemas.compiled',
command: [find_program('glib-compile-schemas'), meson.current_build_dir()],
build_by_default: true,
depends: tracker_store_settings_enums)
tracker_uninstalled_gsettings_schema_dir = meson.current_build_dir()
......@@ -37,7 +37,7 @@ dconf_profile_full_path = join_paths(meson.current_source_dir(), 'trackertest')
test_env = environment()
test_env.set('DCONF_PROFILE', dconf_profile_full_path)
test_env.set('GSETTINGS_SCHEMA_DIR', join_paths(build_root, 'data'))
test_env.set('GSETTINGS_SCHEMA_DIR', tracker_uninstalled_gsettings_schema_dir)
test_env.set('TRACKER_DB_ONTOLOGIES_DIR', tracker_uninstalled_nepomuk_ontologies_dir)
test_env.set('TRACKER_FUNCTIONAL_TEST_BUILD_DIR', build_root)
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