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
434 B
Meson
10 lines
434 B
Meson
_bindgen_migration_rs = rust.bindgen(
|
|
args: bindgen_args_common + bindgen_args_data['migration-sys'].split(),
|
|
kwargs: bindgen_kwargs)
|
|
|
|
_migration_sys_rs = cargo_ws.package('migration-sys').library(
|
|
structured_sources(['lib.rs', _bindgen_migration_rs]))
|
|
cargo_ws.package('migration-sys').override_dependency(declare_dependency(link_with: _migration_sys_rs))
|
|
|
|
migration_sys_rs = declare_dependency(link_with: [_migration_sys_rs])
|