2019-10-22 16:43:05 +01:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2019 Intel Corporation
|
|
|
|
|
|
|
|
# meson file, for building this example as part of a main DPDK build.
|
|
|
|
#
|
|
|
|
# To build this example as a standalone application with an already-installed
|
|
|
|
# DPDK instance, use 'make'
|
|
|
|
|
|
|
|
build = dpdk_conf.has('RTE_ARCH_X86_64')
|
2020-11-12 09:41:41 +00:00
|
|
|
if not build
|
2021-04-20 11:22:22 +01:00
|
|
|
subdir_done()
|
2020-11-12 09:41:41 +00:00
|
|
|
endif
|
|
|
|
|
2019-10-22 16:43:05 +01:00
|
|
|
deps += ['timer', 'lpm']
|
2020-04-23 00:33:45 +05:30
|
|
|
allow_experimental_apis = true
|
2019-10-22 16:43:05 +01:00
|
|
|
|
|
|
|
# get the performance thread (pt) architecture subdir
|
|
|
|
if dpdk_conf.has('RTE_ARCH_ARM64')
|
2021-04-20 11:22:22 +01:00
|
|
|
pt_arch_dir = '../common/arch/arm64'
|
2019-10-22 16:43:05 +01:00
|
|
|
else
|
2021-04-20 11:22:22 +01:00
|
|
|
pt_arch_dir = '../common/arch/x86'
|
2019-10-22 16:43:05 +01:00
|
|
|
endif
|
|
|
|
sources += files('main.c',
|
2021-04-20 11:22:22 +01:00
|
|
|
'../common/lthread.c',
|
|
|
|
'../common/lthread_cond.c',
|
|
|
|
'../common/lthread_diag.c',
|
|
|
|
'../common/lthread_mutex.c',
|
|
|
|
'../common/lthread_sched.c',
|
|
|
|
'../common/lthread_tls.c',
|
|
|
|
pt_arch_dir + '/ctx.c')
|
2019-10-22 16:43:05 +01:00
|
|
|
|
|
|
|
includes += include_directories('../common', pt_arch_dir)
|