eal: move OS-specific sub-directories
[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 allow_experimental_apis = true
15 deps += 'kvargs'
16 if dpdk_conf.has('RTE_USE_LIBBSD')
17         ext_deps += libbsd
18 endif
19 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
20         cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
21 endif
22 if cc.has_header('getopt.h')
23         cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
24 endif