2019-08-14 18:02:28 +00:00
|
|
|
fn main() {
|
2021-04-20 12:58:11 +00:00
|
|
|
gst_plugin_version_helper::info();
|
2019-08-14 18:02:28 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2020-02-25 08:12:55 +00:00
|
|
|
for p in includes.iter().flatten() {
|
2019-08-14 18:02:28 +00:00
|
|
|
build.include(p);
|
|
|
|
}
|
|
|
|
|
|
|
|
build.define(
|
|
|
|
"PACKAGE_BUGREPORT",
|
|
|
|
"\"https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/new\"",
|
|
|
|
);
|
2020-01-02 15:05:25 +00:00
|
|
|
build.extra_warnings(false);
|
2019-08-14 18:02:28 +00:00
|
|
|
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");
|
|
|
|
}
|