Skip to content
Snippets Groups Projects
Commit e80595b5 authored by Loïc's avatar Loïc Committed by Steve Lhomme
Browse files

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.
parent 3110c739
No related branches found
No related tags found
1 merge request!3885meson: add rust (-Drust) option
Pipeline #362924 passed with stage
in 35 minutes and 57 seconds
......@@ -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!
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment