xref: /aosp_15_r20/external/mesa3d/subprojects/packagefiles/indexmap/meson.build (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1project(
2  'indexmap',
3  'rust',
4  version : '2.2.6',
5  license :'MIT OR Apache-2.0',
6)
7
8dep_equivalent = subproject('equivalent').get_variable('dep_equivalent')
9dep_hashbrown = subproject('hashbrown').get_variable('dep_hashbrown')
10
11rust_args = [
12  '--cfg', 'feature="std"'
13]
14
15lib = static_library(
16  'indexmap',
17  'src/lib.rs',
18  rust_args : rust_args,
19  override_options : ['rust_std=2021', 'build.rust_std=2021'],
20  rust_abi : 'rust',
21  native : true,
22  dependencies : [dep_equivalent, dep_hashbrown]
23)
24
25dep_indexmap = declare_dependency(
26  link_with : [lib],
27)
28