nak: Add a dependency on rustc-hash
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34865>
This commit is contained in:
23
subprojects/packagefiles/rustc-hash/meson.build
Normal file
23
subprojects/packagefiles/rustc-hash/meson.build
Normal file
@@ -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
subprojects/rustc-hash.wrap
Normal file
6
subprojects/rustc-hash.wrap
Normal 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
|
||||
Reference in New Issue
Block a user