Skip to content

Commit

Permalink
[feat] Use libjpeg instead of mozjpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Jan 5, 2024
1 parent bf0a164 commit b597bbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions libraw-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ links = "raw_r"
libc = "0.2.123"
libz-sys = { version = "1.1.8", optional = true, features = ["static"], default-features = false }
# We want to switch out to libjpeg-turbo but currently the build system depends cmake and doesn't build on windows for some reason
mozjpeg-sys = { version = "1.0", optional = true, features = ["jpeg80_abi"], registry = "ktra" }
# mozjpeg-sys = { version = "1.0", optional = true, features = ["jpeg80_abi"], registry = "ktra" }
libjpeg-sys = { path = "/Users/fs0c131y/Projects/aftershoot/libjpeg-sys", optional = true, features = ["jpeg80_abi"] }
openmp-sys = { version = "1.2.3", optional = true }

[build-dependencies]
Expand All @@ -31,6 +32,6 @@ default = ["jpeg", "zlib", "bindgen"]
bindgen = ["dep:bindgen"]
copy = []
zlib = ["dep:libz-sys"]
jpeg = ["dep:mozjpeg-sys"]
jpeg = ["dep:libjpeg-sys"]
openmp = ["dep:openmp-sys"]
openmp_static = ["openmp", "openmp-sys?/static"]
2 changes: 1 addition & 1 deletion libraw-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ fn build(out_dir: impl AsRef<Path>, libraw_dir: impl AsRef<Path>) -> Result<()>
);
println!("cargo:rustc-link-lib=static=raw_r");
#[cfg(feature = "jpeg")]
println!("cargo:rustc-link-lib=static=mozjpeg80");
println!("cargo:rustc-link-lib=static=jpeg");
#[cfg(feature = "zlib")]
println!("cargo:rustc-link-lib=static=z");

Expand Down
2 changes: 1 addition & 1 deletion libraw-sys/vendor

0 comments on commit b597bbf

Please sign in to comment.