x264-next 0.4.2

This crate is deprecated in favor of the x264 crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate pkg_config;

fn main() {
    let x264 = pkg_config::Config::new()
        .cargo_metadata(false)
        .probe("x264")
        .expect("Is x264 installed?");

    let n: Option<u64> = x264.version.split('.').nth(1).and_then(|n| n.parse().ok());

    if let Some(n) = n {
        if n >= 149 {
            println!("cargo:rustc-cfg=yuyv");
        }
    }
}