f-stack/dpdk/app/meson.build

74 lines
1.5 KiB
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
2020-06-18 16:55:50 +00:00
if is_windows
subdir_done()
endif
apps = [
'pdump',
2019-06-25 11:12:58 +00:00
'proc-info',
2020-06-18 16:55:50 +00:00
'test-acl',
2019-06-25 11:12:58 +00:00
'test-bbdev',
2020-06-18 16:55:50 +00:00
'test-cmdline',
'test-compress-perf',
2019-06-25 11:12:58 +00:00
'test-crypto-perf',
'test-eventdev',
2021-02-05 08:48:47 +00:00
'test-fib',
'test-flow-perf',
2020-06-18 16:55:50 +00:00
'test-pipeline',
'test-pmd',
2021-02-05 08:48:47 +00:00
'test-regex',
2020-06-18 16:55:50 +00:00
'test-sad']
2019-06-25 11:12:58 +00:00
2021-02-05 08:48:47 +00:00
default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
2022-09-02 04:40:05 +00:00
default_ldflags = []
if get_option('default_library') == 'static' and not is_windows
default_ldflags += ['-Wl,--export-dynamic']
endif
2019-06-25 11:12:58 +00:00
foreach app:apps
build = true
name = app
sources = []
includes = []
cflags = default_cflags
2022-09-02 04:40:05 +00:00
ldflags = default_ldflags
2019-06-25 11:12:58 +00:00
objs = [] # other object files to link against, used e.g. for
# instruction-set optimized versions of code
# use "deps" for internal DPDK dependencies, and "ext_deps" for
# external package/library requirements
ext_deps = []
2021-02-05 08:48:47 +00:00
deps = []
2019-06-25 11:12:58 +00:00
subdir(name)
if build
dep_objs = []
foreach d:deps
dep_objs += get_variable(get_option('default_library')
+ '_rte_' + d)
endforeach
link_libs = []
if get_option('default_library') == 'static'
link_libs = dpdk_static_libraries + dpdk_drivers
endif
executable('dpdk-' + name,
sources,
c_args: cflags,
2022-09-02 04:40:05 +00:00
link_args: ldflags,
2019-06-25 11:12:58 +00:00
link_whole: link_libs,
dependencies: dep_objs,
2022-09-02 04:40:05 +00:00
include_directories: includes,
2019-06-25 11:12:58 +00:00
install_rpath: join_paths(get_option('prefix'),
driver_install_path),
install: true)
endif
endforeach
2020-06-18 16:55:50 +00:00
# special case the autotests
subdir('test')