[v1 2/3] meson: add a meson option to install examples source
Gagandeep Singh
g.singh at nxp.com
Tue Aug 6 15:42:17 CEST 2024
Adding a meson option "enable_examples_source_install"
to enable or disable installation of examples source code.
Default value is true.
Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
---
meson.build | 7 ++++---
meson_options.txt | 2 ++
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index 8b248d4505..7cdd54f088 100644
--- a/meson.build
+++ b/meson.build
@@ -88,12 +88,13 @@ subdir('app')
# build docs
subdir('doc')
-# build any examples explicitly requested - useful for developers - and
-# install any example code into the appropriate install path
+# build any examples explicitly requested
subdir('examples')
-install_subdir('examples',
+if get_option('enable_examples_source_install')
+ install_subdir('examples',
install_dir: get_option('datadir') + '/dpdk',
exclude_files: ex_file_excludes)
+endif
# build kernel modules
subdir('kernel')
diff --git a/meson_options.txt b/meson_options.txt
index e6f83f3f92..4f498093e6 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -26,6 +26,8 @@ option('enable_driver_sdk', type: 'boolean', value: false, description:
'Install headers to build drivers.')
option('enable_examples_bin_install', type: 'boolean', value: false, description:
'Install examples binaries')
+option('enable_examples_source_install', type: 'boolean', value: true, description:
+ 'Install examples source code')
option('enable_kmods', type: 'boolean', value: true, description:
'[Deprecated - will be removed in future release] build kernel modules')
option('enable_libs', type: 'string', value: '', description:
--
2.25.1
More information about the dev
mailing list