mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
28 lines
565 B
Meson
28 lines
565 B
Meson
|
|
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],
|
||
|
|
)
|