mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[rxcpp] Change to new repository (#8361)
* Update for new repo * Update portfile.cmake
This commit is contained in:
parent
22cbc5c7e3
commit
3c39089dad
@ -1,4 +1,4 @@
|
|||||||
Source: rxcpp
|
Source: rxcpp
|
||||||
Version: 4.1.0
|
Version: 4.1.0
|
||||||
Homepage: https://github.com/Reactive-Extensions/RxCpp
|
Homepage: https://github.com/ReactiveX/RxCpp
|
||||||
Description: Reactive Extensions for C++
|
Description: Reactive Extensions for C++
|
@ -1,25 +1,26 @@
|
|||||||
#header-only library
|
#header-only library
|
||||||
include(vcpkg_common_functions)
|
include(vcpkg_common_functions)
|
||||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/RxCpp-4.0.0)
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/RxCpp-4.1.0)
|
||||||
|
|
||||||
vcpkg_from_github(
|
vcpkg_from_github(
|
||||||
OUT_SOURCE_PATH SOURCE_PATH
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
REPO Reactive-Extensions/RxCpp
|
REPO ReactiveX/RxCpp
|
||||||
REF v4.1.0
|
REF v4.1.0
|
||||||
SHA512 a92e817ecbdf6f235cae724ada2615af9fa0c243249625d0f2c2f09ff5dd7f53fdabd03a0278fe2995fe27528c5511d71f87b7a6b3d54f73b49b65aef56e32fd
|
SHA512 a92e817ecbdf6f235cae724ada2615af9fa0c243249625d0f2c2f09ff5dd7f53fdabd03a0278fe2995fe27528c5511d71f87b7a6b3d54f73b49b65aef56e32fd
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
|
PATCHES support_find_package.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
file(INSTALL
|
vcpkg_configure_cmake(
|
||||||
${SOURCE_PATH}/Rx/v2/src/rxcpp
|
SOURCE_PATH ${SOURCE_PATH}
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
PREFER_NINJA
|
||||||
|
OPTIONS
|
||||||
|
-DBUILD_TESTS=OFF
|
||||||
)
|
)
|
||||||
|
|
||||||
file(INSTALL
|
vcpkg_install_cmake()
|
||||||
${SOURCE_PATH}/Ix/CPP/src/cpplinq
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT}/cmake/)
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
|
||||||
)
|
|
||||||
|
|
||||||
file(INSTALL
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
||||||
${SOURCE_PATH}/license.md
|
file(COPY ${SOURCE_PATH}/license.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/rxcpp RENAME copyright)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/license.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
||||||
|
32
ports/rxcpp/support_find_package.patch
Normal file
32
ports/rxcpp/support_find_package.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt
|
||||||
|
index 3d0744740..293f187c5 100644
|
||||||
|
--- a/projects/CMake/CMakeLists.txt
|
||||||
|
+++ b/projects/CMake/CMakeLists.txt
|
||||||
|
@@ -146,3 +146,27 @@ set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE CACHE BOOL "Don't require all project
|
||||||
|
|
||||||
|
install(DIRECTORY ${RXCPP_DIR}/Rx/v2/src/rxcpp/ DESTINATION include/rxcpp
|
||||||
|
FILES_MATCHING PATTERN "*.hpp")
|
||||||
|
+
|
||||||
|
+# Here we are exporting TARGETS so that other projects can import rxcpp
|
||||||
|
+# just with find_package(rxcpp CONFIG) after rxcpp is installed into system by "make install".
|
||||||
|
+add_library(rxcpp INTERFACE)
|
||||||
|
+
|
||||||
|
+target_include_directories(rxcpp INTERFACE
|
||||||
|
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
|
+ $<INSTALL_INTERFACE:include/rxcpp>
|
||||||
|
+)
|
||||||
|
+
|
||||||
|
+install(TARGETS rxcpp EXPORT rxcppConfig)
|
||||||
|
+install(EXPORT rxcppConfig DESTINATION share/rxcpp/cmake)
|
||||||
|
+
|
||||||
|
+# When find_package(rxcpp SOME_VERSION REQUIRED) will be used in third party project
|
||||||
|
+# where SOME_VERSION is any version incompatible with ${PROJECT_VERSION} then cmake will generate the error.
|
||||||
|
+# It means you don't need track versions manually.
|
||||||
|
+include(CMakePackageConfigHelpers)
|
||||||
|
+write_basic_package_version_file("${PROJECT_BINARY_DIR}/rxcppConfigVersion.cmake"
|
||||||
|
+ VERSION
|
||||||
|
+ ${PROJECT_VERSION}
|
||||||
|
+ COMPATIBILITY
|
||||||
|
+ AnyNewerVersion
|
||||||
|
+)
|
||||||
|
+install(FILES "${PROJECT_BINARY_DIR}/rxcppConfigVersion.cmake" DESTINATION share/rxcpp/cmake)
|
Loading…
x
Reference in New Issue
Block a user