aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/101 rlib linkage/meson.build
blob: 2d15b2a1406e3ccab73243418e7736099d7a8889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
project('rlib linkage', 'rust', default_options : ['rust_std=2018'])

lib = static_library(
  'lib',
  'lib.rs',
  rust_crate_type : 'rlib',
)

lib2 = static_library(
  'lib2',
  'lib2.rs',
  rust_crate_type : 'rlib',
  link_with : lib,
)

exe = executable(
  'exe',
  'main.rs',
  link_with : lib2,
)

test('main', exe)