The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
578 B
17 lines
578 B
6 years ago
|
cc = meson.get_compiler('c')
|
||
|
cc_id = cc.get_id()
|
||
|
if cc_id == 'lcc'
|
||
|
error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
|
||
|
endif
|
||
|
|
||
|
generated_customTarget = custom_target('makeheader',
|
||
|
output: 'generated_customTarget.h',
|
||
|
command : [find_program('gen_custom.py'), '@OUTPUT0@'])
|
||
|
|
||
|
generated_generator = generator(find_program('gen_generator.py'),
|
||
|
output: '@BASENAME@.h',
|
||
|
arguments: ['@INPUT@', '@OUTPUT@'])
|
||
|
|
||
|
exe = executable('prog', 'prog.c', generated_customTarget, generated_generator.process('generated_generator.in'),
|
||
|
c_pch: ['pch/prog_pch.c', 'pch/prog.h'])
|