Re-eliminate pkg-config dependency under MinGW
On MinGW, the "no_build_target(cfg!(windows))" line unfortunately prevents out/lib/pkgconfig/aom.pc from being created, causing the "// MSVC" code branch to be taken which results in a linker error (-laom not found). Rather than fixing pkg-config, we can pass an absolute path to libaom.a like we already do to aom.lib for MSVC. This has the benefit that rav1e can be compiled with MinGW directly from cmd, where pkg-config usually isn't available. Tested on: * MinGW-Builds 8.1.0 (cmd, msys2 terminal) * Visual Studio 2017 15.8.1 (cmd, msys2 terminal)
... | ... | @@ -26,9 +26,9 @@ num-traits = "0.2" |
[build-dependencies] | ||
cmake = "0.1.32" | ||
pkg-config = "0.3.12" | ||
[target.'cfg(unix)'.build-dependencies] | ||
pkg-config = "0.3.12" | ||
bindgen = { version = "0.37", optional = true } | ||
[dev-dependencies] | ||
... | ... |
Please register or sign in to comment