mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
subprojects: add cfg-if
Version 1.0.0 supported in:
- AOSP
- Fedora
(https://bodhi.fedoraproject.org/updates/?packages=rust-cfg-if)
- Debian (https://tracker.debian.org/pkg/rust-cfg-if)
Acked-by: Aaron Ruby <aruby@qnx.com>
Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35210>
This commit is contained in:
parent
35894b5c87
commit
f20d43d654
2 changed files with 27 additions and 0 deletions
6
subprojects/cfg-if.wrap
Normal file
6
subprojects/cfg-if.wrap
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[wrap-file]
|
||||
directory = cfg-if-1.0.0
|
||||
source_url = https://crates.io/api/v1/crates/cfg-if/1.0.0/download
|
||||
source_filename = cfg-if-1.0.0.tar.gz
|
||||
source_hash = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
|
||||
patch_directory = cfg-if
|
||||
21
subprojects/packagefiles/cfg-if/meson.build
Normal file
21
subprojects/packagefiles/cfg-if/meson.build
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright © 2024 Google
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
project(
|
||||
'cfg-if',
|
||||
'rust',
|
||||
version : '1.0.0',
|
||||
license : 'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
lib = static_library(
|
||||
'cfg_if',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2018', 'build.rust_std=2018'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_cfg_if = declare_dependency(
|
||||
link_with : [lib]
|
||||
)
|
||||
Loading…
Add table
Reference in a new issue