aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Zhong <cmpute@qq.com>2018-04-20 07:17:35 +0800
committerRobert Schumacher <roschuma@microsoft.com>2018-04-19 16:17:35 -0700
commit9b8245e6de769499464a50362151e347c952c395 (patch)
treebe00c78f2d5e575a900b42c5d4f09c86daeb6061
parent8087d70a2d8ca1437517d7a0c742631705c096ee (diff)
downloadvcpkg-9b8245e6de769499464a50362151e347c952c395.tar.gz
vcpkg-9b8245e6de769499464a50362151e347c952c395.zip
Add package Fast-RTPS and enable modules for python (#2948)
* [ros2] Init packages * [fastrtps] Finish porting * Add python acquiring module * [ros2] Setting up environment * [ros2] remove ros2 * [vcpkg-acquire-python] Revert to split PR
-rw-r--r--ports/fastrtps/CONTROL4
-rw-r--r--ports/fastrtps/fix-install.patch14
-rw-r--r--ports/fastrtps/portfile.cmake32
-rw-r--r--ports/vlpp/portfile.cmake2
4 files changed, 51 insertions, 1 deletions
diff --git a/ports/fastrtps/CONTROL b/ports/fastrtps/CONTROL
new file mode 100644
index 000000000..edbe4b7d4
--- /dev/null
+++ b/ports/fastrtps/CONTROL
@@ -0,0 +1,4 @@
+Source: fastrtps
+Version: 1.5.0
+Description: Eprosima Fast RTPS is a C++ implementation of the RTPS (Real Time Publish Subscribe) protocol, which provides publisher-subscriber communications over unreliable transports such as UDP, as defined and maintained by the Object Management Group (OMG) consortium.
+Build-Depends: openssl, asio, tinyxml2 \ No newline at end of file
diff --git a/ports/fastrtps/fix-install.patch b/ports/fastrtps/fix-install.patch
new file mode 100644
index 000000000..4777ae3ee
--- /dev/null
+++ b/ports/fastrtps/fix-install.patch
@@ -0,0 +1,14 @@
+diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
+index a1e91fd..f5578cd 100644
+--- a/src/cpp/CMakeLists.txt
++++ b/src/cpp/CMakeLists.txt
+@@ -416,7 +416,8 @@ if(MSVC OR MSVC_IDE)
+ PATTERN "*.pdb"
+ )
+
+- if(NOT (("${MSVC_ARCH}" STREQUAL "i86Win32VS2013") OR ("${MSVC_ARCH}" STREQUAL "x64Win64VS2013")))
++ if(NOT (("${MSVC_ARCH}" STREQUAL "i86Win32VS2013") OR ("${MSVC_ARCH}" STREQUAL "x64Win64VS2013")
++ OR ("${MSVC_ARCH}" STREQUAL "i86Win32VS2015") OR ("${MSVC_ARCH}" STREQUAL "x64Win64VS2015")))
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_static.dir/Debug/${PROJECT_NAME}_static.pdb
+ DESTINATION ${LIB_INSTALL_DIR}${DIR_EXTENSION}
+ COMPONENT libraries_${MSVC_ARCH}
diff --git a/ports/fastrtps/portfile.cmake b/ports/fastrtps/portfile.cmake
new file mode 100644
index 000000000..855d9f8b5
--- /dev/null
+++ b/ports/fastrtps/portfile.cmake
@@ -0,0 +1,32 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eProsima/Fast-RTPS
+ REF b1779b608c7b5b2dcb101728f4213c58bdde74ee # waiting for next release
+ SHA512 9ec4a1e41296df1c0bc00926d925e0947602fabb68e9b28311e92739b0e1909a2993b15fc05eb31aeb9842ed50127f8d56571d09e57dd64ac6f37d0fed6cea73
+ HEAD_REF master
+)
+
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES ${CMAKE_CURRENT_LIST_DIR}/fix-install.patch
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share)
+file(COPY ${CURRENT_PACKAGES_DIR}/lib/fastrtps DESTINATION ${CURRENT_PACKAGES_DIR}/share)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/examples)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/LICENSE)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/examples)
+
+file(RENAME ${CURRENT_PACKAGES_DIR}/LICENSE ${CURRENT_PACKAGES_DIR}/share/fastrtps/copyright)
diff --git a/ports/vlpp/portfile.cmake b/ports/vlpp/portfile.cmake
index 1b7ec027a..1ee003ffb 100644
--- a/ports/vlpp/portfile.cmake
+++ b/ports/vlpp/portfile.cmake
@@ -22,7 +22,7 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_copy_pdbs()
-file(REMOVE_RECURSE ${CURRENT_PACKAGE_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Tools
file(INSTALL ${SOURCE_PATH}/Tools/CppMerge.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools)