diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-26 09:22:20 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-28 19:35:55 +0200 |
| commit | 1297b285cc3ffbd06dc3208fbecdb2d582c535dc (patch) | |
| tree | 791df3138861b2f605569a570a39684d377277e6 /rust/meson.build | |
| parent | dc1424319311f86449c6825ceec2364ee645a363 (diff) | |
| download | focaccia-qemu-1297b285cc3ffbd06dc3208fbecdb2d582c535dc.tar.gz focaccia-qemu-1297b285cc3ffbd06dc3208fbecdb2d582c535dc.zip | |
rust: make declaration of dependent crates more consistent
Crates like "bilge" and "libc" can be shared by more than one directory, so declare them directly in rust/meson.build. While at it, make their variable names end with "_rs" and always add a subproject() statement (as that pinpoints the error better if the subproject is missing and cannot be downloaded). Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/meson.build')
| -rw-r--r-- | rust/meson.build | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rust/meson.build b/rust/meson.build index 91e52b8fb8..1f0dcce7d0 100644 --- a/rust/meson.build +++ b/rust/meson.build @@ -1,3 +1,19 @@ +subproject('bilge-0.2-rs', required: true) +subproject('bilge-impl-0.2-rs', required: true) +subproject('libc-0.2-rs', required: true) + +bilge_rs = dependency('bilge-0.2-rs') +bilge_impl_rs = dependency('bilge-impl-0.2-rs') +libc_rs = dependency('libc-0.2-rs') + +subproject('proc-macro2-1-rs', required: true) +subproject('quote-1-rs', required: true) +subproject('syn-2-rs', required: true) + +quote_rs_native = dependency('quote-1-rs', native: true) +syn_rs_native = dependency('syn-2-rs', native: true) +proc_macro2_rs_native = dependency('proc-macro2-1-rs', native: true) + subdir('qemu-api-macros') subdir('qemu-api') |