mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 03:17:50 +08:00
f409536f5e
* [qt5] Fix mac build * [qt5] Disable parallel build on mac * [qt5] Fix qmake find on mac * [qt5] Update find jom for mac * [qt5] Fix invocation of build command * [qt5-base] Rebuild packages for #5624 * [harfbuzz] Remove disabled assert (failing due to -Werror) * [qt5] Bump control version * [qt5] Disable harfbuzz on mac * [qt5-base] Disable harfbuzz on mac
66 lines
1.6 KiB
CMake
66 lines
1.6 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO harfbuzz/harfbuzz
|
|
REF 2.3.1
|
|
SHA512 c90f8a530bf49e91f5297f6a3c2f4be65f8907e3b41892cd5fbc1353ce7036aae7e182bfd0ea8cb32b0310cbe7284a3de8b6622e08db9736c3f0bba6cb1f9f01
|
|
HEAD_REF master
|
|
PATCHES
|
|
0001-fix-cmake-export.patch
|
|
0002-fix-uwp-build.patch
|
|
0003-remove-broken-test.patch
|
|
)
|
|
|
|
SET(HB_HAVE_ICU "OFF")
|
|
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)
|
|
set(BUILTIN_UCDN OFF)
|
|
if("ucdn" IN_LIST FEATURES)
|
|
set(BUILTIN_UCDN ON)
|
|
endif()
|
|
|
|
# Glib
|
|
set(HAVE_GLIB OFF)
|
|
if("glib" IN_LIST FEATURES)
|
|
set(HAVE_GLIB ON)
|
|
endif()
|
|
|
|
# At least one Unicode callback must be specified, or harfbuzz compilation fails
|
|
if(NOT (BUILTIN_UCDN OR HAVE_GLIB))
|
|
message(FATAL_ERROR "Error: At least one Unicode callback must be specified (ucdn, glib).")
|
|
endif()
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DHB_HAVE_FREETYPE=ON
|
|
-DHB_BUILTIN_UCDN=${BUILTIN_UCDN}
|
|
-DHB_HAVE_ICU=${HB_HAVE_ICU}
|
|
-DHB_HAVE_GLIB=${HAVE_GLIB}
|
|
-DHB_HAVE_GRAPHITE2=${HB_HAVE_GRAPHITE2}
|
|
-DHB_BUILD_TESTS=OFF
|
|
OPTIONS_DEBUG
|
|
-DSKIP_INSTALL_HEADERS=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/harfbuzz TARGET_PATH share/harfbuzz)
|
|
vcpkg_copy_pdbs()
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz RENAME copyright)
|
|
|
|
vcpkg_test_cmake(PACKAGE_NAME harfbuzz)
|