nak: Add a dependency on rustc-hash
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865>
This commit is contained in:
@@ -151,6 +151,7 @@ meson_subprojects=(
|
||||
pest_generator
|
||||
pest_meta
|
||||
roxmltree
|
||||
rustc-hash
|
||||
indexmap
|
||||
${FORCE_FALLBACK_FOR:-}
|
||||
)
|
||||
|
||||
@@ -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],
|
||||
)
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user