2017-12-15 15:12:21 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-12-21 16:19:44 +08:00
|
|
|
|
2017-12-15 15:12:21 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
2017-12-21 16:19:44 +08:00
|
|
|
message(STATUS "brynet does not support dynamic linkage. Building statically.")
|
2017-12-15 15:12:21 +08:00
|
|
|
set(VCPKG_LIBRARY_LINKAGE static)
|
|
|
|
endif()
|
|
|
|
|
2017-12-21 16:19:44 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO IronsDu/brynet
|
2018-11-02 10:27:44 +08:00
|
|
|
REF v1.0.0
|
|
|
|
SHA512 f2ad0514d5b25828b38d929bf352a8a35c39816982f7a3aaca2b6d74a7e592d8a37d2af6b77d6babf2eec25063ed1bb50704e8871d18d7e5f777021d18604b9c
|
2017-12-21 16:19:44 +08:00
|
|
|
HEAD_REF master
|
2017-12-15 15:12:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-12-21 16:19:44 +08:00
|
|
|
PREFER_NINJA
|
2017-12-15 15:12:21 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-12-21 16:19:44 +08:00
|
|
|
|
2017-12-15 15:12:21 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-12-21 16:19:44 +08:00
|
|
|
|
|
|
|
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/brynet)
|
2017-12-15 15:12:21 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/brynet/LICENSE ${CURRENT_PACKAGES_DIR}/share/brynet/copyright)
|