2018-03-10 18:59:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eProsima/Fast-CDR
|
2022-12-13 08:00:12 +08:00
|
|
|
REF v1.0.25
|
|
|
|
SHA512 6a20e8ba61fb516fce35bb27f02db8fb45f287bfd49574dcb39e149e6edde0b4d0598f00399a4d0557ca1f6133d96a6701d6475cbd9039879cddb5089b0ef447
|
2018-03-10 18:59:43 +08:00
|
|
|
HEAD_REF master
|
2022-12-13 08:00:12 +08:00
|
|
|
PATCHES
|
|
|
|
pdb-file.patch
|
2018-03-10 18:59:43 +08:00
|
|
|
)
|
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH})
|
2018-03-10 18:59:43 +08:00
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-10 18:59:43 +08:00
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fastcdr)
|
2018-10-21 05:17:14 +08:00
|
|
|
|
2018-03-10 18:59:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/lib/fastcdr ${CURRENT_PACKAGES_DIR}/debug/lib/fastcdr)
|
2020-10-09 14:31:35 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2018-03-10 18:59:43 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/eProsima_auto_link.h" "#define EPROSIMA_LIB_PREFIX \"lib\"" "#define EPROSIMA_LIB_PREFIX")
|
2018-03-10 18:59:43 +08:00
|
|
|
else()
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/config.h" "#define _FASTCDR_CONFIG_H_" "#define _FASTCDR_CONFIG_H_\r\n#define FASTCDR_DYN_LINK")
|
2018-03-10 18:59:43 +08:00
|
|
|
endif()
|
|
|
|
|
2021-04-08 03:30:16 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|