f-stack/dpdk/drivers/regex/cn9k/meson.build

25 lines
578 B
Meson
Raw Normal View History

2021-02-05 08:48:47 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(C) 2020 Marvell International Ltd.
#
if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
2022-09-06 04:00:10 +00:00
build = false
reason = 'only supported on 64-bit Linux'
subdir_done()
2021-02-05 08:48:47 +00:00
endif
2023-09-11 06:58:14 +00:00
lib = cc.find_library('rxp_compiler', required: false)
2021-02-05 08:48:47 +00:00
if lib.found()
2022-09-06 04:00:10 +00:00
ext_deps += lib
2023-09-11 06:58:14 +00:00
ext_deps += cc.find_library('stdc++', required: true)
2022-09-06 04:00:10 +00:00
cflags += ['-DREE_COMPILER_SDK']
2021-02-05 08:48:47 +00:00
endif
2022-09-06 04:00:10 +00:00
sources = files(
2023-09-13 12:21:49 +00:00
'cn9k_regexdev.c',
'cn9k_regexdev_compiler.c',
2022-09-06 04:00:10 +00:00
)
2021-02-05 08:48:47 +00:00
2023-09-13 12:21:49 +00:00
deps += ['bus_pci', 'regexdev']
deps += ['common_cnxk', 'mempool_cnxk']