2017-12-18 15:56:25 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2019-04-02 03:54:58 +00:00
|
|
|
# Copyright(c) 2017-2019 Intel Corporation
|
|
|
|
|
2019-04-09 10:55:36 +00:00
|
|
|
if is_windows
|
2019-04-02 03:54:58 +00:00
|
|
|
subdir_done()
|
|
|
|
endif
|
2017-08-30 13:38:34 +00:00
|
|
|
|
2019-02-26 12:18:59 +00:00
|
|
|
apps = [
|
|
|
|
'pdump',
|
2018-02-16 16:53:36 +00:00
|
|
|
'proc-info',
|
2019-02-26 12:19:00 +00:00
|
|
|
'test-acl',
|
2018-02-16 16:53:36 +00:00
|
|
|
'test-bbdev',
|
2019-02-26 12:18:59 +00:00
|
|
|
'test-cmdline',
|
2018-12-12 12:08:01 +00:00
|
|
|
'test-compress-perf',
|
2018-02-16 16:53:36 +00:00
|
|
|
'test-crypto-perf',
|
|
|
|
'test-eventdev',
|
2020-03-09 12:42:23 +00:00
|
|
|
'test-fib',
|
2020-06-04 13:34:58 +00:00
|
|
|
'test-flow-perf',
|
2019-02-26 12:19:01 +00:00
|
|
|
'test-pipeline',
|
2019-10-21 14:35:46 +00:00
|
|
|
'test-pmd',
|
2020-07-29 18:09:57 +00:00
|
|
|
'test-regex',
|
2019-10-21 14:35:46 +00:00
|
|
|
'test-sad']
|
2018-02-16 16:53:34 +00:00
|
|
|
|
2020-04-13 14:55:30 +00:00
|
|
|
default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
|
2020-12-18 13:14:22 +00:00
|
|
|
default_ldflags = []
|
2021-01-12 00:36:02 +00:00
|
|
|
if get_option('default_library') == 'static' and not is_windows
|
2020-12-18 13:14:22 +00:00
|
|
|
default_ldflags += ['-Wl,--export-dynamic']
|
|
|
|
endif
|
2018-10-04 10:20:33 +00:00
|
|
|
|
2018-02-16 16:53:34 +00:00
|
|
|
foreach app:apps
|
|
|
|
build = true
|
|
|
|
name = app
|
|
|
|
sources = []
|
|
|
|
includes = []
|
2018-10-04 10:20:33 +00:00
|
|
|
cflags = default_cflags
|
2020-12-18 13:14:22 +00:00
|
|
|
ldflags = default_ldflags
|
2018-02-16 16:53:34 +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 = []
|
2020-06-30 14:14:28 +00:00
|
|
|
deps = []
|
2018-02-16 16:53:34 +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'
|
2018-10-27 09:17:50 +00:00
|
|
|
link_libs = dpdk_static_libraries + dpdk_drivers
|
2018-02-16 16:53:34 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
executable('dpdk-' + name,
|
|
|
|
sources,
|
|
|
|
c_args: cflags,
|
2020-12-18 13:14:22 +00:00
|
|
|
link_args: ldflags,
|
2018-02-16 16:53:34 +00:00
|
|
|
link_whole: link_libs,
|
|
|
|
dependencies: dep_objs,
|
2021-01-15 11:10:47 +00:00
|
|
|
include_directories: includes,
|
2018-02-16 16:53:34 +00:00
|
|
|
install_rpath: join_paths(get_option('prefix'),
|
|
|
|
driver_install_path),
|
|
|
|
install: true)
|
|
|
|
endif
|
|
|
|
endforeach
|
2019-02-26 12:19:03 +00:00
|
|
|
|
|
|
|
# special case the autotests
|
|
|
|
subdir('test')
|