eal: move common header files
[dpdk.git] / lib / librte_eal / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
3
4 # Custom EAL processing. EAL is complicated enough that it can't just
5 # have a straight list of headers and source files.
6 # Initially pull in common settings
7 eal_inc = [global_inc]
8 subdir('include')
9
10 subdir('common')
11
12 # Now do OS/exec-env specific settings, including building kernel modules
13 # The <exec-env>/eal/meson.build file should define env_sources, etc.
14 dpdk_conf.set('RTE_EXEC_ENV_' + exec_env.to_upper(), 1)
15 subdir(exec_env + '/eal')
16
17 subdir(arch_subdir)
18
19 allow_experimental_apis = true
20 deps += 'kvargs'
21 if dpdk_conf.has('RTE_USE_LIBBSD')
22         ext_deps += libbsd
23 endif
24 if cc.has_function('getentropy', prefix : '#include <unistd.h>')
25         cflags += '-DRTE_LIBEAL_USE_GETENTROPY'
26 endif
27 if cc.has_header('getopt.h')
28         cflags += ['-DHAVE_GETOPT_H', '-DHAVE_GETOPT', '-DHAVE_GETOPT_LONG']
29 endif
30 sources += env_sources
31 objs = env_objs
32 headers += env_headers
33 includes += eal_inc