xref: /dpdk/drivers/net/bnx2x/meson.build (revision 70cc4e1fed665712e68f2f45d98dda4abc6accda)
14d61166dSBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
24d61166dSBruce Richardson# Copyright(c) 2018 Intel Corporation
34d61166dSBruce Richardson
4b9d60b54SPallavi Kadamif is_windows
5b9d60b54SPallavi Kadam    build = false
6b9d60b54SPallavi Kadam    reason = 'not supported on Windows'
7b9d60b54SPallavi Kadam    subdir_done()
8b9d60b54SPallavi Kadamendif
9b9d60b54SPallavi Kadam
107be7dc6dSBruce Richardsondep = dependency('zlib', required: false, method: 'pkg-config')
114d61166dSBruce Richardsonbuild = dep.found()
12530588f3SBruce Richardsonreason = 'missing dependency, "zlib"'
134d61166dSBruce Richardsonext_deps += dep
144d61166dSBruce Richardsoncflags += '-DZLIB_CONST'
154ad4b20aSBruce Richardsonsources = files(
164ad4b20aSBruce Richardson        'bnx2x.c',
174d61166dSBruce Richardson        'bnx2x_ethdev.c',
184d61166dSBruce Richardson        'bnx2x_rxtx.c',
194d61166dSBruce Richardson        'bnx2x_stats.c',
204d61166dSBruce Richardson        'bnx2x_vfpf.c',
214d61166dSBruce Richardson        'ecore_sp.c',
224ad4b20aSBruce Richardson        'elink.c',
234ad4b20aSBruce Richardson)
24*70cc4e1fSDavid Marchand
25*70cc4e1fSDavid Marchandannotate_locks = false
26