mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 14:15:51 +08:00
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:
parent
929f2d9b9b
commit
084eb43343
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user