Debian Codegraph @

subprojects/packagefiles/libc-0.2-rs/meson.build

raw
1 # Copyright © 2024 Google
2 # SPDX-License-Identifier: MIT
3
4 project(
5 'libc',
6 'rust',
7 version : '0.2.168',
8 license : 'MIT OR Apache-2.0',
9 meson_version : '>= 1.7.0',
10 )
11
12 libc_args = [
13 '--cfg', 'feature="default"',
14 '--cfg', 'feature="extra_traits"',
15 '--cfg', 'feature="std"',
16 '--cfg', 'freebsd11',
17 '--cfg', 'freebsd11',
18 '--cfg', 'freebsd11',
19 '--cfg', 'libc_align',
20 '--cfg', 'libc_cfg_target_vendor',
21 '--cfg', 'libc_const_extern_fn',
22 '--cfg', 'libc_const_size_of',
23 '--cfg', 'libc_core_cvoid',
24 '--cfg', 'libc_int128',
25 '--cfg', 'libc_long_array',
26 '--cfg', 'libc_non_exhaustive',
27 '--cfg', 'libc_packedN',
28 '--cfg', 'libc_priv_mod_use',
29 '--cfg', 'libc_ptr_addr_of',
30 '--cfg', 'libc_underscore_const_names',
31 '--cfg', 'libc_union',
32 ]
33
34 lib = static_library(
35 'libc',
36 'src/lib.rs',
37 rust_abi : 'rust',
38 override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
39 rust_args: libc_args,
40 )
41
42 dep_libc = declare_dependency(
43 link_with : [lib]
44 )