f-stack/dpdk/lib/eal/meson.build

35 lines
800 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
2020-06-18 16:55:50 +00:00
# Copyright(c) 2017-2019 Intel Corporation
2019-06-25 11:12:58 +00:00
2021-02-05 08:48:47 +00:00
includes += global_inc
subdir('include')
subdir('common')
if not is_windows
2022-09-06 04:00:10 +00:00
subdir('unix')
2021-02-05 08:48:47 +00:00
endif
2019-06-25 11:12:58 +00:00
2023-09-13 12:21:49 +00:00
exec_envs = {'freebsd': 0, 'linux': 1, 'windows': 2}
foreach env, id:exec_envs
dpdk_conf.set('RTE_ENV_' + env.to_upper(), id)
dpdk_conf.set10('RTE_EXEC_ENV_IS_' + env.to_upper(), (exec_env == env))
endforeach
dpdk_conf.set('RTE_EXEC_ENV', exec_envs[exec_env])
2020-06-18 16:55:50 +00:00
dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
2021-02-05 08:48:47 +00:00
subdir(exec_env)
2019-06-25 11:12:58 +00:00
2021-02-05 08:48:47 +00:00
subdir(arch_subdir)
deps += ['kvargs']
if not is_windows
2022-09-06 04:00:10 +00:00
deps += ['telemetry']
2021-02-05 08:48:47 +00:00
endif
2020-06-18 16:55:50 +00:00
if dpdk_conf.has('RTE_USE_LIBBSD')
2022-09-06 04:00:10 +00:00
ext_deps += libbsd
2020-06-18 16:55:50 +00:00
endif
if cc.has_function('getentropy', prefix : '#include <unistd.h>')
2022-09-06 04:00:10 +00:00
cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
2020-06-18 16:55:50 +00:00
endif