diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-27 21:27:11 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-12-28 20:00:11 +0300 |
commit | 5f0ff8348f0cca7333927db21ed3a12036f6762e (patch) | |
tree | 799df653814dda195d9c4aff7a8a7e2884f5fd16 /generic | |
parent | a3d405f670982eb9c904abb1d41df7e53072f27d (diff) |
meson: Add an option to build examples
Required renaming threadshare/benchmark to threadshare/ts-benchmark
because 'benchmark' as a target name is reserved for meson's
`benchmark` target.
Disabled by default because cargo decides that it has to rebuild
everything, and is really slow because of that.
Also required adding --features for setting features required by the
examples.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1028>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/threadshare/Cargo.toml b/generic/threadshare/Cargo.toml index 0f73e6b5..ef5b9729 100644 --- a/generic/threadshare/Cargo.toml +++ b/generic/threadshare/Cargo.toml @@ -43,7 +43,7 @@ crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [[example]] -name = "benchmark" +name = "ts-benchmark" path = "examples/benchmark.rs" [[example]] |