0267c3b9d8dcc320a1829038575e03ee981bf7bb
[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 dpdk_conf.has('RTE_USE_LIBBSD')
16         ext_deps += libbsd
17 endif
18 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
19         cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
20 endif
21 if cc.has_header('getopt.h')
22         cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
23 endif