1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

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.
This commit is contained in:
Wez Furlong 2020-08-29 10:03:07 -07:00
parent 70fc76a040
commit 124fe559cd

View File

@ -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");
}