blob: 818ec59336b81ac7dd76a2317357c7b276cf490b [file] [log] [blame]
project('proc-macro2-1-rs', 'rust',
version: '1.0.84',
license: 'MIT OR Apache-2.0',
default_options: [])
subproject('unicode-ident-1-rs', required: true)
unicode_ident_dep = dependency('unicode-ident-1-rs', native: true)
_proc_macro2_rs = static_library(
'proc_macro2',
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"',
'--cfg', 'span_locations',
'--cfg', 'wrap_proc_macro',
],
dependencies: [
unicode_ident_dep,
],
native: true,
)
proc_macro2_dep = declare_dependency(
link_with: _proc_macro2_rs,
)
meson.override_dependency('proc-macro2-1-rs', proc_macro2_dep, native: true)