Finally, automatic parsing of Cargo.toml is also possible for QEMU's own crates, not just for subprojects. This removes the need to list the dependencies and language editions in both Cargo.toml and meson.build files. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
10 lines
389 B
Meson
10 lines
389 B
Meson
_bindgen_util_rs = rust.bindgen(
|
|
args: bindgen_args_common + bindgen_args_data['util-sys'].split(),
|
|
kwargs: bindgen_kwargs)
|
|
|
|
_util_sys_rs = cargo_ws.package('util-sys').library(
|
|
structured_sources(['lib.rs', _bindgen_util_rs]))
|
|
cargo_ws.package('util-sys').override_dependency(declare_dependency(link_with: _util_sys_rs))
|
|
|
|
util_sys_rs = declare_dependency(link_with: [_util_sys_rs])
|