diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-04 00:08:35 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-04 00:08:35 +0100 |
commit | 439b44f26723fdf15f5ae00dcf5d3f5921165143 (patch) | |
tree | c37ec6dac75732806573326da939ffa3d14012ba /meson.build | |
parent | 04c47c51cee373f0296e277a852c38663edc0245 (diff) | |
download | tracker-439b44f26723fdf15f5ae00dcf5d3f5921165143.tar.gz |
meson: Replace all source_root() and build_root() calls
These functions need to be avoided so that Tracker doesn't break when
included via subproject() into another Meson project.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build index a27a3dd7d..26285a67a 100644 --- a/meson.build +++ b/meson.build @@ -420,6 +420,10 @@ have_tracker_preferences = true configinc = include_directories('./') srcinc = include_directories('src/') +source_root = meson.current_source_dir() +build_root = meson.current_build_dir() +po_subdir = join_paths(source_root, 'po') + tracker_internal_libs_dir = join_paths(get_option('prefix'), get_option('libdir'), 'tracker-' + tracker_api_version) tracker_extract_modules_dir = join_paths(get_option('prefix'), get_option('libdir'), 'tracker-@0@/extract-modules'.format(tracker_api_version)) @@ -471,7 +475,7 @@ endif summary = [ '\nBuild Configuration:', ' Prefix: ' + get_option('prefix'), - ' Source code location: ' + meson.source_root(), + ' Source code location: ' + meson.current_source_dir(), ' Compiler: ' + cc.get_id(), '\nFeature Support:', ' Battery/mains power detection: ' + battery_detection_library_name, |