mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 02:04:41 +08:00
meson: Add indexmap rust dependencies
Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Reviewed-by: @LingMan Reviewed-by: Eric Engestrom <eric@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28869>
This commit is contained in:
parent
02bc51f477
commit
9e3e12e6a9
@ -104,7 +104,7 @@ rm -rf _build
|
||||
meson setup _build \
|
||||
--native-file=native.file \
|
||||
--wrap-mode=nofallback \
|
||||
--force-fallback-for perfetto,syn,paste,pest,pest_derive,pest_generator,pest_meta,roxmltree \
|
||||
--force-fallback-for perfetto,syn,paste,pest,pest_derive,pest_generator,pest_meta,roxmltree,indexmap \
|
||||
${CROSS+--cross "$CROSS_FILE"} \
|
||||
-D prefix=$PWD/install \
|
||||
-D libdir=lib \
|
||||
|
6
subprojects/equivalent.wrap
Normal file
6
subprojects/equivalent.wrap
Normal file
@ -0,0 +1,6 @@
|
||||
[wrap-file]
|
||||
directory = equivalent-1.0.1
|
||||
source_url = https://crates.io/api/v1/crates/equivalent/1.0.1/download
|
||||
source_filename = equivalent-1.0.1.tar.gz
|
||||
source_hash = 5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5
|
||||
patch_directory = equivalent
|
6
subprojects/hashbrown.wrap
Normal file
6
subprojects/hashbrown.wrap
Normal file
@ -0,0 +1,6 @@
|
||||
[wrap-file]
|
||||
directory = hashbrown-0.14.1
|
||||
source_url = https://crates.io/api/v1/crates/hashbrown/0.14.1/download
|
||||
source_filename = hashbrown-0.14.1.tar.gz
|
||||
source_hash = 7dfda62a12f55daeae5015f81b0baea145391cb4520f86c248fc615d72640d12
|
||||
patch_directory = hashbrown
|
6
subprojects/indexmap.wrap
Normal file
6
subprojects/indexmap.wrap
Normal file
@ -0,0 +1,6 @@
|
||||
[wrap-file]
|
||||
directory = indexmap-2.2.6
|
||||
source_url = https://crates.io/api/v1/crates/indexmap/2.2.6/download
|
||||
source_filename = indexmap-2.2.6.tar.gz
|
||||
source_hash = 168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26
|
||||
patch_directory = indexmap
|
18
subprojects/packagefiles/equivalent/meson.build
Normal file
18
subprojects/packagefiles/equivalent/meson.build
Normal file
@ -0,0 +1,18 @@
|
||||
project(
|
||||
'equivalent',
|
||||
'rust',
|
||||
version : '1.0.1',
|
||||
license :'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
lib = static_library(
|
||||
'equivalent',
|
||||
'src/lib.rs',
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_equivalent = declare_dependency(
|
||||
link_with : [lib],
|
||||
)
|
23
subprojects/packagefiles/hashbrown/meson.build
Normal file
23
subprojects/packagefiles/hashbrown/meson.build
Normal file
@ -0,0 +1,23 @@
|
||||
project(
|
||||
'hashbrown',
|
||||
'rust',
|
||||
version : '0.14.1',
|
||||
license :'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
rust_args = [
|
||||
'--cfg', 'feature="raw"'
|
||||
]
|
||||
|
||||
lib = static_library(
|
||||
'hashbrown',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_hashbrown = declare_dependency(
|
||||
link_with : [lib],
|
||||
)
|
27
subprojects/packagefiles/indexmap/meson.build
Normal file
27
subprojects/packagefiles/indexmap/meson.build
Normal file
@ -0,0 +1,27 @@
|
||||
project(
|
||||
'indexmap',
|
||||
'rust',
|
||||
version : '2.2.6',
|
||||
license :'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
dep_equivalent = subproject('equivalent').get_variable('dep_equivalent')
|
||||
dep_hashbrown = subproject('hashbrown').get_variable('dep_hashbrown')
|
||||
|
||||
rust_args = [
|
||||
'--cfg', 'feature="std"'
|
||||
]
|
||||
|
||||
lib = static_library(
|
||||
'indexmap',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
dependencies : [dep_equivalent, dep_hashbrown]
|
||||
)
|
||||
|
||||
dep_indexmap = declare_dependency(
|
||||
link_with : [lib],
|
||||
)
|
Loading…
Reference in New Issue
Block a user