1project('proc-macro2-1-rs', 'rust', 2 version: '1.0.84', 3 license: 'MIT OR Apache-2.0', 4 default_options: []) 5 6subproject('unicode-ident-1-rs', required: true) 7 8unicode_ident_dep = dependency('unicode-ident-1-rs', native: true) 9 10_proc_macro2_rs = static_library( 11 'proc_macro2', 12 files('src/lib.rs'), 13 gnu_symbol_visibility: 'hidden', 14 override_options: ['rust_std=2021', 'build.rust_std=2021'], 15 rust_abi: 'rust', 16 rust_args: [ 17 '--cfg', 'feature="proc-macro"', 18 '--cfg', 'span_locations', 19 '--cfg', 'wrap_proc_macro', 20 ], 21 dependencies: [ 22 unicode_ident_dep, 23 ], 24 native: true, 25) 26 27proc_macro2_dep = declare_dependency( 28 link_with: _proc_macro2_rs, 29) 30 31meson.override_dependency('proc-macro2-1-rs', proc_macro2_dep, native: true) 32