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 += '-DALLOW_EXPERIMENTAL_API'
22 sources = files('main.c')
23 sources += gen_c_files.process(dpdk_chkinc_headers)
26 foreach l:enabled_libs
27 deps += get_variable('static_rte_' + l)
30 executable('chkincs', sources,
32 include_directories: includes,
34 link_whole: dpdk_static_libraries + dpdk_drivers,