2017-10-03 18:58:22 +08:00
|
|
|
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
2019-05-03 13:57:43 +08:00
|
|
|
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
2017-10-03 18:58:22 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO KazDragon/telnetpp
|
2019-08-25 04:43:57 +08:00
|
|
|
REF 8dc780579293153ad2ae9ad6943815c050d4c659
|
|
|
|
SHA512 280a8e6c0392f5822b05968520d176d1510f00c12a2502f6039f4f1f78a558e61f825a231fb70b7de6fd21a18b24734eea3ba36a24b29f2a7e9856b1f4de5217
|
2017-10-03 18:58:22 +08:00
|
|
|
HEAD_REF master
|
2020-05-27 13:50:28 +08:00
|
|
|
PATCHES
|
|
|
|
fix-build-error.patch
|
|
|
|
github-215.patch
|
2017-10-03 18:58:22 +08:00
|
|
|
)
|
|
|
|
|
2019-08-25 04:43:57 +08:00
|
|
|
set(USE_ZLIB OFF)
|
|
|
|
if("zlib" IN_LIST FEATURES)
|
|
|
|
set(USE_ZLIB ON)
|
|
|
|
endif()
|
|
|
|
|
2017-10-03 18:58:22 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-09-28 01:41:02 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2017-10-03 18:58:22 +08:00
|
|
|
PREFER_NINJA
|
2019-08-25 04:43:57 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGSL_INCLUDE_PATH=${CURRENT_INSTALLED_DIR}/include
|
|
|
|
-DTELNETPP_WITH_ZLIB=${USE_ZLIB}
|
|
|
|
-DTELNETPP_WITH_TESTS=OFF
|
2017-10-03 18:58:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-08-25 04:43:57 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/telnetpp)
|
2017-10-03 18:58:22 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-08-25 04:43:57 +08:00
|
|
|
# Remove duplicate header files and CMake input file
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/telnetpp/version.hpp.in)
|
2017-10-03 18:58:22 +08:00
|
|
|
# Handle copyright
|
2018-03-12 14:41:51 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/telnetpp RENAME copyright)
|