summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2019-09-17 14:22:44 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2019-09-24 21:11:19 +0200
commit7eb6f3c80c00402b00395eadd003ea583d16bca6 (patch)
tree4af94e2324f9fbaacfbcdd49477410bd51d8496d /meson_options.txt
parent4a7d50e51910ecbe6b291253e233161519e885a7 (diff)
downloadtracker-7eb6f3c80c00402b00395eadd003ea583d16bca6.tar.gz
meson: Add options to define whether to install and where test utils
Since commit 8ae99192 we provide tracker test utils python modules. These are installed by default in tracker internal libdir, and as per meson default this is an arch-dependent path, while the test utils aren't. So in some distributions, not to provide such files in multiple packages for each architecture, we'd need to install those files somewhere else that is not arch-dependent. Unfortunately meson doesn't provide such path by default (which ideally would be /usr/lib/tracker-${abi-version}), and I think isn't correct either to install such files into the datadir, so in order to make this path customizable and at the same time to make it possible to locate, provide meson options and build a pkg config file for it, providing the python path variable that should be used.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index fa1ce51dc..d4b3b2a81 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -22,3 +22,7 @@ option('dbus_services', type: 'string', value: '',
description: 'Directory to install D-Bus .service files (leave blank to use the value from dbus-1.pc)')
option('systemd_user_services', type: 'string', value: 'yes',
description: 'Directory to install systemd user .service files (or "yes" for default directory, "no" to disable installation)')
+option('test_utils', type: 'boolean', value: true,
+ description: 'Whether to install the tracker test utils')
+option('test_utils_dir', type: 'string', value: '',
+ description: 'Directory to install tracker test utils (or empty to use the default)')