project('rcc', [], version: '0.1.2', license: 'BSD-2-Clause', ) prog_python = import('python').find_installation('python3') rcc_generator = generator(prog_python, output: '@BASENAME@.h', arguments: [ meson.current_source_dir()/'rcc', '--output=@OUTPUT@', '@EXTRA_ARGS@', '@INPUT@' ] ) rcc_exe = files('rcc') # example usage: # Dump multiple files into their own header #rcc_generator.process(files('a.svg', 'b.svg', 'c.svg'), extra_args: ['dump', '-ns=svg']) # Dump all the files into a single header #dump_h = custom_target('dump_h', # input: files('a.svg', 'b.svg', 'c.svg'), # output: 'dump.h', # command: [ python3, rcc_exe, '-o=@OUTPUT@', 'dump', '-ns=dump', '@INPUT@' ] #)