mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-26 19:54:33 +08:00
meson,ci: Add the paste crate
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27397>
This commit is contained in:
parent
923a0a727b
commit
dde95fc039
@ -104,7 +104,7 @@ rm -rf _build
|
||||
meson setup _build \
|
||||
--native-file=native.file \
|
||||
--wrap-mode=nofallback \
|
||||
--force-fallback-for perfetto,syn \
|
||||
--force-fallback-for perfetto,syn,paste \
|
||||
${CROSS+--cross "$CROSS_FILE"} \
|
||||
-D prefix=$PWD/install \
|
||||
-D libdir=lib \
|
||||
|
18
subprojects/packagefiles/paste/meson.build
Normal file
18
subprojects/packagefiles/paste/meson.build
Normal file
@ -0,0 +1,18 @@
|
||||
project(
|
||||
'paste',
|
||||
'rust',
|
||||
version : '1.0.14',
|
||||
license : '(MIT or Apache-2.0)',
|
||||
)
|
||||
|
||||
add_languages('rust', required: true)
|
||||
rust = import('rust')
|
||||
|
||||
lib = rust.proc_macro(
|
||||
'paste',
|
||||
files('src/lib.rs')
|
||||
)
|
||||
|
||||
dep_paste = declare_dependency(
|
||||
link_with : [lib],
|
||||
)
|
6
subprojects/paste.wrap
Normal file
6
subprojects/paste.wrap
Normal file
@ -0,0 +1,6 @@
|
||||
[wrap-file]
|
||||
directory = paste-1.0.14
|
||||
source_url = https://crates.io/api/v1/crates/paste/1.0.14/download
|
||||
source_filename = paste-1.0.14.tar.gz
|
||||
source_hash = de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c
|
||||
patch_directory = paste
|
Loading…
Reference in New Issue
Block a user