On 6/11/24 03:33, Manos Pitsidianakis wrote:
Add options for Rust in meson_options.txt, meson.build, configure to
prepare for adding Rust code in the followup commits.

`rust` is a reserved meson name, so we have to use an alternative.
`with_rust` was chosen.

A cargo_wrapper.py script is added that is heavily based on the work of
Marc-André Lureau from 2021.

https://patchew.org/QEMU/20210907121943.3498701-1-marcandre.lur...@redhat.com/

Signed-off-by: Marc-André Lureau<marcandre.lur...@redhat.com>
Signed-off-by: Manos Pitsidianakis<manos.pitsidiana...@linaro.org>
---
  .gitignore                    |   2 +
  MAINTAINERS                   |   5 +
  configure                     |  12 ++
  meson.build                   |  11 ++
  meson_options.txt             |   4 +
  scripts/cargo_wrapper.py      | 211 ++++++++++++++++++++++++++++++++++
  scripts/meson-buildoptions.sh |   6 +
  7 files changed, 251 insertions(+)
  create mode 100644 scripts/cargo_wrapper.py

[13/5185] Generating rust_pl011_cargo with a custom command
FAILED: libpl011.a
/home/rth/chroot-home/qemu/bld-x/pyvenv/bin/python3 /home/rth/chroot-home/qemu/src/scripts/cargo_wrapper.py --config-headers /home/rth/chroot-home/qemu/bld-x/config-host.h --meson-build-root /home/rth/chroot-home/qemu/bld-x --meson-build-dir /home/rth/chroot-home/qemu/bld-x/rust --meson-source-dir /home/rth/chroot-home/qemu/src/rust --color always --crate-dir /home/rth/chroot-home/qemu/src/rust/pl011 --profile release --target-triple x86_64-unknown-linux-gnu --outdir . build-lib /home/rth/chroot-home/qemu/src/scripts/cargo_wrapper.py:14: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives


r~

Reply via email to