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.
29 lines
705 B
29 lines
705 B
5 years ago
|
project('generatorcustom', 'c')
|
||
|
|
||
|
creator = find_program('gen.py')
|
||
|
catter = find_program('catter.py')
|
||
4 years ago
|
gen_resx = find_program('gen-resx.py')
|
||
5 years ago
|
|
||
|
gen = generator(creator,
|
||
|
output: '@BASENAME@.h',
|
||
|
arguments : ['@INPUT@', '@OUTPUT@'])
|
||
|
|
||
4 years ago
|
res3 = custom_target('gen-res3',
|
||
|
output : 'res3.txt',
|
||
|
command : [gen_resx, '@OUTPUT@', '3'])
|
||
|
|
||
|
res4 = custom_target('gen-res4',
|
||
|
output : 'res4.txt',
|
||
|
command : [gen_resx, '@OUTPUT@', '4'])
|
||
|
|
||
|
hs = gen.process('res1.txt', 'res2.txt', res3, res4[0])
|
||
5 years ago
|
|
||
|
allinone = custom_target('alltogether',
|
||
|
input : hs,
|
||
|
output : 'alltogether.h',
|
||
|
command : [catter, '@INPUT@', '@OUTPUT@'])
|
||
|
|
||
4 years ago
|
proggie = executable('proggie', 'main.c', allinone)
|
||
|
|
||
|
test('proggie', proggie)
|