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',
|
2019-02-26 12:19:01 +00:00
|
|
|
'test-pipeline',
|
2019-10-21 14:35:46 +00:00
|
|
|
'test-pmd',
|
|
|
|
'test-sad']
|
2018-02-16 16:53:34 +00:00
|
|
|
|
|
|
|
# for BSD only
|
|
|
|
lib_execinfo = cc.find_library('execinfo', required: false)
|
|
|
|
|
2020-04-13 14:55:30 +00:00
|
|
|
default_cflags = machine_args + ['-DALLOW_EXPERIMENTAL_API']
|
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
|
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 = []
|
2018-10-27 09:17:50 +00:00
|
|
|
deps = dpdk_app_link_libraries
|
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
|
|
|
|
dep_objs += lib_execinfo
|
|
|
|
|
|
|
|
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,
|
|
|
|
link_whole: link_libs,
|
|
|
|
dependencies: dep_objs,
|
|
|
|
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')
|