393fbd122c8c00b7bdca5369ac3ddb3bbcf135b7
[dpdk.git] / examples / performance-thread / pthread_shim / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2019 Intel Corporation
3
4 # meson file, for building this example as part of a main DPDK build.
5 #
6 # To build this example as a standalone application with an already-installed
7 # DPDK instance, use 'make'
8
9 build = dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')
10 deps += ['timer']
11
12 # get the performance thread (pt) architecture subdir
13 if dpdk_conf.has('RTE_ARCH_ARM64')
14         pt_arch_dir = '../common/arch/arm64'
15 else
16         pt_arch_dir = '../common/arch/x86'
17 endif
18 sources += files('main.c',
19         'pthread_shim.c',
20         '../common/lthread.c',
21         '../common/lthread_cond.c',
22         '../common/lthread_diag.c',
23         '../common/lthread_mutex.c',
24         '../common/lthread_sched.c',
25         '../common/lthread_tls.c',
26         pt_arch_dir + '/ctx.c')
27
28 includes += include_directories('../common', pt_arch_dir)