Charles Brunet
d7bf365acd
Fix compiler.preprocess compile_args not used
...
As described in
https://github.com/mesonbuild/meson/issues/12715#issuecomment-1883448780 ,
the compiler.preprocess function ignores compile_args. This should fix
it in both ninja and visualstudio backends.
1 year ago
Stas Sergeev
92f638e1f9
compiler.preprocess: add depends kwarg
...
This patch adds 'depends' keyword to compiler.preprocess().
It allows to execute other targets before doing the preprocessing.
Test-case is added to demonstrate that functionality: it
generates the header before preprocessing the C source that
uses that generated header.
Thanks to @bruchar1 for getting this patch to work.
1 year ago
Xavier Claessens
d140342c14
comp.preprocess(): Do not treat every file as assembly
...
Fixes : #11940
2 years ago
Xavier Claessens
d17e3ce6ba
preprocess: Allow preprocessing any file extensions
2 years ago
Xavier Claessens
d21b64487e
preprocess: Add dependencies kwarg
2 years ago
Xavier Claessens
c2a55bfe43
preprocess: Allow custom_tgt, custom_idx and generated_list
...
It was documented to be supported but only File and str were actually
working.
2 years ago
Jussi Pakkanen
458dcf8aac
Condense test directory numbers.
2 years ago
Xavier Claessens
1d56df9409
Add unit test for cc.preprocess()
2 years ago