forked from mirrors/gstreamer-rs
regenerate
This commit is contained in:
parent
046adf4d15
commit
2427bfbcef
108 changed files with 409 additions and 1608 deletions
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -47,3 +47,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_app_1_0]
|
||||
name = "gstreamer-app-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_app_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-app-1.0";
|
||||
let shared_libs = ["gstapp-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_app_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -50,3 +50,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_audio_1_0]
|
||||
name = "gstreamer-audio-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_audio_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-audio-1.0";
|
||||
let shared_libs = ["gstaudio-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_audio_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -51,3 +51,16 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_base_1_0]
|
||||
name = "gstreamer-base-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_base_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_12_1 = "1.12.1"
|
||||
v1_14 = "1.14"
|
||||
v1_14_1 = "1.14.1"
|
||||
v1_14_3 = "1.14.3"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,88 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-base-1.0";
|
||||
let shared_libs = ["gstbase-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14_3") {
|
||||
"1.14.3"
|
||||
} else if cfg!(feature = "v1_14_1") {
|
||||
"1.14.1"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12_1") {
|
||||
"1.12.1"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_base_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -47,3 +47,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_check_1_0]
|
||||
name = "gstreamer-check-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_check_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-check-1.0";
|
||||
let shared_libs = ["gstcheck-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_check_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -56,3 +56,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gst_editing_services_1_0]
|
||||
name = "gst-editing-services-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gst_editing_services_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gst-editing-services-1.0";
|
||||
let shared_libs = ["ges-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_editing_services_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -52,3 +52,10 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_gl_1_0]
|
||||
name = "gstreamer-gl-1.0"
|
||||
version = "1.14"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_gl_1_0.feature-versions]
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,68 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-gl-1.0";
|
||||
let shared_libs = ["gstgl-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else {
|
||||
"1.14"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_gl_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -50,3 +50,11 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_mpegts_1_0]
|
||||
name = "gstreamer-mpegts-1.0"
|
||||
version = "1.12"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_mpegts_1_0.feature-versions]
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-mpegts-1.0";
|
||||
let shared_libs = ["gstmpegts-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.12"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_mpegts_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -50,3 +50,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_net_1_0]
|
||||
name = "gstreamer-net-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_net_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-net-1.0";
|
||||
let shared_libs = ["gstnet-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_net_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -53,3 +53,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_pbutils_1_0]
|
||||
name = "gstreamer-pbutils-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_pbutils_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-pbutils-1.0";
|
||||
let shared_libs = ["gstpbutils-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_pbutils_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -46,3 +46,11 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_player_1_0]
|
||||
name = "gstreamer-player-1.0"
|
||||
version = "1.12"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_player_1_0.feature-versions]
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,70 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-player-1.0";
|
||||
let shared_libs = ["gstplayer-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else {
|
||||
"1.12"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_player_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -52,3 +52,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_rtp_1_0]
|
||||
name = "gstreamer-rtp-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_rtp_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-rtp-1.0";
|
||||
let shared_libs = ["gstrtp-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_rtp_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -59,3 +59,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_rtsp_server_1_0]
|
||||
name = "gstreamer-rtsp-server-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_rtsp_server_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-rtsp-server-1.0";
|
||||
let shared_libs = ["gstrtspserver-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_rtsp_server_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -54,3 +54,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_rtsp_1_0]
|
||||
name = "gstreamer-rtsp-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_rtsp_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-rtsp-1.0";
|
||||
let shared_libs = ["gstrtsp-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_rtsp_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -48,3 +48,14 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_sdp_1_0]
|
||||
name = "gstreamer-sdp-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_sdp_1_0.feature-versions]
|
||||
v1_8_1 = "1.8.1"
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,84 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-sdp-1.0";
|
||||
let shared_libs = ["gstsdp-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8_1") {
|
||||
"1.8.1"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_sdp_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -46,3 +46,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_1_0]
|
||||
name = "gstreamer-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-1.0";
|
||||
let shared_libs = ["gstreamer-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -50,3 +50,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_tag_1_0]
|
||||
name = "gstreamer-tag-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_tag_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-tag-1.0";
|
||||
let shared_libs = ["gsttag-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_tag_sys;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#include "manual.h"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[build-dependencies]
|
||||
pkg-config = "0.3.7"
|
||||
system-deps = "1.3"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
|
@ -52,3 +52,13 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys"
|
|||
version = "0.9.0"
|
||||
[package.metadata.docs.rs]
|
||||
features = ["dox"]
|
||||
[package.metadata.system-deps.gstreamer_video_1_0]
|
||||
name = "gstreamer-video-1.0"
|
||||
version = "1.8"
|
||||
|
||||
[package.metadata.system-deps.gstreamer_video_1_0.feature-versions]
|
||||
v1_10 = "1.10"
|
||||
v1_12 = "1.12"
|
||||
v1_14 = "1.14"
|
||||
v1_16 = "1.16"
|
||||
v1_18 = "1.17"
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
extern crate pkg_config;
|
||||
extern crate system_deps;
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use pkg_config::{Config, Error};
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::env;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
use std::io;
|
||||
#[cfg(not(feature = "dox"))]
|
||||
|
@ -21,82 +17,8 @@ fn main() {} // prevent linking libraries to avoid documentation failure
|
|||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn main() {
|
||||
if let Err(s) = find() {
|
||||
if let Err(s) = system_deps::Config::new().probe() {
|
||||
let _ = writeln!(io::stderr(), "{}", s);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "dox"))]
|
||||
fn find() -> Result<(), Error> {
|
||||
let package_name = "gstreamer-video-1.0";
|
||||
let shared_libs = ["gstvideo-1.0"];
|
||||
let version = if cfg!(feature = "v1_18") {
|
||||
"1.17"
|
||||
} else if cfg!(feature = "v1_16") {
|
||||
"1.16"
|
||||
} else if cfg!(feature = "v1_14") {
|
||||
"1.14"
|
||||
} else if cfg!(feature = "v1_12") {
|
||||
"1.12"
|
||||
} else if cfg!(feature = "v1_10") {
|
||||
"1.10"
|
||||
} else if cfg!(feature = "v1_8") {
|
||||
"1.8"
|
||||
} else if cfg!(feature = "v1_6") {
|
||||
"1.6"
|
||||
} else if cfg!(feature = "v1_4") {
|
||||
"1.4"
|
||||
} else if cfg!(feature = "v1_2") {
|
||||
"1.2"
|
||||
} else {
|
||||
"1.8"
|
||||
};
|
||||
|
||||
if let Ok(inc_dir) = env::var("GTK_INCLUDE_DIR") {
|
||||
println!("cargo:include={}", inc_dir);
|
||||
}
|
||||
if let Ok(lib_dir) = env::var("GTK_LIB_DIR") {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
println!("cargo:rustc-link-search=native={}", lib_dir);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
let target = env::var("TARGET").expect("TARGET environment variable doesn't exist");
|
||||
let hardcode_shared_libs = target.contains("windows");
|
||||
|
||||
let mut config = Config::new();
|
||||
config.atleast_version(version);
|
||||
config.print_system_libs(false);
|
||||
if hardcode_shared_libs {
|
||||
config.cargo_metadata(false);
|
||||
}
|
||||
match config.probe(package_name) {
|
||||
Ok(library) => {
|
||||
if let Ok(paths) = std::env::join_paths(library.include_paths) {
|
||||
println!("cargo:include={}", paths.to_string_lossy());
|
||||
}
|
||||
if hardcode_shared_libs {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
for path in library.link_paths.iter() {
|
||||
println!(
|
||||
"cargo:rustc-link-search=native={}",
|
||||
path.to_str().expect("library path doesn't exist")
|
||||
);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(Error::EnvNoPkgConfig(_)) | Err(Error::Command { .. }) => {
|
||||
for lib_ in shared_libs.iter() {
|
||||
println!("cargo:rustc-link-lib=dylib={}", lib_);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ b227a77)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 5a5b8f5)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ f8feec0)
|
||||
// This file was generated by gir (https://github.com/gtk-rs/gir @ 30b3c82)
|
||||
// from gir-files (https://github.com/gtk-rs/gir-files @ d848d25)
|
||||
// DO NOT EDIT
|
||||
|
||||
extern crate gstreamer_video_sys;
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue