aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpp-ipc
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpp-ipc
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpp-ipc')
-rw-r--r--vcpkg/ports/cpp-ipc/portfile.cmake37
-rw-r--r--vcpkg/ports/cpp-ipc/vcpkg.json17
2 files changed, 54 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-ipc/portfile.cmake b/vcpkg/ports/cpp-ipc/portfile.cmake
new file mode 100644
index 0000000..4ce891f
--- /dev/null
+++ b/vcpkg/ports/cpp-ipc/portfile.cmake
@@ -0,0 +1,37 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mutouyun/cpp-ipc
+ REF 035d76d5aaaa420a61d5e08be841cc20e585adde #v1.3.0
+ SHA512 fea7054befc143ca1b4c55f3ffb72eb81353ce08f761e7c1ca79dd016449f76fbfc19bdb046a68e4d84df0f24da0312a0f560d9a25257811689041267bb42f1a
+ 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")
diff --git a/vcpkg/ports/cpp-ipc/vcpkg.json b/vcpkg/ports/cpp-ipc/vcpkg.json
new file mode 100644
index 0000000..0f18fc7
--- /dev/null
+++ b/vcpkg/ports/cpp-ipc/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "cpp-ipc",
+ "version": "1.3.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
+ }
+ ]
+}