build: skip pmdinfogen on Windows

pmdinfogen generation is currently unsupported for Windows.
The relevant part in meson.build is skipped.

Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
This commit is contained in:
Tal Shnaiderman 2020-06-29 15:37:37 +03:00 committed by Thomas Monjalon
parent 014a7ec6c4
commit abd5c69bf6

View File

@ -111,19 +111,20 @@ foreach class:dpdk_driver_classes
# lib and then running pmdinfogen on the contents of # lib and then running pmdinfogen on the contents of
# that lib. The final lib reuses the object files and # that lib. The final lib reuses the object files and
# adds in the new source file. # adds in the new source file.
out_filename = lib_name + '.pmd.c' if not is_windows
tmp_lib = static_library('tmp_' + lib_name, out_filename = lib_name + '.pmd.c'
sources, tmp_lib = static_library('tmp_' + lib_name,
include_directories: includes, sources,
dependencies: static_deps, include_directories: includes,
c_args: cflags) dependencies: static_deps,
objs += tmp_lib.extract_all_objects() c_args: cflags)
sources = custom_target(out_filename, objs += tmp_lib.extract_all_objects()
command: [pmdinfo, tmp_lib.full_path(), sources = custom_target(out_filename,
'@OUTPUT@', pmdinfogen], command: [pmdinfo, tmp_lib.full_path(),
output: out_filename, '@OUTPUT@', pmdinfogen],
depends: [pmdinfogen, tmp_lib]) output: out_filename,
depends: [pmdinfogen, tmp_lib])
endif
version_map = '@0@/@1@/@2@_version.map'.format( version_map = '@0@/@1@/@2@_version.map'.format(
meson.current_source_dir(), meson.current_source_dir(),
drv_path, lib_name) drv_path, lib_name)