8dcb898c65
Switch from using tabs to 4 spaces for meson.build indentation, for the basic infrastructure and tooling files, as well as doc and kernel directories. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
36 lines
927 B
Meson
36 lines
927 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2021 Intel Corporation
|
|
|
|
if not get_option('check_includes')
|
|
build = false
|
|
subdir_done()
|
|
endif
|
|
|
|
if is_windows
|
|
# for windows, the shebang line in the script won't work.
|
|
error('option "check_includes" is not supported on windows')
|
|
endif
|
|
|
|
gen_c_file_for_header = find_program('gen_c_file_for_header.py')
|
|
gen_c_files = generator(gen_c_file_for_header,
|
|
output: '@BASENAME@.c',
|
|
arguments: ['@INPUT@', '@OUTPUT@'])
|
|
|
|
cflags = machine_args
|
|
cflags += '-DALLOW_EXPERIMENTAL_API'
|
|
|
|
sources = files('main.c')
|
|
sources += gen_c_files.process(dpdk_chkinc_headers)
|
|
|
|
deps = []
|
|
foreach l:enabled_libs
|
|
deps += get_variable('static_rte_' + l)
|
|
endforeach
|
|
|
|
executable('chkincs', sources,
|
|
c_args: cflags,
|
|
include_directories: includes,
|
|
dependencies: deps,
|
|
link_whole: dpdk_static_libraries + dpdk_drivers,
|
|
install: false)
|