1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
14 includes += include_directories('base')
16 if arch_subdir == 'x86'
17 sources += files('ice_rxtx_vec_sse.c')
19 # compile AVX2 version if either:
20 # a. we have AVX supported in minimum instruction set baseline
21 # b. it's not minimum instruction set, but supported by compiler
22 if dpdk_conf.has('RTE_MACHINE_CPUFLAG_AVX2')
23 sources += files('ice_rxtx_vec_avx2.c')
24 elif cc.has_argument('-mavx2')
25 ice_avx2_lib = static_library('ice_avx2_lib',
26 'ice_rxtx_vec_avx2.c',
27 dependencies: [static_rte_ethdev,
28 static_rte_kvargs, static_rte_hash],
29 include_directories: includes,
30 c_args: [cflags, '-mavx2'])
31 objs += ice_avx2_lib.extract_objects('ice_rxtx_vec_avx2.c')