diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-06-27 13:26:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-09 11:28:41 +1000 |
commit | 7e7d657dabcbdce2489f57e17e894675f9dfe146 (patch) | |
tree | b6c4cc449e26da782eaf0055a216b907f55baabf /tools/shared.h | |
parent | ff15bfd99f16ad2fb2d200021d9cd8b3c26e6bd9 (diff) | |
download | libinput-7e7d657dabcbdce2489f57e17e894675f9dfe146.tar.gz |
tools: if the execdir is the builddir, add it to the path
When running libinput tools from the builddir, look up the subtools in the
builddir as well. Otherwise, add the install prefix to the list of lookup
locations.
This ensures that a) we're running builddir stuff against builddir stuff, but
also b) that we're not running builddir stuff against installed stuff because
that may give us false positives.
The test was squashed in from a separate patch and was
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.h')
-rw-r--r-- | tools/shared.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shared.h b/tools/shared.h index e30bc39f..364babe6 100644 --- a/tools/shared.h +++ b/tools/shared.h @@ -119,4 +119,7 @@ tools_list_device_quirks(struct quirks_context *ctx, void (*callback)(void *userdata, const char *str), void *userdata); +char * +tools_execdir_is_builddir(void); + #endif |