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:
Gurchetan Singh 2024-12-17 07:24:39 -08:00 committed by Marge Bot
parent f20d43d654
commit 734dd83494
2 changed files with 27 additions and 0 deletions

View 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

View 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]
)