vcpkg/ports/arb/portfile.cmake

30 lines
813 B
CMake
Raw Normal View History

2017-11-04 08:57:33 +08:00
include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2017-11-04 08:57:33 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
2017-11-04 08:57:33 +08:00
REPO fredrik-johansson/arb
REF 2.16.0
SHA512 171c965aeb03cd2830df8a53990403c6da480a94d44385dadfbb2d02697f7c03e8b9a217094b0ad93f796d889a1564f4b9ae9db35ef9de90f61bb2e3220911be
2017-11-04 08:57:33 +08:00
HEAD_REF master
PATCHES fix-build-error.patch
2017-11-04 08:57:33 +08:00
)
file(REMOVE ${SOURCE_PATH}/CMakeLists.txt)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2017-11-27 04:52:30 +08:00
PREFER_NINJA
2017-11-04 08:57:33 +08:00
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
# Remove duplicate headers
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2017-11-04 08:57:33 +08:00
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/arb RENAME copyright)