1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright (c) 2022 Marvell. 3 4if is_ms_compiler 5 build = false 6 reason = 'not supported building with Visual Studio Toolset' 7 subdir_done() 8endif 9 10sources = files( 11 'rte_mldev_pmd.c', 12 'rte_mldev.c', 13 'mldev_utils.c', 14) 15 16if (dpdk_conf.has('RTE_ARCH_ARM64') and 17 cc.get_define('__ARM_NEON', args: machine_args) != '') 18 sources += files('mldev_utils_neon.c') 19else 20 sources += files('mldev_utils_scalar.c') 21endif 22 23if (dpdk_conf.has('RTE_ARCH_ARM64') and 24 cc.get_define('__ARM_NEON', args: machine_args) != '' and 25 cc.get_define('__ARM_FEATURE_BF16', args: machine_args) != '') 26 sources += files('mldev_utils_neon_bfloat16.c') 27else 28 sources += files('mldev_utils_scalar_bfloat16.c') 29endif 30 31headers = files( 32 'rte_mldev.h', 33) 34 35indirect_headers += files( 36 'rte_mldev_core.h', 37) 38 39driver_sdk_headers += files( 40 'rte_mldev_pmd.h', 41 'mldev_utils.h', 42) 43 44deps += ['mempool', 'mbuf'] 45 46if get_option('buildtype').contains('debug') 47 cflags += [ '-DRTE_LIBRTE_ML_DEV_DEBUG' ] 48else 49 cflags += [ '-URTE_LIBRTE_ML_DEV_DEBUG' ] 50endif 51