1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2021 Intel Corporation
4 if not get_option('check_includes')
9 gen_c_file_for_header = find_program('gen_c_file_for_header.py')
10 gen_c_files = generator(gen_c_file_for_header,
11 output: '@BASENAME@.c',
12 arguments: ['@INPUT@', '@OUTPUT@'])
15 cflags += '-DALLOW_EXPERIMENTAL_API'
17 sources = files('main.c')
18 sources += gen_c_files.process(dpdk_chkinc_headers)
21 foreach l:enabled_libs
22 deps += get_variable('shared_rte_' + l)
25 executable('chkincs', sources,
27 include_directories: includes,
31 # run tests for c++ builds also
32 if not add_languages('cpp', required: false)
36 gen_cpp_files = generator(gen_c_file_for_header,
37 output: '@BASENAME@.cpp',
38 arguments: ['@INPUT@', '@OUTPUT@'])
40 cpp_sources = files('main.cpp')
41 cpp_sources += gen_cpp_files.process(dpdk_chkinc_headers)
43 executable('chkincs-cpp', cpp_sources,
44 cpp_args: ['-include', 'rte_config.h', cflags],
45 include_directories: includes,