From dc9f6d13f4ddea5286ed4723627b79db1e2210d2 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 2 Mar 2021 00:06:32 +0000 Subject: meson: Allow source location to be configurable Hardcoding a build source path inside a binary when cross compiling isn't appropriate and breaks build reproducibility. Allow the srcdir to be specified by an optional configuration option to meson which can be used to override with the correct path. Signed-off-by: Richard Purdie Reviewed-by: Petri Latvala --- meson_options.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index ff3abf08..bed63efa 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -50,3 +50,7 @@ option('use_rpath', type : 'boolean', value : false, description : 'Set runpath on installed executables for libigt.so') + +option('srcdir', + type : 'string', + description : 'Override the source code path embedded inside target binaries (optional)') -- cgit v1.2.3