xref: /dpdk/drivers/baseband/turbo_sw/meson.build (revision b7b8de26f34d39c8aaded44d8a468da5e68f19da)
1a489f5dbSNicolas Chautru# SPDX-License-Identifier: BSD-3-Clause
2a489f5dbSNicolas Chautru# Copyright(c) 2019 Intel Corporation
3a489f5dbSNicolas Chautru
43b5b854bSNicolas Chautru# check for FlexRAN SDK libraries
53b5b854bSNicolas Chautrudep_turbo = dependency('flexran_sdk_turbo', required: false)
63b5b854bSNicolas Chautrudep_dec5g = dependency('flexran_sdk_ldpc_decoder_5gnr', required: false)
7a489f5dbSNicolas Chautru
83b5b854bSNicolas Chautruif dep_turbo.found()
997cfdbfaSThomas Monjalon    ext_deps += cc.find_library('stdc++', required: true)
1097cfdbfaSThomas Monjalon    ext_deps += cc.find_library('irc', required: true)
1197cfdbfaSThomas Monjalon    ext_deps += cc.find_library('imf', required: true)
1297cfdbfaSThomas Monjalon    ext_deps += cc.find_library('ipps', required: true)
1397cfdbfaSThomas Monjalon    ext_deps += cc.find_library('svml', required: true)
143b5b854bSNicolas Chautru    ext_deps += dep_turbo
153b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_crc', required: true)
163b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_rate_matching', required: true)
173b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_common', required: true)
1893b043dfSNicolas Chautru    cflags += ['-DRTE_BBDEV_SDK_AVX2']
19a489f5dbSNicolas Chautruendif
2093b043dfSNicolas Chautru
213b5b854bSNicolas Chautruif dep_dec5g.found()
223b5b854bSNicolas Chautru    ext_deps += dep_dec5g
233b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_ldpc_encoder_5gnr', required: true)
243b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_LDPC_ratematch_5gnr', required: true)
253b5b854bSNicolas Chautru    ext_deps += dependency('flexran_sdk_rate_dematching_5gnr', required: true)
2693b043dfSNicolas Chautru    cflags += ['-DRTE_BBDEV_SDK_AVX512']
27c769c711SNicolas Chautruendif
28a489f5dbSNicolas Chautru
29*b7b8de26SDavid Marchanddeps += ['bus_vdev', 'ring']
30a489f5dbSNicolas Chautrusources = files('bbdev_turbo_software.c')
31