meson: Add pest rust dependencies
Including its dependency ucd-trie. 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:

committed by
Marge Bot

parent
87ad3ca0ac
commit
e28ff81869
30
subprojects/packagefiles/pest_generator/meson.build
Normal file
30
subprojects/packagefiles/pest_generator/meson.build
Normal file
@@ -0,0 +1,30 @@
|
||||
project(
|
||||
'pest_generator',
|
||||
'rust',
|
||||
version : '2.7.11',
|
||||
license :'MIT OR Apache-2.0',
|
||||
)
|
||||
|
||||
pest = subproject('pest').get_variable('lib')
|
||||
pest_meta = subproject('pest_meta').get_variable('lib')
|
||||
quote = subproject('quote').get_variable('lib')
|
||||
pm2 = subproject('proc-macro2').get_variable('lib')
|
||||
syn = subproject('syn').get_variable('lib')
|
||||
|
||||
rust_args = [
|
||||
'--cfg', 'feature="std"',
|
||||
]
|
||||
|
||||
lib = static_library(
|
||||
'pest_generator',
|
||||
'src/lib.rs',
|
||||
rust_args : rust_args,
|
||||
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
||||
link_with : [pest, pest_meta, pm2, quote, syn],
|
||||
rust_abi : 'rust',
|
||||
native : true,
|
||||
)
|
||||
|
||||
dep_pest_generator = declare_dependency(
|
||||
link_with : [lib, pest, pest_meta, quote, syn],
|
||||
)
|
Reference in New Issue
Block a user