diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 17173b2ef..e70e9e03a 100644 --- a/meson.build +++ b/meson.build @@ -223,6 +223,9 @@ conf.set('TRACKER_BINARY_AGE', 100 * tracker_minor_version + tracker_micro_versi # Config that goes in some other generated files (.desktop, .pc, etc) conf.set('exec_prefix', get_option('prefix')) +conf.set('bindir', join_paths(get_option('prefix'), get_option('bindir'))) +conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir'))) +conf.set('datarootdir', join_paths(get_option('prefix'), get_option('datadir'))) conf.set('includedir', join_paths(get_option('prefix'), get_option('includedir'))) conf.set('libdir', join_paths(get_option('prefix'), get_option('libdir'))) conf.set('libexecdir', join_paths(get_option('prefix'), get_option('libexecdir'))) @@ -230,6 +233,19 @@ conf.set('prefix', get_option('prefix')) conf.set('TRACKER_API_VERSION', tracker_api_version) conf.set('VERSION', meson.project_version()) +# Configure functional tests to run completely from source tree. +conf.set('FUNCTIONAL_TESTS_ONTOLOGIES_DIR', join_paths(meson.current_source_dir(), 'tests', 'functional-tests', 'test-ontologies')) +conf.set('FUNCTIONAL_TESTS_TRACKER_STORE_PATH', join_paths(meson.current_build_dir(), 'src', 'tracker-store', 'tracker-store')) + +# This is set in an awkward way for compatibility with Autoconf. Switch it +# to a normal boolean once we get rid of the Autotools build system. It's +# only used in tests/functional-tests/common/utils/configuration.py.in. +if get_option('journal') + conf.set('DISABLE_JOURNAL_TRUE', 'true') +else + conf.set('DISABLE_JOURNAL_TRUE', '') +endif + configure_file(input: 'config.h.meson.in', output: 'config.h', configuration: conf) |