mk: build with _GNU_SOURCE defined by default
[dpdk.git] / lib / librte_eal / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 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('common') # defines common_sources, common_objs, etc.
9
10 # Now do OS/exec-env specific settings, including building kernel modules
11 # The <exec-env>/eal/meson.build file should define env_sources, etc.
12 if host_machine.system() == 'linux'
13         dpdk_conf.set('RTE_EXEC_ENV_LINUXAPP', 1)
14         subdir('linuxapp/eal')
15
16 elif host_machine.system() == 'freebsd'
17         dpdk_conf.set('RTE_EXEC_ENV_BSDAPP', 1)
18         subdir('bsdapp/eal')
19
20 else
21         error('unsupported system type "@0@"'.format(host_machine.system()))
22 endif
23
24 version = 9  # the version of the EAL API
25 allow_experimental_apis = true
26 deps += 'compat'
27 deps += 'kvargs'
28 sources = common_sources + env_sources
29 objs = common_objs + env_objs
30 headers = common_headers + env_headers
31 includes = eal_inc