12b74dd91SManos Pitsidianakisproject('proc-macro2-1-rs', 'rust',
2*700784bfSPaolo Bonzini  meson_version: '>=1.5.0',
32b74dd91SManos Pitsidianakis  version: '1.0.84',
42b74dd91SManos Pitsidianakis  license: 'MIT OR Apache-2.0',
52b74dd91SManos Pitsidianakis  default_options: [])
62b74dd91SManos Pitsidianakis
72b74dd91SManos Pitsidianakissubproject('unicode-ident-1-rs', required: true)
82b74dd91SManos Pitsidianakis
92b74dd91SManos Pitsidianakisunicode_ident_dep = dependency('unicode-ident-1-rs', native: true)
102b74dd91SManos Pitsidianakis
112b74dd91SManos Pitsidianakis_proc_macro2_rs = static_library(
122b74dd91SManos Pitsidianakis  'proc_macro2',
132b74dd91SManos Pitsidianakis  files('src/lib.rs'),
142b74dd91SManos Pitsidianakis  gnu_symbol_visibility: 'hidden',
152b74dd91SManos Pitsidianakis  override_options: ['rust_std=2021', 'build.rust_std=2021'],
162b74dd91SManos Pitsidianakis  rust_abi: 'rust',
172b74dd91SManos Pitsidianakis  rust_args: [
182b74dd91SManos Pitsidianakis    '--cfg', 'feature="proc-macro"',
19646b5378SPaolo Bonzini    '--cfg', 'no_literal_byte_character',
20646b5378SPaolo Bonzini    '--cfg', 'no_literal_c_string',
21646b5378SPaolo Bonzini    '--cfg', 'no_source_text',
222b74dd91SManos Pitsidianakis    '--cfg', 'wrap_proc_macro',
232b74dd91SManos Pitsidianakis  ],
242b74dd91SManos Pitsidianakis  dependencies: [
252b74dd91SManos Pitsidianakis    unicode_ident_dep,
262b74dd91SManos Pitsidianakis  ],
272b74dd91SManos Pitsidianakis  native: true,
282b74dd91SManos Pitsidianakis)
292b74dd91SManos Pitsidianakis
302b74dd91SManos Pitsidianakisproc_macro2_dep = declare_dependency(
312b74dd91SManos Pitsidianakis  link_with: _proc_macro2_rs,
322b74dd91SManos Pitsidianakis)
332b74dd91SManos Pitsidianakis
342b74dd91SManos Pitsidianakismeson.override_dependency('proc-macro2-1-rs', proc_macro2_dep, native: true)
35