examples: fix flattening directory layout on install
By installing the examples one-by-one in a loop in the examples meson.build file we effectively flattened out the structure of the examples folder and omitted some common and shared subfolders that were never directly built. Instead, we can remove the loop and just have the whole "examples" folder installed as-is in a single statement, preserving its directory structure, and thereby fixing the build of a number of the examples. Fixes: 2daf565f91b5 ("examples: install as part of ninja install") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
4630290af4
commit
e5b95003f1
@ -47,13 +47,6 @@ all_examples = [
|
||||
'vm_power_manager/guest_cli',
|
||||
'vmdq', 'vmdq_dcb',
|
||||
]
|
||||
# install all example code on install - irrespective of whether the example in
|
||||
# question is to be built as part of this build or not.
|
||||
foreach ex:all_examples
|
||||
install_subdir(ex,
|
||||
install_dir: get_option('datadir') + '/dpdk/examples',
|
||||
exclude_files: 'meson.build')
|
||||
endforeach
|
||||
|
||||
if get_option('examples') == ''
|
||||
subdir_done()
|
||||
|
@ -59,6 +59,9 @@ subdir('doc')
|
||||
# build any examples explicitly requested - useful for developers - and
|
||||
# install any example code into the appropriate install path
|
||||
subdir('examples')
|
||||
install_subdir('examples',
|
||||
install_dir: get_option('datadir') + '/dpdk',
|
||||
exclude_files: 'meson.build')
|
||||
|
||||
# build kernel modules if enabled
|
||||
if get_option('enable_kmods')
|
||||
|
Loading…
x
Reference in New Issue
Block a user