aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrLF0710 <crlf0710@gmail.com>2018-08-22 08:07:53 +0800
committerRobert Schumacher <roschuma@microsoft.com>2018-08-21 17:07:53 -0700
commit57a4b8b8e3cf1b91ccf275aefd922655f43dd1ce (patch)
tree6c9fe10e167221e6b5fe232f444107361db159d3
parentb509ceb48d4a9e36a66df1fab999aef443a26fb0 (diff)
downloadvcpkg-57a4b8b8e3cf1b91ccf275aefd922655f43dd1ce.tar.gz
vcpkg-57a4b8b8e3cf1b91ccf275aefd922655f43dd1ce.zip
Add graphite2 support for harfbuzz. (#4097)
-rw-r--r--ports/harfbuzz/CONTROL4
-rw-r--r--ports/harfbuzz/portfile.cmake6
2 files changed, 10 insertions, 0 deletions
diff --git a/ports/harfbuzz/CONTROL b/ports/harfbuzz/CONTROL
index 8eaa04edf..fc9ce8370 100644
--- a/ports/harfbuzz/CONTROL
+++ b/ports/harfbuzz/CONTROL
@@ -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
diff --git a/ports/harfbuzz/portfile.cmake b/ports/harfbuzz/portfile.cmake
index 29fe88642..4a1a0309b 100644
--- a/ports/harfbuzz/portfile.cmake
+++ b/ports/harfbuzz/portfile.cmake
@@ -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
)