diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-02 00:06:32 +0000 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-03-02 09:58:53 +0200 |
commit | dc9f6d13f4ddea5286ed4723627b79db1e2210d2 (patch) | |
tree | 7f66b66493e101aa07ccd80cc7dd8e59d4a09c81 /meson_options.txt | |
parent | 2107b0a53692fb329175bc16169c3699712187aa (diff) |
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 <richard.purdie@linuxfoundation.org>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 4 |
1 files changed, 4 insertions, 0 deletions
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)') |