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('quote-1-rs', 'rust',
version: '1.12.0',
license: 'MIT OR Apache-2.0',
default_options: [])
subproject('proc-macro2-1-rs', required: true)
proc_macro2_dep = dependency('proc-macro2-1-rs', native: true)
_quote_rs = static_library(
'quote',
files('src/lib.rs'),
gnu_symbol_visibility: 'hidden',
override_options: ['rust_std=2021', 'build.rust_std=2021'],
rust_abi: 'rust',
rust_args: [
'--cfg', 'feature="proc-macro"',
],
dependencies: [
proc_macro2_dep,
],
native: true,
)
quote_dep = declare_dependency(
link_with: _quote_rs,
)
meson.override_dependency('quote-1-rs', quote_dep, native: true)
|