2017-08-01 13:18:50 +00:00
|
|
|
fn main() {
|
|
|
|
manage_docs();
|
|
|
|
}
|
|
|
|
|
2020-05-13 20:39:30 +00:00
|
|
|
#[cfg(all(
|
|
|
|
any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
|
|
|
|
not(all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
|
|
|
|
))]
|
2017-08-01 13:18:50 +00:00
|
|
|
fn manage_docs() {
|
2020-06-19 10:04:23 +00:00
|
|
|
extern crate lgpl_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::GstApp, PATH, IGNORES);
|
2017-08-01 13:18:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-13 20:39:30 +00:00
|
|
|
#[cfg(any(
|
|
|
|
all(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"),
|
|
|
|
not(any(feature = "embed-lgpl-docs", feature = "purge-lgpl-docs"))
|
|
|
|
))]
|
2017-08-01 13:18:50 +00:00
|
|
|
fn manage_docs() {}
|