X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fenic%2Fmeson.build;h=94fcc79c6976f9410de0beb767d43b4555474216;hb=31d7c6f7d424c533b0a4dd9b4408b814ac7852f1;hp=7f4836d0f86edcdd592c7a9782d752c0b3eafa31;hpb=39cf83f1771bd6b2050b7f3572a278bc2e58a1eb;p=dpdk.git diff --git a/drivers/net/enic/meson.build b/drivers/net/enic/meson.build index 7f4836d0f8..94fcc79c69 100644 --- a/drivers/net/enic/meson.build +++ b/drivers/net/enic/meson.build @@ -1,13 +1,18 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Cisco Systems, Inc. +if is_windows + build = false + reason = 'not supported on Windows' + subdir_done() +endif + sources = files( 'base/vnic_cq.c', 'base/vnic_dev.c', 'base/vnic_intr.c', 'base/vnic_rq.c', 'base/vnic_wq.c', - 'enic_clsf.c', 'enic_ethdev.c', 'enic_flow.c', 'enic_fm_flow.c', @@ -20,7 +25,7 @@ deps += ['hash'] includes += include_directories('base') # The current implementation assumes 64-bit pointers -if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2') and dpdk_conf.get('RTE_ARCH_64') +if cc.get_define('__AVX2__', args: machine_args) != '' and dpdk_conf.get('RTE_ARCH_64') sources += files('enic_rxtx_vec_avx2.c') # Build the avx2 handler if the compiler supports it, even though 'machine' # does not. This is to support users who build for the min supported machine