diff options
| author | winsoft666 <46803815+winsoft666@users.noreply.github.com> | 2021-09-08 05:12:35 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-07 14:12:35 -0700 |
| commit | ac2bcf0d6b294bcb728a622fc995ea18f0e1177c (patch) | |
| tree | 573eb63b0688d0af06fb0cd21a392dfa5cda66d4 | |
| parent | 642d1ccb276ce13d8a8521b1ef2856f5f7bc9cdd (diff) | |
| download | vcpkg-ac2bcf0d6b294bcb728a622fc995ea18f0e1177c.tar.gz vcpkg-ac2bcf0d6b294bcb728a622fc995ea18f0e1177c.zip | |
[cpp-ipc] Add new port (#19360)
* [teemo] Update version to v2.3.
* [teemo] Modify version to v2.2
* [teemo] Run `vcpkg x-add-version teemo` to add version info.
* [teemo] Update Build-Depends.
* Update versions/t-/teemo.json
* [libipc] Add new library.
* [libipc] Run ./vcpkg x-add-version --all
* [libipc] Fix compile error.
* update version
* Update ports/libipc/CONTROL
* update version
* Update ports/libipc/portfile.cmake
Co-authored-by: Billy O'Neal <bion@microsoft.com>
* Update ports/libipc/portfile.cmake
Co-authored-by: Billy O'Neal <bion@microsoft.com>
* [cpp-ipc] rename libipc to cpp-ipc
* [cpp-ipc] Run vcpkg x-add-version --all
* [cpp-ipc] Remove old libipc
* update cpp-ipc
* update version
* delet libipc.json
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
Co-authored-by: Billy O'Neal <bion@microsoft.com>
| -rw-r--r-- | ports/cpp-ipc/portfile.cmake | 39 | ||||
| -rw-r--r-- | ports/cpp-ipc/vcpkg.json | 17 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/c-/cpp-ipc.json | 9 |
4 files changed, 69 insertions, 0 deletions
diff --git a/ports/cpp-ipc/portfile.cmake b/ports/cpp-ipc/portfile.cmake new file mode 100644 index 000000000..0f3d3981c --- /dev/null +++ b/ports/cpp-ipc/portfile.cmake @@ -0,0 +1,39 @@ +vcpkg_fail_port_install(ON_TARGET "OSX")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mutouyun/cpp-ipc
+ REF df3cf1b4c42143e6675c6fb0f33f85a48b7c7701 #v1.0.0
+ SHA512 de319d48ac396f567b2f5faae87a264b9ebfbaf0559a3e00de61facd6a3f2de1739e064c6e037ad694111ed211c0fb9ea6ec2db0259c100e2bafe553c15ed2f6
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBIPC_BUILD_SHARED_LIBS)
+string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" LIBIPC_USE_STATIC_CRT)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DLIBIPC_BUILD_SHARED_LIBS:BOOL=${LIBIPC_BUILD_SHARED_LIBS}
+ -DLIBIPC_USE_STATIC_CRT:BOOL=${LIBIPC_USE_STATIC_CRT}
+ -DLIBIPC_BUILD_TESTS:BOOL=OFF
+ -DLIBIPC_BUILD_DEMOS:BOOL=OFF
+)
+
+vcpkg_cmake_install()
+
+if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/cpp-ipc")
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpp-ipc)
+elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/cpp-ipc")
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cpp-ipc)
+endif()
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libipc/export.h" "#elif defined(LIBIPC_LIBRARY_SHARED_USING__)" "#elif 1")
+endif()
+
+vcpkg_copy_pdbs()
+
+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")
\ No newline at end of file diff --git a/ports/cpp-ipc/vcpkg.json b/ports/cpp-ipc/vcpkg.json new file mode 100644 index 000000000..5e42a0a65 --- /dev/null +++ b/ports/cpp-ipc/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "cpp-ipc", + "version": "1.0.0", + "description": "C++ IPC Library: A high-performance inter-process communication using shared memory on Linux/Windows.", + "homepage": "https://github.com/mutouyun/cpp-ipc", + "supports": "!osx", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 293a613a6..b440f5dae 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1424,6 +1424,10 @@ "baseline": "0.9.1", "port-version": 0 }, + "cpp-ipc": { + "baseline": "1.0.0", + "port-version": 0 + }, "cpp-netlib": { "baseline": "0.13.0", "port-version": 4 diff --git a/versions/c-/cpp-ipc.json b/versions/c-/cpp-ipc.json new file mode 100644 index 000000000..75ed310a1 --- /dev/null +++ b/versions/c-/cpp-ipc.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "a54fbdb4b0fa6b820b1f6a55004f5622f3c02941", + "version": "1.0.0", + "port-version": 0 + } + ] +} |
