2020-10-14 04:17:32 +08:00
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
set(ECSUtil_CONFIGURATION_RELEASE Release)
|
|
|
|
set(ECSUtil_CONFIGURATION_DEBUG Debug)
|
|
|
|
else()
|
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
|
|
|
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib")
|
|
|
|
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib")
|
|
|
|
else()
|
|
|
|
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib Static")
|
|
|
|
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib Static")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO EMCECS/ecs-object-client-windows-cpp
|
|
|
|
REF af9fd3cc0be5eacfeb431ca4607d3b73dd318353 # v1.0.7.15
|
|
|
|
SHA512 091f4b4870d5bdcbd46c35b2d75e927c9da69e2aba9a24b36504ab9fa3e33fba6eec2a8a5b649fc3ad793e3043c3f2702b753341f74d87de1a7f96c251839c69
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_msbuild(
|
2023-05-10 05:56:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-14 04:17:32 +08:00
|
|
|
PROJECT_SUBPATH ECSUtil.sln
|
2023-05-10 05:56:22 +08:00
|
|
|
PLATFORM "${TRIPLET_SYSTEM_ARCH}"
|
2020-10-14 04:17:32 +08:00
|
|
|
LICENSE_SUBPATH license.txt
|
|
|
|
TARGET ECSUtil
|
2023-05-10 05:56:22 +08:00
|
|
|
RELEASE_CONFIGURATION "${ECSUtil_CONFIGURATION_RELEASE}"
|
|
|
|
DEBUG_CONFIGURATION "${ECSUtil_CONFIGURATION_DEBUG}"
|
2020-10-14 04:17:32 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2023-05-10 05:56:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-10-14 04:17:32 +08:00
|
|
|
endif()
|
|
|
|
|
2023-05-10 05:56:22 +08:00
|
|
|
file(COPY "${SOURCE_PATH}/ECSUtil" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN *.h)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/ECSUtil/res" "${CURRENT_PACKAGES_DIR}/tools")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/NatvisAddIn.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/NatvisAddIn.dll")
|
2020-10-14 04:17:32 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2023-05-10 05:56:22 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
2020-10-14 04:17:32 +08:00
|
|
|
endif()
|