qemu-cr16/rust/trace/meson.build
Tanish Desai 54140102d2 rust: add trace crate
The trace crate is a minimal container for dependencies of tracepoints
(so that they do not have to be imported in all the crates that use
tracepoints); it also contains a macro called "include_trace!" that is
able to find the right include file from the trace/ directory.

[Write commit message, add #[allow()]. - Paolo]

Signed-off-by: Tanish Desai <tanishdesai37@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20250929154938.594389-10-pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2025-10-01 11:22:07 -04:00

19 lines
478 B
Meson

rust = import('rust')
lib_rs = configure_file(
input: 'src/lib.rs',
output: 'lib.rs',
configuration: {
'MESON_BUILD_ROOT': meson.project_build_root(),
})
_trace_rs = static_library(
'trace', # Library name,
lib_rs,
trace_rs_targets, # List of generated `.rs` custom targets
override_options: ['rust_std=2021', 'build.rust_std=2021'],
dependencies: [libc_rs],
rust_abi: 'rust',
)
trace_rs = declare_dependency(link_with: _trace_rs)