sched: move grinder configuration
[dpdk.git] / lib / 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 exec_envs = {'freebsd': 0, 'linux': 1, 'windows': 2}
14 foreach env, id:exec_envs
15     dpdk_conf.set('RTE_ENV_' + env.to_upper(), id)
16     dpdk_conf.set10('RTE_EXEC_ENV_IS_' + env.to_upper(), (exec_env == env))
17 endforeach
18 dpdk_conf.set('RTE_EXEC_ENV', exec_envs[exec_env])
19
20 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
21 subdir(exec_env)
22
23 subdir(arch_subdir)
24
25 deps += ['kvargs']
26 if not is_windows
27     deps += ['telemetry']
28 endif
29 if dpdk_conf.has('RTE_USE_LIBBSD')
30     ext_deps += libbsd
31 endif
32 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
33     cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
34 endif