nak: Add a dependency on rustc-hash

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865>
This commit is contained in:
Mel Henning
2025-05-06 19:41:13 -04:00
committed by Marge Bot
parent b4b557c9ef
commit c1f979d84a
4 changed files with 36 additions and 0 deletions
+1
View File
@@ -151,6 +151,7 @@ meson_subprojects=(
pest_generator
pest_meta
roxmltree
rustc-hash
indexmap
${FORCE_FALLBACK_FOR:-}
)
+6
View File
@@ -22,6 +22,11 @@ dep_paste = dependency('paste',
required : true,
)
dep_rustc_hash = dependency('rustc-hash',
fallback: ['rustc-hash', 'dep_rustc_hash'],
required: true,
)
libnak_c_files = files(
'nak.h',
'nak_nir.c',
@@ -123,6 +128,7 @@ _libnak_rs = static_library(
],
dependencies : [
dep_paste,
dep_rustc_hash,
idep_compiler_rs,
idep_nvidia_headers_rs,
],
@@ -0,0 +1,23 @@
project(
'rustc_hash',
'rust',
version : '2.1.1',
license :'MIT OR Apache-2.0',
)
rust_args = [
'--cfg', 'feature="std"'
]
lib = static_library(
'rustc_hash',
'src/lib.rs',
rust_args : rust_args,
override_options : ['rust_std=2021', 'build.rust_std=2021'],
rust_abi : 'rust',
native : true,
)
dep_rustc_hash = declare_dependency(
link_with : [lib],
)
+6
View File
@@ -0,0 +1,6 @@
[wrap-file]
directory = rustc-hash-2.1.1
source_url = https://crates.io/api/v1/crates/rustc-hash/2.1.1/download
source_filename = rustc-hash-2.1.1.tar.gz
source_hash = 357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d
patch_directory = rustc-hash