parent
df37c79dc9
commit
ec0a73b1e2
2 changed files with 34 additions and 17 deletions
@ -1,7 +1,13 @@ |
|||||||
gen = find_program('manygen.py') |
gen = find_program('manygen.py') |
||||||
|
|
||||||
|
if meson.get_compiler('c').get_id() == 'msvc' |
||||||
|
outfiles = ['gen_func.lib', 'gen_func.c', 'gen_func.h', 'gen_func.o'] |
||||||
|
else |
||||||
|
outfiles = ['gen_func.a', 'gen_func.c', 'gen_func.h', 'gen_func.o'] |
||||||
|
endif |
||||||
|
|
||||||
generated = custom_target('manygen', |
generated = custom_target('manygen', |
||||||
output : ['gen_func.a', 'gen_func.c', 'gen_func.h', 'gen_func.o'], |
output : outfiles, |
||||||
input : ['funcinfo.def'], |
input : ['funcinfo.def'], |
||||||
command : [gen, '@INPUT@', '@OUTDIR@'], |
command : [gen, '@INPUT@', '@OUTDIR@'], |
||||||
) |
) |
||||||
|
Loading…
Reference in new issue