early-access version 2853
This commit is contained in:
20
externals/vcpkg/ports/boost-json/0001-json-array-erase-relocate.patch
vendored
Executable file
20
externals/vcpkg/ports/boost-json/0001-json-array-erase-relocate.patch
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
include/boost/json/impl/array.ipp | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/boost/json/impl/array.ipp b/include/boost/json/impl/array.ipp
|
||||
index 4d067fb..a2c7fd6 100644
|
||||
--- a/include/boost/json/impl/array.ipp
|
||||
+++ b/include/boost/json/impl/array.ipp
|
||||
@@ -491,8 +491,11 @@ erase(
|
||||
auto const p = &(*t_)[0] +
|
||||
(pos - &(*t_)[0]);
|
||||
destroy(p, p + 1);
|
||||
- relocate(p, p + 1, 1);
|
||||
--t_->size;
|
||||
+ if(t_->size > 0)
|
||||
+ relocate(p, p + 1,
|
||||
+ t_->size - (p -
|
||||
+ &(*t_)[0]));
|
||||
return p;
|
||||
}
|
||||
|
||||
3
externals/vcpkg/ports/boost-json/b2-options.cmake
vendored
Executable file
3
externals/vcpkg/ports/boost-json/b2-options.cmake
vendored
Executable file
@@ -0,0 +1,3 @@
|
||||
if(APPLE)
|
||||
list(APPEND B2_OPTIONS cxxstd=11)
|
||||
endif()
|
||||
23
externals/vcpkg/ports/boost-json/portfile.cmake
vendored
Executable file
23
externals/vcpkg/ports/boost-json/portfile.cmake
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
# Automatically generated by scripts/boost/generate-ports.ps1
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO boostorg/json
|
||||
REF boost-1.79.0
|
||||
SHA512 1243e4bdf5f2570c1f92e12dbe9cdef55d72d73d0e6abc6253eae928280ba913bfbc3a4d92d09a9c9b98e06ef95345c2c99dd0983d8dd2a7f1d8f0826530e1dd
|
||||
HEAD_REF master
|
||||
PATCHES 0001-json-array-erase-relocate.patch
|
||||
)
|
||||
|
||||
vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile"
|
||||
"import ../../config/checks/config"
|
||||
"import ../config/checks/config"
|
||||
)
|
||||
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
|
||||
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
||||
boost_modular_build(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
||||
)
|
||||
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
||||
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
||||
31
externals/vcpkg/ports/boost-json/vcpkg.json
vendored
Executable file
31
externals/vcpkg/ports/boost-json/vcpkg.json
vendored
Executable file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "boost-json",
|
||||
"version": "1.79.0",
|
||||
"description": "Boost json module",
|
||||
"homepage": "https://github.com/boostorg/json",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
"boost-align",
|
||||
"boost-assert",
|
||||
{
|
||||
"name": "boost-build",
|
||||
"host": true
|
||||
},
|
||||
"boost-config",
|
||||
"boost-container",
|
||||
"boost-core",
|
||||
"boost-exception",
|
||||
{
|
||||
"name": "boost-modular-build-helper",
|
||||
"host": true
|
||||
},
|
||||
"boost-mp11",
|
||||
"boost-system",
|
||||
"boost-throw-exception",
|
||||
"boost-vcpkg-helpers",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user