Add icu support for harfbuzz (#3738)

* Add icu support for harfbuzz

* [harfbuzz] Set feature OFF if not provided instead of leaving it blank.
This commit is contained in:
krow 2018-07-03 21:24:02 +08:00 committed by Robert Schumacher
parent 929f2d9b9b
commit 084eb43343
2 changed files with 10 additions and 0 deletions

View File

@ -2,3 +2,7 @@ Source: harfbuzz
Version: 1.8.1
Description: HarfBuzz OpenType text shaping engine
Build-Depends: freetype, ragel, glib (windows)
Feature: icu
Build-Depends: icu
Description: icu support for harfbuzz

View File

@ -15,6 +15,11 @@ vcpkg_apply_patches(
"${CMAKE_CURRENT_LIST_DIR}/find-package-freetype-2.patch"
)
SET(HB_HAVE_ICU "OFF")
if("icu" IN_LIST FEATURES)
SET(HB_HAVE_ICU "ON")
endif()
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_CMAKE_SYSTEM_NAME)
SET(HAVE_GLIB "OFF")
SET(BUILTIN_UCDN "ON")
@ -30,6 +35,7 @@ vcpkg_configure_cmake(
-DHB_HAVE_FREETYPE=ON
-DHB_HAVE_GLIB=${HAVE_GLIB}
-DHB_BUILTIN_UCDN=${BUILTIN_UCDN}
-DHB_HAVE_ICU=${HB_HAVE_ICU}
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
)