aboutsummaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/bilge-0.2-rs/meson.build
blob: a6ed4a8f0cde70be0bf75cd1ad40bc64e3a11a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
project(
  'bilge-0.2-rs',
  'rust',
  version : '0.2.0',
  license : 'MIT or Apache-2.0',
)

subproject('arbitrary-int-1-rs', required: true)
subproject('bilge-impl-0.2-rs', required: true)

arbitrary_int_dep = dependency('arbitrary-int-1-rs')
bilge_impl_dep = dependency('bilge-impl-0.2-rs')

lib = static_library(
  'bilge',
  'src/lib.rs',
  override_options : ['rust_std=2021', 'build.rust_std=2021'],
  rust_abi : 'rust',
  dependencies: [
    arbitrary_int_dep,
    bilge_impl_dep,
  ],
)

bilge_dep = declare_dependency(
  link_with : [lib],
)

meson.override_dependency('bilge-0.2-rs', bilge_dep)