vcpkg/ports/harfbuzz/portfile.cmake

40 lines
1.2 KiB
CMake
Raw Normal View History

2016-10-07 21:09:58 +02:00
include(vcpkg_common_functions)
2017-10-27 01:33:15 +03:30
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/harfbuzz-1.6.3)
2016-10-07 21:09:58 +02:00
vcpkg_download_distfile(ARCHIVE
2017-10-27 01:33:15 +03:30
URLS "https://github.com/behdad/harfbuzz/releases/download/1.6.3/harfbuzz-1.6.3.tar.bz2"
FILENAME "harfbuzz-1.6.3.tar.bz2"
SHA512 37d1a161d9074e9898d9ef6cca6dffffc725005828d700744553b0145373b69bcd3b08f507d49f4c2e05850d9275a54f15983356c547c86e5e3c202cc7cbfbe8
2016-10-07 21:09:58 +02:00
)
vcpkg_extract_source_archive(${ARCHIVE})
2017-05-29 12:26:27 +03:00
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
2017-05-29 12:26:27 +03:00
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-fix-uwp-build.patch"
)
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
2017-05-29 12:26:27 +03:00
SET(HAVE_GLIB "OFF")
SET(BUILTIN_UCDN "ON")
2017-05-29 12:26:27 +03:00
else()
SET(HAVE_GLIB "ON")
SET(BUILTIN_UCDN "OFF")
2017-05-29 12:26:27 +03:00
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DHB_HAVE_FREETYPE=ON
2017-05-29 12:26:27 +03:00
-DHB_HAVE_GLIB=${HAVE_GLIB}
-DHB_BUILTIN_UCDN=${BUILTIN_UCDN}
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
2016-10-07 21:09:58 +02:00
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
2017-01-26 11:25:24 +01:00
2016-10-07 21:09:58 +02:00
# Handle copyright
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/harfbuzz)
2016-10-07 21:09:58 +02:00
file(RENAME ${CURRENT_PACKAGES_DIR}/share/harfbuzz/COPYING ${CURRENT_PACKAGES_DIR}/share/harfbuzz/copyright)