eal: introduce internal wrappers for file operations
[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 if not is_windows
10         subdir('unix')
11 endif
12
13 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
14 subdir(exec_env)
15
16 subdir(arch_subdir)
17
18 deps += ['kvargs']
19 if not is_windows
20         deps += ['telemetry']
21 endif
22 if dpdk_conf.has('RTE_USE_LIBBSD')
23         ext_deps += libbsd
24 endif
25 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
26         cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
27 endif
28 if cc.has_header('getopt.h')
29         cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
30 endif