ctt-intel-texture-compressor 0.2.0

Vendored Intel ISPC texture compressor bindings, based on intel_tex_2
Documentation
fn main() {
    #[cfg(all(feature = "prebuilt", feature = "build-from-source"))]
    compile_error!("features `prebuilt` and `build-from-source` are mutually exclusive — pick one");

    // Always compile the C++ ASTC support code that the ISPC kernel_astc
    // module extern "C"'s into.
    cc::Build::new()
        .include("ispc")
        .file("ispc/ispc_texcomp_astc.cpp")
        .cpp(true)
        .compile("ispc_texcomp_astc");

    #[cfg(feature = "build-from-source")]
    {
        let mut kernel = ispc_build_utils::Config::new();
        kernel.file("ispc/kernel.ispc").opt_level(2).woff();
        kernel.compile("kernel");

        let mut kernel_astc = ispc_build_utils::Config::new();
        kernel_astc
            .file("ispc/kernel_astc.ispc")
            .opt_level(2)
            .woff();
        kernel_astc.compile("kernel_astc");
    }
}