Debian Codegraph @

subprojects/packagefiles/windows-sys-0.6-rs/meson.build

raw
1 # Copyright © 2025 Google
2 # SPDX-License-Identifier: MIT
3
4 project(
5 'windows-sys',
6 'rust',
7 version : '0.61.1',
8 license : 'MIT OR Apache-2.0',
9 meson_version : '>= 1.7.0',
10 )
11
12 windows_link = subproject('windows-link-0.2-rs').get_variable('lib')
13 windows_sys_args = [
14 '--cfg', 'feature="Win32"',
15 '--cfg', 'feature="Win32_Networking"',
16 '--cfg', 'feature="Win32_Networking_WinSock"',
17 '--cfg', 'feature="Win32_Foundation"',
18 '--cfg', 'feature="Win32_Foundation_WinSock"',
19 '--cfg', 'feature="Win32_System"',
20 '--cfg', 'feature="Win32_System_Diagnostics"',
21 '--cfg', 'feature="Win32_System_Diagnostics_Debug"',
22 ]
23
24 lib = static_library(
25 'windows_sys',
26 'src/lib.rs',
27 override_options : ['rust_std=2021', 'build.rust_std=2021', 'warning_level=0'],
28 link_with: [windows_link],
29 rust_abi: 'rust',
30 rust_args: windows_sys_args,
31 )
32
33 dep_windows_sys = declare_dependency(
34 link_with: [lib],
35 )