-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
37 lines (29 loc) · 998 Bytes
/
meson.build
File metadata and controls
37 lines (29 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2023 Marvell.
project('libmldpc', 'c',
version : '1.0',
default_options : ['c_std=c11'],
)
# _GNU_SOURCE is required to expose POSIX/GNU extensions (e.g. strnlen) that
# DPDK headers rely on but that are not visible under strict -std=c11.
add_project_arguments('-D_GNU_SOURCE', language : 'c')
# Dependencies
# jansson: JSON parsing used in src/mldpc.c to load the EAL config file
jansson_dep = dependency('jansson', required : true)
# libdpdk: DPDK EAL, mempool, memzone, and ML device APIs
dpdk_dep = dependency('libdpdk', required : true)
# Shared include directory
inc_dir = include_directories('include')
subdir('include')
subdir('src')
if get_option('enable_tests')
subdir('test')
endif
if get_option('enable_docs')
doxygen = find_program('doxygen', required : false)
if doxygen.found()
subdir('docs')
else
warning('enable_docs was set but doxygen was not found; skipping documentation build')
endif
endif