blob: 695124cd2e3762d946a4cc8af424486d9d93dc88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
project('generated rust main', 'rust')
gen = find_program('gen.py')
c = custom_target(
'custom_target',
command : [gen, '@OUTPUT@'],
output : ['main.rs'],
)
executable('custom_target_main', c)
executable('custom_target_index_main', c[0])
gener = generator(gen, arguments : ['@OUTPUT@'], output : '@BASENAME@.rs')
# Doesn't actually use gen.py as input, just a limitation of generators
executable('generator_main', gener.process(['gen.py']))
subdir('sub')
executable('custom_target_subdir_main', s)
executable('link_with_generated_lib', 'generated_lib_main.rs', link_with : lib)
|