mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
subprojects: add bitflags
Version 2.9.1 supported in:
- Android
- Fedora (https://src.fedoraproject.org/rpms/rust-bitflags)
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
f20d43d654
commit
734dd83494
2 changed files with 27 additions and 0 deletions
6
subprojects/bitflags.wrap
Normal file
6
subprojects/bitflags.wrap
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[wrap-file]
|
||||
directory = bitflags-2.9.1
|
||||
source_url = https://crates.io/api/v1/crates/bitflags/2.9.1/download
|
||||
source_filename = bitflags-2.9.1.tar.gz
|
||||
source_hash = 1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967
|
||||
patch_directory = bitflags
|
||||
21
subprojects/packagefiles/bitflags/meson.build
Normal file
21
subprojects/packagefiles/bitflags/meson.build
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright © 2024 Google
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
project(
|
||||
'bitflags',
|
||||
'rust',
|
||||
version : '2.9.1',
|
||||
license : 'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
lib = static_library(
|
||||
'bitflags',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_bitflags = declare_dependency(
|
||||
link_with : [lib]
|
||||
)
|
||||
Loading…
Add table
Reference in a new issue