Add graphite2 support for harfbuzz. (#4097)

This commit is contained in:
CrLF0710 2018-08-22 08:07:53 +08:00 committed by Robert Schumacher
parent b509ceb48d
commit 57a4b8b8e3
2 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,10 @@ Description: HarfBuzz OpenType text shaping engine
Build-Depends: freetype, ragel
Default-Features: ucdn
Feature: graphite2
Build-Depends: graphite2
Description: Graphite2 shaper support
Feature: icu
Build-Depends: icu
Description: icu support for harfbuzz

View File

@ -21,6 +21,11 @@ if("icu" IN_LIST FEATURES)
SET(HB_HAVE_ICU "ON")
endif()
SET(HB_HAVE_GRAPHITE2 "OFF")
if("graphite2" IN_LIST FEATURES)
SET(HB_HAVE_GRAPHITE2 "ON")
endif()
## Unicode callbacks
# Builtin (UCDN)
@ -48,6 +53,7 @@ vcpkg_configure_cmake(
-DHB_BUILTIN_UCDN=${BUILTIN_UCDN}
-DHB_HAVE_ICU=${HB_HAVE_ICU}
-DHB_HAVE_GLIB=${HAVE_GLIB}
-DHB_HAVE_GRAPHITE2=${HB_HAVE_GRAPHITE2}
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
)