Skip to content

vlcrs: add infra for build and linking Rust modules

The autotools suite (automake, libtool, ...) does not support Rust neither Cargo (Rust package manager and build system) so we need to have a custom system for using them. We do this by having "hacky" script that does the build with cargo and output an .a archive in the .libs directory. And with this and another cargo command we create the .la with the right information so that the build system can continue as usual.

The same patch is added for meson support, but autoconf support is then extended from Loïc's work to integrate the static plugin support.

The whole patchset has been tested against a Rust tracer module implementation both in static build and dynamic build.

Depends on !5941 (merged) if --enable-static --disable-shared is forwarded to the configure line.

Merge request reports