Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
e80595b5 by Loïc Branstett at 2023-07-13T13:47:03+00:00
meson: add rust (-Drust=enabled) option
This adds a -Drust feature option to the meson build system, which aims
to enable pure Rust modules.
This option will check for the presence of cargo (Rust package manager
and build system) and give a warning about the experimental nature of
the Rust modules.
This option is disabled by default.
- - - - -
2 changed files:
- meson.build
- meson_options.txt
Changes:
=====================================
meson.build
=====================================
@@ -100,6 +100,9 @@ if host_system == 'darwin'
add_languages('objc', native: false)
endif
+# Rust build system
+cargo_bin = find_program('cargo', required: get_option('rust'))
+
#
# General feature defines
#
@@ -1024,6 +1027,13 @@ subdir('bin')
# VLC plugins
subdir('modules')
+if get_option('rust').allowed()
+ warning('''
+ The Rust module support is currently EXPERIMENTAL and INCOMPLETE.
+ Testing and reporting or contributing missing plugins and features is
welcome!
+ ''')
+endif
+
warning('''
The Meson build system of VLC is currently EXPERIMENTAL and INCOMPLETE.
Testing and reporting or contributing missing plugins and features is
welcome!
=====================================
meson_options.txt
=====================================
@@ -55,6 +55,16 @@ option('winstore_app',
value : 'false',
description : 'Build targeted for Windows Store apps')
+option('rust',
+ type : 'feature',
+ value : 'disabled',
+ description : 'Experimental pure Rust VLC modules')
+
+option('extra_rust_flags',
+ type : 'array',
+ value : [],
+ description : 'Extra RUSTFLAGS to be passed to the compiler when compiling
Rust VLC modules')
+
# TODO: Missing pdb option, this should probably be solved in meson itself
# TODO: Missing ssp option
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/e80595b5f5f0727645123b9c6c67713949045ea4
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/e80595b5f5f0727645123b9c6c67713949045ea4
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits