X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnx2x%2Fmeson.build;h=156f97d31f6467cac37daf968b0746cce9b0eadd;hb=ca7036b4af3a82d258cca914e71171434b3d0320;hp=dd189ffc467e16da558b066ea424b800ea24c478;hpb=e30b4e566f47ab1ed6c322878022bc60980fe5c2;p=dpdk.git diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build index dd189ffc46..156f97d31f 100644 --- a/drivers/net/bnx2x/meson.build +++ b/drivers/net/bnx2x/meson.build @@ -1,14 +1,23 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation -dep = dependency('zlib', 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', +)