2016-10-08 03:09:58 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-11-30 05:12:11 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO behdad/harfbuzz
|
|
|
|
REF 1.7.1
|
|
|
|
SHA512 af25a393f0401e04647b8bc508cfed3cea399522e2932631d87f45127b7f975bfd9d896b1e3104a97f4b69b3e0e8a001173fbee0af0c559cd580d4aa5cd8d04d
|
|
|
|
HEAD_REF master
|
2016-10-08 03:09:58 +08:00
|
|
|
)
|
2017-04-15 20:39:04 +08:00
|
|
|
|
2017-05-29 17:26:27 +08:00
|
|
|
vcpkg_apply_patches(
|
2017-10-28 05:00:17 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-05-29 17:26:27 +08:00
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-fix-uwp-build.patch"
|
|
|
|
)
|
|
|
|
|
2017-06-07 02:12:25 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2017-05-29 17:26:27 +08:00
|
|
|
SET(HAVE_GLIB "OFF")
|
2017-06-07 02:12:25 +08:00
|
|
|
SET(BUILTIN_UCDN "ON")
|
2017-05-29 17:26:27 +08:00
|
|
|
else()
|
|
|
|
SET(HAVE_GLIB "ON")
|
2017-06-07 02:12:25 +08:00
|
|
|
SET(BUILTIN_UCDN "OFF")
|
2017-05-29 17:26:27 +08:00
|
|
|
endif()
|
|
|
|
|
2017-04-15 20:39:04 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DHB_HAVE_FREETYPE=ON
|
2017-05-29 17:26:27 +08:00
|
|
|
-DHB_HAVE_GLIB=${HAVE_GLIB}
|
|
|
|
-DHB_BUILTIN_UCDN=${BUILTIN_UCDN}
|
2017-04-15 20:39:04 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DSKIP_INSTALL_HEADERS=ON
|
2016-10-08 03:09:58 +08:00
|
|
|
)
|
|
|
|
|
2017-04-15 20:39:04 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2017-01-26 18:25:24 +08:00
|
|
|
|
2016-10-08 03:09:58 +08:00
|
|
|
# Handle copyright
|
2016-12-08 07:35:23 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz)
|
2016-10-08 03:09:58 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/harfbuzz/COPYING ${CURRENT_PACKAGES_DIR}/share/harfbuzz/copyright)
|