1project('libc-0.2-rs', 'rust', 2 meson_version: '>=1.5.0', 3 version: '0.2.162', 4 license: 'MIT OR Apache-2.0', 5 default_options: []) 6 7_libc_rs = static_library( 8 'libc', 9 files('src/lib.rs'), 10 gnu_symbol_visibility: 'hidden', 11 override_options: ['rust_std=2015', 'build.rust_std=2015'], 12 rust_abi: 'rust', 13 rust_args: [ 14 '--cap-lints', 'allow', 15 '--cfg', 'freebsd11', 16 '--cfg', 'libc_priv_mod_use', 17 '--cfg', 'libc_union', 18 '--cfg', 'libc_const_size_of', 19 '--cfg', 'libc_align', 20 '--cfg', 'libc_int128', 21 '--cfg', 'libc_core_cvoid', 22 '--cfg', 'libc_packedN', 23 '--cfg', 'libc_cfg_target_vendor', 24 '--cfg', 'libc_non_exhaustive', 25 '--cfg', 'libc_long_array', 26 '--cfg', 'libc_ptr_addr_of', 27 '--cfg', 'libc_underscore_const_names', 28 '--cfg', 'libc_const_extern_fn', 29 ], 30 dependencies: [], 31) 32 33libc_dep = declare_dependency( 34 link_with: _libc_rs, 35) 36 37meson.override_dependency('libc-0.2-rs', libc_dep) 38