On Tue, Apr 25, 2023 at 10:08 PM Tyler Retzlaff <roret...@linux.microsoft.com> wrote: > > Build only kvargs and telemetry when is_ms_compiler. > > Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com> > Acked-by: Bruce Richardson <bruce.richard...@intel.com> > --- > app/meson.build | 5 +++++ > drivers/meson.build | 4 ++++ > lib/meson.build | 7 +++++++ > usertools/meson.build | 4 ++++ > 4 files changed, 20 insertions(+) > > diff --git a/app/meson.build b/app/meson.build > index 74d2420..94fd7c9 100644 > --- a/app/meson.build > +++ b/app/meson.build > @@ -1,6 +1,11 @@ > # SPDX-License-Identifier: BSD-3-Clause > # Copyright(c) 2017-2019 Intel Corporation > > +if is_ms_compiler > + enabled_apps = []
Nit: This could be moved to the top of the tree meson.build: https://patchwork.dpdk.org/project/dpdk/patch/20230811132805.2434448-1-david.march...@redhat.com/ > + subdir_done() > +endif > + > disable_apps = ',' + get_option('disable_apps') > disable_apps = run_command(list_dir_globs, disable_apps, check: > true).stdout().split() > > diff --git a/drivers/meson.build b/drivers/meson.build > index 74ae8cb..749ec20 100644 > --- a/drivers/meson.build > +++ b/drivers/meson.build > @@ -1,6 +1,10 @@ > # SPDX-License-Identifier: BSD-3-Clause > # Copyright(c) 2017-2019 Intel Corporation > > +if is_ms_compiler > + subdir_done() > +endif > + > fs = import('fs') > > # Defines the order of dependencies evaluation > diff --git a/lib/meson.build b/lib/meson.build > index 40c632a..777d3d3 100644 > --- a/lib/meson.build > +++ b/lib/meson.build > @@ -66,6 +66,13 @@ libraries = [ > 'node', > ] > > +if is_ms_compiler > + libraries = [ The log library must be added here, now that telemetry depends on it. > + 'kvargs', > + 'telemetry', > + ] > +endif > + > optional_libs = [ > 'bitratestats', > 'cfgfile', > diff --git a/usertools/meson.build b/usertools/meson.build > index b6271a2..1a56248 100644 > --- a/usertools/meson.build > +++ b/usertools/meson.build > @@ -1,6 +1,10 @@ > # SPDX-License-Identifier: BSD-3-Clause > # Copyright(c) 2017 Intel Corporation > > +if is_ms_compiler > + subdir_done() > +endif > + > install_data([ > 'dpdk-devbind.py', > 'dpdk-pmdinfo.py', > -- > 1.8.3.1 > -- David Marchand