Debian Codegraph @

test cases/unit/101 rlib linkage/meson.build

raw
1 project('rlib linkage', 'rust', default_options : ['rust_std=2018'])
2
3 lib = static_library(
4 'lib',
5 'lib.rs',
6 rust_crate_type : 'rlib',
7 )
8
9 lib2 = static_library(
10 'lib2',
11 'lib2.rs',
12 rust_crate_type : 'rlib',
13 link_with : lib,
14 )
15
16 exe = executable(
17 'exe',
18 'main.rs',
19 link_with : lib2,
20 )
21
22 test('main', exe)