mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
subprojects: add windows-link and windows-sys
Useful for Kumquat use cases. Actually, useful for pretty much anything Windows-related. This are foundational crates supported officially by our friends at Microsoft. Reviewed-by: David Gilhooley <djgilhooley.gmail.com>
This commit is contained in:
parent
d60c19fd10
commit
7aec401b62
4 changed files with 66 additions and 0 deletions
20
subprojects/packagefiles/windows-link-0.2-rs/meson.build
Normal file
20
subprojects/packagefiles/windows-link-0.2-rs/meson.build
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
# Copyright © 2025 Google
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
project(
|
||||||
|
'windows-link-rs',
|
||||||
|
'rust',
|
||||||
|
version : '0.2.0',
|
||||||
|
license : 'MIT OR Apache-2.0',
|
||||||
|
)
|
||||||
|
|
||||||
|
lib = static_library(
|
||||||
|
'windows_link',
|
||||||
|
'src/lib.rs',
|
||||||
|
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||||
|
rust_abi: 'rust',
|
||||||
|
)
|
||||||
|
|
||||||
|
dep_windows_link = declare_dependency(
|
||||||
|
link_with: [lib],
|
||||||
|
)
|
||||||
34
subprojects/packagefiles/windows-sys-0.6-rs/meson.build
Normal file
34
subprojects/packagefiles/windows-sys-0.6-rs/meson.build
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Copyright © 2025 Google
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
project(
|
||||||
|
'windows-sys',
|
||||||
|
'rust',
|
||||||
|
version : '0.61.1',
|
||||||
|
license : 'MIT OR Apache-2.0',
|
||||||
|
)
|
||||||
|
|
||||||
|
windows_link = subproject('windows-link-0.2-rs').get_variable('lib')
|
||||||
|
windows_sys_args = [
|
||||||
|
'--cfg', 'feature="Win32"',
|
||||||
|
'--cfg', 'feature="Win32_Networking"',
|
||||||
|
'--cfg', 'feature="Win32_Networking_WinSock"',
|
||||||
|
'--cfg', 'feature="Win32_Foundation"',
|
||||||
|
'--cfg', 'feature="Win32_Foundation_WinSock"',
|
||||||
|
'--cfg', 'feature="Win32_System"',
|
||||||
|
'--cfg', 'feature="Win32_System_Diagnostics"',
|
||||||
|
'--cfg', 'feature="Win32_System_Diagnostics_Debug"',
|
||||||
|
]
|
||||||
|
|
||||||
|
lib = static_library(
|
||||||
|
'windows_sys',
|
||||||
|
'src/lib.rs',
|
||||||
|
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||||
|
link_with: [windows_link],
|
||||||
|
rust_abi: 'rust',
|
||||||
|
rust_args: windows_sys_args,
|
||||||
|
)
|
||||||
|
|
||||||
|
dep_windows_sys = declare_dependency(
|
||||||
|
link_with: [lib],
|
||||||
|
)
|
||||||
6
subprojects/windows-link-0.2-rs.wrap
Normal file
6
subprojects/windows-link-0.2-rs.wrap
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[wrap-file]
|
||||||
|
directory = windows-link-0.2.0
|
||||||
|
source_url = https://crates.io/api/v1/crates/windows-link/0.2.0/download
|
||||||
|
source_filename = windows-link-0.2.0.tar.gz
|
||||||
|
source_hash = 45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65
|
||||||
|
patch_directory = windows-link-0.2-rs
|
||||||
6
subprojects/windows-sys-0.6-rs.wrap
Normal file
6
subprojects/windows-sys-0.6-rs.wrap
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[wrap-file]
|
||||||
|
directory = windows-sys-0.61.1
|
||||||
|
source_url = https://crates.io/api/v1/crates/windows-sys/0.61.1/download
|
||||||
|
source_filename = windows-sys-0.61.1.tar.gz
|
||||||
|
source_hash = 6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f
|
||||||
|
patch_directory = windows-sys-0.6-rs
|
||||||
Loading…
Add table
Reference in a new issue