mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 05:53:03 +08:00
[realm-core] new port (#38335)
- [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines. - [x] Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all `find_package` calls are REQUIRED, are satisfied by `vcpkg.json`'s declared dependencies, or disabled with [CMAKE_DISABLE_FIND_PACKAGE_Xxx](https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html). - [x] The versioning scheme in `vcpkg.json` matches what upstream says. - [x] The license declaration in `vcpkg.json` matches what upstream says. - [x] The installed as the "copyright" file matches what upstream says. - [x] The source code of the component installed comes from an authoritative source. - [x] The generated "usage text" is accurate. See [adding-usage](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/examples/adding-usage.md) for context. - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is in the new port's versions file. - [x] Only one version is added to each modified port's versions file.
This commit is contained in:
parent
66a252f70e
commit
937d335a0e
13
ports/realm-core/UWP_index_set.patch
Normal file
13
ports/realm-core/UWP_index_set.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/realm/object-store/index_set.hpp b/src/realm/object-store/index_set.hpp
|
||||
index d61e78221..a95338967 100644
|
||||
--- a/src/realm/object-store/index_set.hpp
|
||||
+++ b/src/realm/object-store/index_set.hpp
|
||||
@@ -387,7 +387,7 @@ inline ChunkedRangeVectorIterator<T> ChunkedRangeVectorIterator<T>::operator--(i
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
-#if REALM_WINDOWS && REALM_ARCHITECTURE_ARM64
|
||||
+#if (REALM_WINDOWS || REALM_UWP) && REALM_ARCHITECTURE_ARM64
|
||||
// Inlining this function crashes msvc when targeting arm64 in as of 19.39.33523
|
||||
__declspec(noinline)
|
||||
#endif
|
37
ports/realm-core/portfile.cmake
Normal file
37
ports/realm-core/portfile.cmake
Normal file
@ -0,0 +1,37 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO realm/realm-core
|
||||
REF "9cf7ef4ad8e2f4c7a519c9a395ca3d253bb87aa8"
|
||||
SHA512 "1bd11bfe70204213469687d1e224fabb2ff2798aa25f6d791b3d455acdcacf686248e7a692f23ed67148ef99faf1a7c1f823182f33a45340310477bc51b32bb7"
|
||||
HEAD_REF "master"
|
||||
PATCHES
|
||||
"UWP_index_set.patch")
|
||||
|
||||
set(REALMCORE_CMAKE_OPTIONS -DREALM_CORE_SUBMODULE_BUILD=OFF)
|
||||
list(APPEND REALMCORE_CMAKE_OPTIONS -DREALM_BUILD_LIB_ONLY=ON)
|
||||
list(APPEND REALMCORE_CMAKE_OPTIONS -DREALM_NO_TESTS=ON)
|
||||
list(APPEND REALMCORE_CMAKE_OPTIONS -DREALM_NEEDS_OPENSSL=ON)
|
||||
|
||||
if (ANDROID OR WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
list(APPEND REALMCORE_CMAKE_OPTIONS -DREALM_USE_SYSTEM_OPENSSL=ON)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
OPTIONS
|
||||
${REALMCORE_CMAKE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME "realm" CONFIG_PATH "share/cmake/Realm")
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/doc"
|
||||
"${CURRENT_PACKAGES_DIR}/doc"
|
||||
)
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
22
ports/realm-core/vcpkg.json
Normal file
22
ports/realm-core/vcpkg.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "realm-core",
|
||||
"version": "14.6.2",
|
||||
"description": "Realm is a mobile database that runs directly inside phones, tablets or wearables.",
|
||||
"homepage": "https://github.com/realm/realm-core",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "openssl",
|
||||
"platform": "!osx",
|
||||
"version>=": "3.2.0"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -7636,6 +7636,10 @@
|
||||
"baseline": "1.1.0a",
|
||||
"port-version": 4
|
||||
},
|
||||
"realm-core": {
|
||||
"baseline": "14.6.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"realsense2": {
|
||||
"baseline": "2.54.2",
|
||||
"port-version": 2
|
||||
|
9
versions/r-/realm-core.json
Normal file
9
versions/r-/realm-core.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6c9e380d9d5239dcd4652be4a9794aaff74bd6e6",
|
||||
"version": "14.6.2",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user