Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ fn main() {

// Tell cargo to tell rustc to link the heif library.

#[cfg(not(target_os = "windows"))]
#[cfg(not(all(target_os = "windows", target_env = "msvc")))]
#[allow(unused_variables)]
let include_paths = find_libheif();

#[cfg(target_os = "windows")]
#[cfg(all(target_os = "windows", target_env = "msvc"))]
#[allow(unused_variables)]
let include_paths: Vec<String> = Vec::new();
#[cfg(target_os = "windows")]
#[cfg(all(target_os = "windows", target_env = "msvc"))]
install_libheif_by_vcpkg();

#[cfg(feature = "use-bindgen")]
Expand Down Expand Up @@ -133,7 +133,7 @@ fn compile_libheif() -> String {
.to_string()
}

#[cfg(not(target_os = "windows"))]
#[cfg(not(all(target_os = "windows", target_env = "msvc")))]
fn find_libheif() -> Vec<String> {
#[allow(unused_mut)]
let mut config = system_deps::Config::new();
Expand Down Expand Up @@ -175,7 +175,7 @@ fn find_libheif() -> Vec<String> {
}
}

#[cfg(target_os = "windows")]
#[cfg(all(target_os = "windows", target_env = "msvc"))]
fn install_libheif_by_vcpkg() {
let vcpkg_lib = vcpkg::Config::new()
.emit_includes(true)
Expand Down
Loading