Big batch of renames: strip qoi prefix everywhere

This commit is contained in:
Ivan Smirnov 2022-01-03 21:40:24 +03:00
commit 328cfac40d
13 changed files with 73 additions and 72 deletions

18
bench/build.rs Normal file
View file

@ -0,0 +1,18 @@
use std::env;
use std::fs;
use std::path::PathBuf;
fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
let out_src = out_dir.join("qoi.c");
fs::write(&out_src, "#include \"qoi.h\"\n").unwrap();
cc::Build::new()
.file(&out_src)
.include("../ext/qoi")
.define("QOI_NO_STDIO", None)
.define("QOI_IMPLEMENTATION", None)
.flag("-Wno-unsequenced")
.opt_level(3)
.compile("qoi");
}