diff options
| author | Bruce Richardson <[email protected]> | 2021-02-25 15:29:01 +0000 |
|---|---|---|
| committer | Thomas Monjalon <[email protected]> | 2021-04-09 19:07:25 +0200 |
| commit | bc4617433845c39af339ca76afd6f00a706169c5 (patch) | |
| tree | 0e6313ddd49790a635fd011a91fe2c7d1e62f984 /meson.build | |
| parent | af68c1d699be6c369e296b775bdbf13ae18b79cc (diff) | |
build: enable a developer mode setting
To allow support for additional build checks and tests only really
relevant for developers, we add support for a developer mode option to
DPDK. The default, "auto", value for this enables developer mode if a
".git" folder is found at the root of the source tree - as was the case
with the previous "make" build system. There is also support for
explicitly enabling or disabling this option using "meson configure" if
so desired.
Signed-off-by: Bruce Richardson <[email protected]>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7778e18200..c914bc6298 100644 --- a/meson.build +++ b/meson.build @@ -11,6 +11,20 @@ project('DPDK', 'C', meson_version: '>= 0.47.1' ) +# check for developer mode +developer_mode = false +if get_option('developer_mode').auto() + if meson.version().version_compare('>=0.53') # fs module available + fs = import('fs') + developer_mode = fs.is_dir('.git') + endif +else + developer_mode = get_option('developer_mode').enabled() +endif +if developer_mode + message('## Building in Developer Mode ##') +endif + # set up some global vars for compiler, platform, configuration, etc. cc = meson.get_compiler('c') dpdk_conf = configuration_data() |
