gstreamer-rs/gstreamer-controller/build.rs

23 lines
608 B
Rust
Raw Normal View History

2020-06-09 01:06:49 +00:00
fn main() {
manage_docs();
}
#[cfg(all(
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {
const PATH: &str = "src";
const IGNORES: &[&str] = &[];
lgpl_docs::purge(PATH, IGNORES);
if cfg!(feature = "embed-lgpl-docs") {
lgpl_docs::embed(lgpl_docs::Library::GstController, PATH, IGNORES);
}
}
#[cfg(any(
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
))]
fn manage_docs() {}