xref: /Universal-ctags/Units/parser-meson.r/simple-meson.d/input-3.meson (revision 0cf77973e7bfb2caf7c64fd85317337f51a8a750)
1# Taken fromh https://mesonbuild.com/Custom-build-targets.html
2comp = find_program('custom_compiler')
3
4infile = 'source_code.txt'
5outfile = 'output.bin'
6
7mytarget = custom_target('targetname',
8  output : outfile,
9  input : infile,
10  command : [comp, '@INPUT@', '@OUTPUT@'],
11  install : true,
12  install_dir : 'subdir')
13