mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-26 19:54:33 +08:00
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:
parent
e28ff81869
commit
02bc51f477
@ -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 \
|
||||
|
18
subprojects/packagefiles/roxmltree/meson.build
Normal file
18
subprojects/packagefiles/roxmltree/meson.build
Normal 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],
|
||||
)
|
6
subprojects/roxmltree.wrap
Normal file
6
subprojects/roxmltree.wrap
Normal 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
|
Loading…
Reference in New Issue
Block a user