diff options
| -rw-r--r-- | ports/harfbuzz/CONTROL | 4 | ||||
| -rw-r--r-- | ports/harfbuzz/portfile.cmake | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ports/harfbuzz/CONTROL b/ports/harfbuzz/CONTROL index d7aa0732c..3ad5ed8d6 100644 --- a/ports/harfbuzz/CONTROL +++ b/ports/harfbuzz/CONTROL @@ -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 diff --git a/ports/harfbuzz/portfile.cmake b/ports/harfbuzz/portfile.cmake index 31081929c..10b0fc80a 100644 --- a/ports/harfbuzz/portfile.cmake +++ b/ports/harfbuzz/portfile.cmake @@ -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 ) |
