net/mlx5: add GTP PSC flow validation
[dpdk.git] / drivers / meson.build
index a5a6fed..f9febc5 100644 (file)
@@ -60,6 +60,7 @@ foreach subpath:subdirs
                name = drv
                fmt_name = ''
                sources = []
+               headers = []
                objs = []
                cflags = default_cflags
                includes = [include_directories(drv_path)]
@@ -76,7 +77,7 @@ foreach subpath:subdirs
 
                if disabled_drivers.contains(drv_path)
                        build = false
-                       reason = 'Explicitly disabled via build config'
+                       reason = 'explicitly disabled via build config'
                else
                        # pull in driver directory which should update all the local variables
                        subdir(drv_path)
@@ -89,7 +90,7 @@ foreach subpath:subdirs
                        foreach d:deps
                                if not is_variable('shared_rte_' + d)
                                        build = false
-                                       reason = 'Missing internal dependency, "@0@"'.format(d)
+                                       reason = 'missing internal dependency, "@0@"'.format(d)
                                        message('Disabling @1@ [@2@]: missing internal dependency "@0@"'
                                                        .format(d, name, 'drivers/' + drv_path))
                                else
@@ -136,6 +137,8 @@ foreach subpath:subdirs
 
                        dpdk_extra_ldflags += pkgconfig_extra_libs
 
+                       install_headers(headers)
+
                        # generate pmdinfo sources by building a temporary
                        # lib and then running pmdinfogen on the contents of
                        # that lib. The final lib reuses the object files and
@@ -183,8 +186,10 @@ foreach subpath:subdirs
                        lk_deps = [version_map, def_file, mingw_map]
                        if is_windows
                                if is_ms_linker
-                                       lk_args = ['-Wl,/def:' + def_file.full_path(),
-                                               '-Wl,/implib:drivers\\' + implib]
+                                       lk_args = ['-Wl,/def:' + def_file.full_path()]
+                                       if meson.version().version_compare('<0.54.0')
+                                               lk_args += ['-Wl,/implib:drivers\\' + implib]
+                                       endif
                                else
                                        lk_args = ['-Wl,--version-script=' + mingw_map.full_path()]
                                endif