vapoursynth4-sys 0.3.2+R73

Rust bindings for VapourSynth and VSScript API version 4
/*
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

fn main() {
    #[cfg(feature = "link-library")]
    {
        use std::env;

        const LIBRARY_DIR_VARIABLE: &str = "VAPOURSYNTH_LIB_PATH";

        // Make sure the build script is re-run if our env variable is changed.
        println!("cargo:rerun-if-env-changed={LIBRARY_DIR_VARIABLE}");

        if let Ok(dir) = env::var(LIBRARY_DIR_VARIABLE) {
            println!("cargo:rustc-link-search=native={dir}");
        }
    }
}