glide 0.6.2

Cross-platform media player based on GStreamer and GTK
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;
use vergen::EmitBuilder;

fn main() -> Result<(), Box<dyn Error>> {
    let target = std::env::var("TARGET")?;
    if target.contains("linux") {
        println!("cargo:rustc-link-lib=X11");
    } else if target.contains("darwin") {
        println!("cargo:rustc-link-lib=framework=IOKit");
    }

    Ok(EmitBuilder::builder().all_build().all_git().cargo_features().emit()?)
}