Debian Codegraph @

test cases/rust/12 bindgen/sub/meson.build

raw
1 gen_rs3 = rust.bindgen(
2 input : [gen_h, gen2_h],
3 output : 'gen.rs',
4 )
5
6 f3 = configure_file(
7 input : '../src/main2.rs',
8 output : 'main3.rs',
9 copy : true,
10 )
11
12 rust_bin3 = executable(
13 'rust_bin3',
14 [f3, gen_rs3],
15 link_with : c_lib,
16 )
17
18 test('generated header (subdir)', rust_bin3)
19
20 gen4 = rust.bindgen(
21 input : '../src/header.h',
22 output : 'header.rs',
23 include_directories : inc,
24 )
25
26 # see: https://github.com/mesonbuild/meson/issues/8160
27 f4 = configure_file(
28 input : '../src/main.rs',
29 output : 'main.rs',
30 copy : true,
31 )
32
33 rust_bin4 = executable(
34 'rust_bin_subdir',
35 [f4, gen4],
36 link_with : c_lib,
37 )
38
39 test('static header (subdir)', rust_bin4)