fn main() {
cc::Build::new()
.file("zstd/contrib/seekable_format/zstdseek_compress.c")
.file("zstd/contrib/seekable_format/zstdseek_decompress.c")
.file("xxh64.c")
.opt_level(3)
.include("zstd/lib/common")
.include("zstd/lib")
.compile("zstdseek");
println!("cargo:rustc-link-lib=zstd");
println!("cargo:rustc-link-lib=xxhash");
pkg_config::probe_library("libzstd").unwrap();
pkg_config::probe_library("libxxhash").unwrap();
}