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