mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-30 15:31:01 +00:00
b401b2f243
Allows having a live input stream and falling back to another input stream after a configurable timeout without any buffers received on the main input.
41 lines
1.2 KiB
Rust
41 lines
1.2 KiB
Rust
extern crate cc;
|
|
extern crate gst_plugin_version_helper;
|
|
extern crate pkg_config;
|
|
|
|
fn main() {
|
|
gst_plugin_version_helper::get_info();
|
|
|
|
if cfg!(feature = "v1_18") {
|
|
return;
|
|
}
|
|
|
|
let gstreamer = pkg_config::probe_library("gstreamer-1.0").unwrap();
|
|
let includes = [gstreamer.include_paths];
|
|
|
|
let files = ["src/base/gstaggregator.c"];
|
|
|
|
let mut build = cc::Build::new();
|
|
build.include("src/base");
|
|
|
|
for f in files.iter() {
|
|
build.file(f);
|
|
}
|
|
|
|
for p in includes.iter().flat_map(|i| i) {
|
|
build.include(p);
|
|
}
|
|
|
|
build.define(
|
|
"PACKAGE_BUGREPORT",
|
|
"\"https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/new\"",
|
|
);
|
|
build.define("GstAggregator", "GstAggregatorFallback");
|
|
build.define("GstAggregatorClass", "GstAggregatorFallbackClass");
|
|
build.define("GstAggregatorPrivate", "GstAggregatorFallbackPrivate");
|
|
build.define("GstAggregatorPad", "GstAggregatorFallbackPad");
|
|
build.define("GstAggregatorPadClass", "GstAggregatorFallbackPadClass");
|
|
build.define("GstAggregatorPadPrivate", "GstAggregatorFallbackPadPrivate");
|
|
build.define("GST_BASE_API", "G_GNUC_INTERNAL");
|
|
|
|
build.compile("libgstaggregator-c.a");
|
|
}
|