Debian Codegraph @

test cases/windows/12 resources with custom targets/res/meson.build

raw
1 win = import('windows')
2
3 rc_writer = find_program('./gen-res.py')
4
5 rc_sources = []
6
7 foreach id : [1, 2]
8 rc_sources += custom_target('RC source file @0@'.format(id),
9 input : 'myres.rc.in',
10 output : 'myres_@[email protected]'.format(id),
11 command : [rc_writer, '@INPUT@', '@OUTPUT@', files('sample.ico')],
12 install : false,
13 build_always : false)
14 endforeach
15
16 rc_sources += files('myres_static.rc')
17
18 res = win.compile_resources(rc_sources,
19 include_directories: include_directories('.'))