/
phprus
/
github_dpdk
Обзор
Документация
Войти
/
phprus
/
github_dpdk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
buildtools/subproject/meson.build
28 строк
1 KB
Robin Jarry
buildtools/cmdline: fix use in Meson subproject
11 окт 2024, 17:43
11 окт 2024, 17:43
672c329
Код
Авторство
О чём код?
# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2022 Intel Corporation message('DPDK subproject linking: ' + get_option('default_library')) subproject_cflags = ['-include', 'rte_config.h'] + machine_args if is_freebsd subproject_cflags += ['-D__BSD_VISIBLE'] endif if get_option('default_library') == 'static' dpdk_dep = declare_dependency( version: meson.project_version(), dependencies: dpdk_static_lib_deps, compile_args: subproject_cflags, # static library deps in DPDK build don't include "link_with" parameters, # so explicitly link-in both libs and drivers link_whole: dpdk_static_libraries + dpdk_drivers, link_args: dpdk_extra_ldflags) else dpdk_dep = declare_dependency( version: meson.project_version(), compile_args: subproject_cflags, # shared library deps include all necessary linking parameters dependencies: dpdk_shared_lib_deps) endif libdpdk_dep = dpdk_dep meson.override_find_program('dpdk-cmdline-gen.py', files('../dpdk-cmdline-gen.py'))