parent
1aa940d844
commit
59984f5014
1 changed files with 12 additions and 15 deletions
@ -1,21 +1,18 @@ |
|||||||
project('generatorcustom', 'c') |
project('generatorcustom', 'c') |
||||||
|
|
||||||
if meson.get_compiler('c').get_id() != 'msvc' |
creator = find_program('gen.py') |
||||||
creator = find_program('gen.py') |
catter = find_program('catter.py') |
||||||
catter = find_program('catter.py') |
|
||||||
|
|
||||||
gen = generator(creator, |
gen = generator(creator, |
||||||
output: '@BASENAME@.h', |
output: '@BASENAME@.h', |
||||||
arguments : ['@INPUT@', '@OUTPUT@']) |
arguments : ['@INPUT@', '@OUTPUT@']) |
||||||
|
|
||||||
hs = gen.process('res1.txt', 'res2.txt') |
hs = gen.process('res1.txt', 'res2.txt') |
||||||
|
|
||||||
allinone = custom_target('alltogether', |
allinone = custom_target('alltogether', |
||||||
input : hs, |
input : hs, |
||||||
output : 'alltogether.h', |
output : 'alltogether.h', |
||||||
command : [catter, '@INPUT@', '@OUTPUT@']) |
command : [catter, '@INPUT@', '@OUTPUT@']) |
||||||
|
|
||||||
executable('proggie', 'main.c', allinone) |
executable('proggie', 'main.c', allinone) |
||||||
else |
|
||||||
error('MESON_SKIP_TEST: Skipping test on VS backend; see: https://github.com/mesonbuild/meson/issues/1004') |
|
||||||
endif |
|
||||||
|
Loading…
Reference in new issue