From 124fe559cd7249d1331148fde0893e78c79bc467 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 29 Aug 2020 10:03:07 -0700 Subject: [PATCH] fixup win32 build `cargo test --release --all` was broken by a recent update. Interesting that it only broke when building tests. Regardless: these deps should probably have always been required, so this is a legit change. --- deps/harfbuzz/build.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deps/harfbuzz/build.rs b/deps/harfbuzz/build.rs index 07cda3053..1bae436f2 100644 --- a/deps/harfbuzz/build.rs +++ b/deps/harfbuzz/build.rs @@ -101,6 +101,7 @@ fn harfbuzz() { // We know that these are present in our vendored freetype cfg.define("HAVE_FREETYPE", Some("1")); + cfg.define("HAVE_FT_Get_Var_Blend_Coordinates", Some("1")); cfg.define("HAVE_FT_Set_Var_Blend_Coordinates", Some("1")); cfg.define("HAVE_FT_Done_MM_Var", Some("1")); @@ -119,7 +120,9 @@ fn harfbuzz() { cfg.file("harfbuzz/src/hb-uniscribe.cc"); println!("cargo:rustc-link-lib=usp10"); + println!("cargo:rustc-link-lib=gdi32"); println!("cargo:rustc-link-lib=rpcrt4"); + println!("cargo:rustc-link-lib=user32"); } // Import the include dirs exported from deps/freetype/build.rs @@ -127,6 +130,14 @@ fn harfbuzz() { cfg.include(inc); } + println!( + "cargo:rustc-link-search={}", + std::env::var("DEP_FREETYPE_LIB").unwrap() + ); + println!("cargo:rustc-link-lib=freetype"); + println!("cargo:rustc-link-lib=png"); + println!("cargo:rustc-link-lib=z"); + cfg.compile("harfbuzz"); }