net/mlx5: add flex parser DevX object management
[dpdk.git] / drivers / net / bnx2x / meson.build
index e3c6888..156f97d 100644 (file)
@@ -1,14 +1,23 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Intel Corporation
 
-dep = cc.find_library('z', required: false)
+if is_windows
+    build = false
+    reason = 'not supported on Windows'
+    subdir_done()
+endif
+
+dep = dependency('zlib', required: false, method: 'pkg-config')
 build = dep.found()
+reason = 'missing dependency, "zlib"'
 ext_deps += dep
 cflags += '-DZLIB_CONST'
-sources = files('bnx2x.c',
-       'bnx2x_ethdev.c',
-       'bnx2x_rxtx.c',
-       'bnx2x_stats.c',
-       'bnx2x_vfpf.c',
-       'ecore_sp.c',
-       'elink.c')
+sources = files(
+        'bnx2x.c',
+        'bnx2x_ethdev.c',
+        'bnx2x_rxtx.c',
+        'bnx2x_stats.c',
+        'bnx2x_vfpf.c',
+        'ecore_sp.c',
+        'elink.c',
+)