1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017-2019 Intel Corporation 3 4includes += global_inc 5subdir('include') 6 7subdir('common') 8 9if not is_windows 10 subdir('unix') 11endif 12 13exec_envs = {'freebsd': 0, 'linux': 1, 'windows': 2} 14foreach 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)) 17endforeach 18dpdk_conf.set('RTE_EXEC_ENV', exec_envs[exec_env]) 19 20dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1) 21subdir(exec_env) 22 23subdir(arch_subdir) 24 25deps += ['kvargs'] 26if not is_windows 27 deps += ['telemetry'] 28endif 29if dpdk_conf.has('RTE_USE_LIBBSD') 30 ext_deps += libbsd 31endif 32if cc.has_function('getentropy', prefix : '#include <unistd.h>') 33 cflags += '-DRTE_LIBEAL_USE_GETENTROPY' 34endif 35