diff --git a/.gitlab-ci/meson/build.sh b/.gitlab-ci/meson/build.sh index 9cabd2f0760..cfd56e87b3c 100755 --- a/.gitlab-ci/meson/build.sh +++ b/.gitlab-ci/meson/build.sh @@ -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 \ diff --git a/subprojects/packagefiles/roxmltree/meson.build b/subprojects/packagefiles/roxmltree/meson.build new file mode 100644 index 00000000000..94a07b4e550 --- /dev/null +++ b/subprojects/packagefiles/roxmltree/meson.build @@ -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], +) diff --git a/subprojects/roxmltree.wrap b/subprojects/roxmltree.wrap new file mode 100644 index 00000000000..a01ba33e02a --- /dev/null +++ b/subprojects/roxmltree.wrap @@ -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