mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 23:37:58 +08:00
99369e3127
* [cyclonedds] update to 0.10.4 * [cyclonedds] update to 0.10.4 * [cyclonedds-cxx] update to 0.10.4 * [cyclonedds-cxx] update to 0.10.4
52 lines
1.6 KiB
CMake
52 lines
1.6 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO eclipse-cyclonedds/cyclonedds
|
|
REF "${VERSION}"
|
|
SHA512 7ef0227c7595f2cfaab82a1e41a202df926891b0744b5301bde6522acee9e817a46977b505e0c4940d517349494717a52f95e8a925ce57136876c119056bea50
|
|
HEAD_REF master
|
|
PATCHES
|
|
enable-security.patch
|
|
idlc-generate.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
"ddsperf" BUILD_DDSPERF
|
|
"deadline-missed" ENABLE_DEADLINE_MISSED
|
|
"ipv6" ENABLE_IPV6
|
|
"idlc" BUILD_IDLC
|
|
"lifespan" ENABLE_LIFESPAN
|
|
"security" ENABLE_SECURITY
|
|
"shm" ENABLE_SHM
|
|
"source-specific-multicast" ENABLE_SOURCE_SPECIFIC_MULTICAST
|
|
"ssl" ENABLE_SSL
|
|
"topic-discovery" ENABLE_TOPIC_DISCOVERY
|
|
"type-discovery" ENABLE_TYPE_DISCOVERY
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/CycloneDDS")
|
|
|
|
if(BUILD_IDLC)
|
|
vcpkg_copy_tools(TOOL_NAMES idlc AUTO_CLEAN)
|
|
endif()
|
|
|
|
if(BUILD_DDSPERF)
|
|
vcpkg_copy_tools(TOOL_NAMES ddsperf AUTO_CLEAN)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|