xref: /openbmc/qemu/rust/qemu-api/meson.build (revision d0f0cd5b)
1_qemu_api_rs = static_library(
2  'qemu_api',
3  structured_sources(
4    [
5      'src/lib.rs',
6      'src/definitions.rs',
7      'src/device_class.rs',
8    ],
9    {'.' : bindings_rs},
10  ),
11  override_options: ['rust_std=2021', 'build.rust_std=2021'],
12  rust_abi: 'rust',
13  rust_args: rustc_args + [
14    '--cfg', 'MESON',
15    # '--cfg', 'feature="allocator"',
16  ],
17  dependencies: [
18    qemu_api_macros,
19  ],
20)
21
22qemu_api = declare_dependency(
23  link_with: _qemu_api_rs,
24)
25