Hi I need do pass to gcc an header file with the following path invocation
-I<folder> -include <header>
e.g.
-I/usr/include/dpdk -include rte_config.h
in meson build i decide to pass it as c_args
but than in the ninja build I found
'-I/usr/include/dpdk$ -include$ rte_config.h'
with a need of a post processing to clean the ninja file,
Is possible to avoid this problem?
in meson.build I have
if (get_option('avx_opt') == 'avx512')
build_args_avx = [
'-DNEWLDPC=1',
'-mavx512f',
'-mavx512cd',
'-mavx512vl',
'-mavx512bw',
'-mavx512dq',
]
else
build_args_avx = [
'-DNEWLDPC=0',
]
endif
if host_machine.system() == 'qnx7'
build_args_machine = [
'-march=broadwell',
]
else
build_args_machine = [
'-I/usr/include/dpdk -include rte_config.h',
'-march=broadwell',
]
endif
build_args = [
'-imacros' + sourceRoot + '/src/nr5g-phy/common/inc/phyConfig.h',
'-imacros' + sourceRoot + '/project/infoBuild.h',
'-mfpmath=387',
'-ffast-math',
build_args_machine,
build_args_avx,
'-g',
'-Wall',
'-Werror',
'-O3',
'-std=gnu11',
'-fms-extensions',
]
...
project_source_files,
dependencies: [...],
install : false,
c_args : build_args,
link_args : '-Wl,--allow-shlib-undefined',
include_directories : public_headers,
build_rpath : '/lsu/sdr/lib'
)
'''