1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2021 Intel Corporation
4 if not get_option('check_includes')
10 # for windows, the shebang line in the script won't work.
11 error('option "check_includes" is not supported on windows')
14 gen_c_file_for_header = find_program('gen_c_file_for_header.py')
15 gen_c_files = generator(gen_c_file_for_header,
16 output: '@BASENAME@.c',
17 arguments: ['@INPUT@', '@OUTPUT@'])
20 cflags += '-Wno-unused-function' # needed if we include generic headers
21 cflags += '-DALLOW_EXPERIMENTAL_API'
23 sources = files('main.c')
24 sources += gen_c_files.process(dpdk_chkinc_headers)
27 foreach l:enabled_libs
28 deps += get_variable('static_rte_' + l)
31 executable('chkincs', sources,
33 include_directories: includes,
35 link_whole: dpdk_static_libraries + dpdk_drivers,