2020-01-18 08:12:40 +08:00
|
|
|
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP" "osx")
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO winsoft666/teemo
|
2021-07-23 13:03:51 +08:00
|
|
|
REF f8019d3ea75b20bbd0d05693ba9f12a1ed0cebce
|
|
|
|
SHA512 f9ce0273909d07485d04c09dd29e2336186b058f4bfe4809ada1b7e831431ecf96049fb18cda21c27f3e8a652eb1f4c50a4b957b7f69b3918d41ab7a777240fe
|
2020-01-18 08:12:40 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" TEEMO_STATIC)
|
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-18 08:12:40 +08:00
|
|
|
OPTIONS
|
|
|
|
-DTEEMO_STATIC:BOOL=${TEEMO_STATIC}
|
|
|
|
-DBUILD_TESTS:BOOL=OFF
|
|
|
|
)
|
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
vcpkg_cmake_install()
|
2020-01-18 08:12:40 +08:00
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/teemo")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/teemo)
|
|
|
|
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/teemo")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/teemo)
|
2020-01-18 08:12:40 +08:00
|
|
|
endif()
|
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/teemo/teemo.h" "#ifdef TEEMO_STATIC" "#if $<STREQUAL:${VCPKG_LIBRARY_LINKAGE},static>")
|
2020-01-18 08:12:40 +08:00
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-01-18 08:12:40 +08:00
|
|
|
|
2021-11-17 01:25:28 +01:00
|
|
|
vcpkg_copy_pdbs()
|