meson: Add roxmltree rust dependency

Will be used for a simple isaspec implementation in rust.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: @LingMan
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28869>
This commit is contained in:
Christian Gmeiner 2024-06-12 16:08:34 +02:00 committed by Marge Bot
parent e28ff81869
commit 02bc51f477
3 changed files with 25 additions and 1 deletions

View File

@ -104,7 +104,7 @@ rm -rf _build
meson setup _build \
--native-file=native.file \
--wrap-mode=nofallback \
--force-fallback-for perfetto,syn,paste,pest,pest_derive,pest_generator,pest_meta \
--force-fallback-for perfetto,syn,paste,pest,pest_derive,pest_generator,pest_meta,roxmltree \
${CROSS+--cross "$CROSS_FILE"} \
-D prefix=$PWD/install \
-D libdir=lib \

View File

@ -0,0 +1,18 @@
project(
'roxmltree',
'rust',
version : '0.20.0',
license :'MIT OR Apache-2.0',
)
lib = static_library(
'roxmltree',
'src/lib.rs',
override_options : ['rust_std=2021', 'build.rust_std=2021'],
rust_abi : 'rust',
native : true,
)
dep_roxmltree = declare_dependency(
link_with : [lib],
)

View File

@ -0,0 +1,6 @@
[wrap-file]
directory = roxmltree-0.20.0
source_url = https://crates.io/api/v1/crates/roxmltree/0.20.0/download
source_filename = roxmltree-0.20.0.tar.gz
source_hash = 6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97
patch_directory = roxmltree