2017-09-03 08:09:07 +08:00
|
|
|
include(vcpkg_common_functions)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2017-09-03 08:09:07 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO adah1972/libunibreak
|
2020-02-11 08:08:57 +08:00
|
|
|
REF a411e4d291741623962a11595dae880422a20ef5 # libunibreak_4_2-1
|
|
|
|
SHA512 b4935989990ea1a1a881836696d943c658cf41dd43404e07863c4091a54aa35242e38a359f78899b9975fe2c97e866166da3d0fc3912b9df327deb8a315a590f
|
2017-09-03 08:09:07 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libunibreak RENAME copyright)
|