aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/rxcpp
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/rxcpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/rxcpp')
-rw-r--r--vcpkg/ports/rxcpp/disable-tests.patch34
-rw-r--r--vcpkg/ports/rxcpp/portfile.cmake20
-rw-r--r--vcpkg/ports/rxcpp/vcpkg.json18
3 files changed, 72 insertions, 0 deletions
diff --git a/vcpkg/ports/rxcpp/disable-tests.patch b/vcpkg/ports/rxcpp/disable-tests.patch
new file mode 100644
index 0000000..8378c7f
--- /dev/null
+++ b/vcpkg/ports/rxcpp/disable-tests.patch
@@ -0,0 +1,34 @@
+diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt
+index 8856aa42e..2b3d57e97 100755
+--- a/projects/CMake/CMakeLists.txt
++++ b/projects/CMake/CMakeLists.txt
+@@ -11,18 +11,20 @@ get_filename_component(RXCPP_DIR "${RXCPP_DIR}" PATH)
+
+ MESSAGE( STATUS "RXCPP_DIR: " ${RXCPP_DIR} )
+
+-add_subdirectory(${RXCPP_DIR}/Rx/v2/test ${CMAKE_CURRENT_BINARY_DIR}/test)
++if (NOT ${RXCPP_DISABLE_TESTS_AND_EXAMPLES})
++ add_subdirectory(${RXCPP_DIR}/Rx/v2/test ${CMAKE_CURRENT_BINARY_DIR}/test)
+
+-add_subdirectory(${RXCPP_DIR}/projects/doxygen ${CMAKE_CURRENT_BINARY_DIR}/projects/doxygen)
++ add_subdirectory(${RXCPP_DIR}/projects/doxygen ${CMAKE_CURRENT_BINARY_DIR}/projects/doxygen)
+
+-set(EXAMPLES_DIR ${RXCPP_DIR}/Rx/v2/examples)
++ set(EXAMPLES_DIR ${RXCPP_DIR}/Rx/v2/examples)
+
+-add_subdirectory(${EXAMPLES_DIR}/cep ${CMAKE_CURRENT_BINARY_DIR}/examples/cep)
+-add_subdirectory(${EXAMPLES_DIR}/stop ${CMAKE_CURRENT_BINARY_DIR}/examples/stop)
+-add_subdirectory(${EXAMPLES_DIR}/linesfrombytes ${CMAKE_CURRENT_BINARY_DIR}/examples/linesfrombytes)
+-add_subdirectory(${EXAMPLES_DIR}/println ${CMAKE_CURRENT_BINARY_DIR}/examples/println)
+-add_subdirectory(${EXAMPLES_DIR}/pythagorian ${CMAKE_CURRENT_BINARY_DIR}/examples/pythagorian)
+-add_subdirectory(${EXAMPLES_DIR}/tests ${CMAKE_CURRENT_BINARY_DIR}/examples/tests)
++ add_subdirectory(${EXAMPLES_DIR}/cep ${CMAKE_CURRENT_BINARY_DIR}/examples/cep)
++ add_subdirectory(${EXAMPLES_DIR}/stop ${CMAKE_CURRENT_BINARY_DIR}/examples/stop)
++ add_subdirectory(${EXAMPLES_DIR}/linesfrombytes ${CMAKE_CURRENT_BINARY_DIR}/examples/linesfrombytes)
++ add_subdirectory(${EXAMPLES_DIR}/println ${CMAKE_CURRENT_BINARY_DIR}/examples/println)
++ add_subdirectory(${EXAMPLES_DIR}/pythagorian ${CMAKE_CURRENT_BINARY_DIR}/examples/pythagorian)
++ add_subdirectory(${EXAMPLES_DIR}/tests ${CMAKE_CURRENT_BINARY_DIR}/examples/tests)
++endif ()
+
+ # The list of RxCpp source files. Please add every new file to this list
+ set(RX_SOURCES
diff --git a/vcpkg/ports/rxcpp/portfile.cmake b/vcpkg/ports/rxcpp/portfile.cmake
new file mode 100644
index 0000000..56c1492
--- /dev/null
+++ b/vcpkg/ports/rxcpp/portfile.cmake
@@ -0,0 +1,20 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ReactiveX/RxCpp
+ REF v4.1.1
+ SHA512 387e1276151a19b62fd1d36b486ff5f3ed28f0f48ae8b00902bf13464d20603f492ecd63ab4444d04293fc3d92a8f7ce3e67a4c68836415c4655331fb6b54edb
+ HEAD_REF master
+ PATCHES
+ disable-tests.patch # from https://github.com/ReactiveX/RxCpp/pull/574
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT}/cmake/)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+file(COPY ${SOURCE_PATH}/license.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/license.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
diff --git a/vcpkg/ports/rxcpp/vcpkg.json b/vcpkg/ports/rxcpp/vcpkg.json
new file mode 100644
index 0000000..27a475c
--- /dev/null
+++ b/vcpkg/ports/rxcpp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "rxcpp",
+ "version": "4.1.1",
+ "port-version": 1,
+ "description": "Reactive Extensions for C++",
+ "homepage": "https://github.com/Reactive-Extensions/RxCpp",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}