1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2023 Intel Corporation 3 4if is_windows 5 build = false 6 reason = 'not supported on Windows' 7 subdir_done() 8endif 9 10if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 11 subdir_done() 12endif 13 14deps += ['hash', 'common_idpf'] 15 16sources = files( 17 'cpfl_ethdev.c', 18 'cpfl_rxtx.c', 19 'cpfl_vchnl.c', 20 'cpfl_representor.c', 21 'cpfl_controlq.c', 22 'cpfl_rules.c', 23) 24 25if arch_subdir == 'x86' and cc_has_avx512 26 cflags += ['-DCC_AVX512_SUPPORT'] 27endif 28 29if dpdk_conf.has('RTE_HAS_JANSSON') 30 sources += files( 31 'cpfl_flow.c', 32 'cpfl_flow_engine_fxp.c', 33 'cpfl_flow_parser.c', 34 'cpfl_fxp_rule.c', 35 ) 36 ext_deps += jansson_dep 37endif 38