From 4631d84c2bb51395efe3156f9c9f1a6b0e277947 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Tue, 18 Oct 2016 14:30:00 +0330 Subject: [PATCH] Merge back @vlj's local patches of vcpkg --- win32/config-msvc.mak | 7 +++++++ win32/detectenv-msvc.mak | 3 +++ 2 files changed, 10 insertions(+) diff --git a/win32/config-msvc.mak b/win32/config-msvc.mak index 88ae07168..d8b851d1e 100644 --- a/win32/config-msvc.mak +++ b/win32/config-msvc.mak @@ -12,7 +12,11 @@ HB_GLIB_LIBS = glib-2.0.lib HB_GOBJECT_DEP_LIBS = gobject-2.0.lib $(HB_GLIB_LIBS) # Freetype is needed for building FreeType support and hb-view +!if "$(CFG)" == "debug" +FREETYPE_LIB = freetyped.lib +!else FREETYPE_LIB = freetype.lib +!endif # Cairo is needed for building hb-view CAIRO_LIB = cairo.lib @@ -125,6 +129,9 @@ HB_DEFINES = $(HB_DEFINES) /DHAVE_CAIRO=1 # Enable freetype if desired !if "$(FREETYPE)" == "1" +!if "$(FREETYPE_DIR)" != "" +HB_CFLAGS = $(HB_CFLAGS) /I$(FREETYPE_DIR) +!endif HB_DEFINES = $(HB_DEFINES) /DHAVE_FREETYPE=1 HB_SOURCES = $(HB_SOURCES) $(HB_FT_sources) HB_HEADERS = $(HB_HEADERS) $(HB_FT_headers) diff --git a/win32/detectenv-msvc.mak b/win32/detectenv-msvc.mak index 83d87862c..41f4bd097 100644 --- a/win32/detectenv-msvc.mak +++ b/win32/detectenv-msvc.mak @@ -130,6 +130,9 @@ LDFLAGS_ARCH = /machine:x86 CFLAGS = $(CFLAGS_ADD) /W3 /Zi /I.. /I..\src /I. /I$(PREFIX)\include LDFLAGS_BASE = $(LDFLAGS_ARCH) /libpath:$(PREFIX)\lib /DEBUG +!if "$(ADDITIONAL_LIB_DIR)" != "" +LDFLAGS_BASE = $(LDFLAGS_ARCH) /libpath:$(ADDITIONAL_LIB_DIR) +!endif !if "$(CFG)" == "debug" LDFLAGS = $(LDFLAGS_BASE)