aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/reaction
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/reaction
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/reaction')
-rw-r--r--vcpkg/ports/reaction/portfile.cmake26
-rw-r--r--vcpkg/ports/reaction/usage4
-rw-r--r--vcpkg/ports/reaction/vcpkg.json17
3 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/reaction/portfile.cmake b/vcpkg/ports/reaction/portfile.cmake
new file mode 100644
index 0000000..a7b0f6f
--- /dev/null
+++ b/vcpkg/ports/reaction/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lumia431/reaction
+ REF "${VERSION}"
+ SHA512 7747b621c790318d3240f8634bf2310420c93b1418f9ac1384d784ab08658f12d2631e59d5927dc2b81c7801d150a785ea1cdfbb0b7025ea0531047023f8dab1
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_TESTS=OFF
+ -DBUILD_BENCHMARKS=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/reaction)
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug"
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
diff --git a/vcpkg/ports/reaction/usage b/vcpkg/ports/reaction/usage
new file mode 100644
index 0000000..9ef9045
--- /dev/null
+++ b/vcpkg/ports/reaction/usage
@@ -0,0 +1,4 @@
+reaction is a header-only library that provides CMake targets:
+
+ find_package(reaction CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE reaction::reaction)
diff --git a/vcpkg/ports/reaction/vcpkg.json b/vcpkg/ports/reaction/vcpkg.json
new file mode 100644
index 0000000..496a8da
--- /dev/null
+++ b/vcpkg/ports/reaction/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "reaction",
+ "version": "1.0.0",
+ "description": "A lightweight, header-only, high-performance reactive programming framework for C++20",
+ "homepage": "https://github.com/lumia431/reaction",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}