mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-01 18:52:07 +00:00
205b6040fb
This should start making navigating the tree a little easier to start with, and we can then move to allowing building specific groups of plugins as well. The plugins are moved into the following hierarchy: audio / gst-plugin-audiofx / gst-plugin-claxon / gst-plugin-csound / gst-plugin-lewton generic / gst-plugin-file / gst-plugin-sodium / gst-plugin-threadshare net / gst-plugin-reqwest / gst-plugin-rusoto utils / gst-plugin-fallbackswitch / gst-plugin-togglerecord video / gst-plugin-cdg / gst-plugin-closedcaption / gst-plugin-dav1d / gst-plugin-flv / gst-plugin-gif / gst-plugin-rav1e gst-plugin-tutorial gst-plugin-version-helper
43 lines
1.2 KiB
Rust
43 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().flatten() {
|
|
build.include(p);
|
|
}
|
|
|
|
build.define(
|
|
"PACKAGE_BUGREPORT",
|
|
"\"https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/new\"",
|
|
);
|
|
build.extra_warnings(false);
|
|
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");
|
|
}
|