Debian Codegraph @

subprojects/packagefiles/pest_generator-2-rs/meson.build

raw
1 project(
2 'pest_generator',
3 'rust',
4 version : '2.8.0',
5 license : 'MIT OR Apache-2.0',
6 meson_version : '>= 1.7.0',
7 )
8
9 pest = subproject('pest-2-rs').get_variable('lib')
10 pest_meta = subproject('pest_meta-2-rs').get_variable('lib')
11 quote = subproject('quote-1-rs').get_variable('lib')
12 pm2 = subproject('proc-macro2-1-rs').get_variable('lib')
13 syn = subproject('syn-2-rs').get_variable('lib')
14
15 rust_args = [
16 '--cfg', 'feature="std"',
17 ]
18
19 lib = static_library(
20 'pest_generator',
21 'src/lib.rs',
22 rust_args : rust_args,
23 override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
24 link_with : [pest, pest_meta, pm2, quote, syn],
25 rust_abi : 'rust',
26 native : true,
27 )
28
29 dep_pest_generator = declare_dependency(
30 link_with : [lib, pest, pest_meta, quote, syn],
31 )