X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fbnx2x%2Fmeson.build;h=156f97d31f6467cac37daf968b0746cce9b0eadd;hb=bd7b62d7e05daea20b81da3e26d8210b4dacf9ba;hp=4892bb234c517d5fd4e41a45746fcaab5e7b3e13;hpb=acec04c4b2f5c75d244319e1d0ca17ea7d4da72d;p=dpdk.git diff --git a/drivers/net/bnx2x/meson.build b/drivers/net/bnx2x/meson.build index 4892bb234c..156f97d31f 100644 --- a/drivers/net/bnx2x/meson.build +++ b/drivers/net/bnx2x/meson.build @@ -1,15 +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', +)