eal: add telemetry as dependency
[dpdk.git] / lib / librte_eal / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
3
4 includes += global_inc
5 subdir('include')
6
7 subdir('common')
8
9 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
10 subdir(exec_env)
11
12 subdir(arch_subdir)
13
14 deps += ['kvargs']
15 if not is_windows
16         deps += ['telemetry']
17 endif
18 if dpdk_conf.has('RTE_USE_LIBBSD')
19         ext_deps += libbsd
20 endif
21 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
22         cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
23 endif
24 if cc.has_header('getopt.h')
25         cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
26 endif