vcpkg/ports/harfbuzz/portfile.cmake

27 lines
919 B
CMake
Raw Normal View History

2016-10-08 03:09:58 +08:00
include(vcpkg_common_functions)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/harfbuzz-1.4.6)
2016-10-08 03:09:58 +08:00
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/behdad/harfbuzz/releases/download/1.4.6/harfbuzz-1.4.6.tar.bz2"
FILENAME "harfbuzz-1.4.6.tar.bz2"
SHA512 aade3902adadf3a8339ba1d05279e639da7cb53981adc64e2a2d32a5d49335a6a9782a62cdf80beca569ec8a639792bf0368c0b6ecad08f35bc85878678aa096
2016-10-08 03:09:58 +08:00
)
vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DHB_HAVE_FREETYPE=ON
-DHB_HAVE_GLIB=ON
-DHB_BUILTIN_UCDN=OFF
OPTIONS_DEBUG
-DSKIP_INSTALL_HEADERS=ON
2016-10-08 03:09:58 +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
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)