aboutsummaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/proc-macro2-1-rs/meson.build
blob: 8e601b50ccce3df04adabeb03b5c0512d08a7306 (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
30
31
32
33
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', 'no_literal_byte_character',
    '--cfg', 'no_literal_c_string',
    '--cfg', 'no_source_text',
    '--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)