early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/boost-iostreams/Removeseekpos.patch
vendored
Executable file
13
externals/vcpkg/ports/boost-iostreams/Removeseekpos.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/include/boost/iostreams/positioning.hpp b/include/boost/iostreams/positioning.hpp
|
||||
index 12f2afc..709da7d 100644
|
||||
--- a/include/boost/iostreams/positioning.hpp
|
||||
+++ b/include/boost/iostreams/positioning.hpp
|
||||
@@ -93,7 +93,7 @@ inline stream_offset fpos_t_to_offset(std::fpos_t pos)
|
||||
inline std::fpos_t streampos_to_fpos_t(std::streampos pos)
|
||||
{
|
||||
# if defined (_CPPLIB_VER) || defined(__IBMCPP__)
|
||||
- return pos.seekpos();
|
||||
+ return pos;
|
||||
# else
|
||||
return pos.get_fpos_t();
|
||||
# endif
|
||||
74
externals/vcpkg/ports/boost-iostreams/b2-options.cmake
vendored
Executable file
74
externals/vcpkg/ports/boost-iostreams/b2-options.cmake
vendored
Executable file
@@ -0,0 +1,74 @@
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
set(lib_path_suffix lib)
|
||||
else()
|
||||
set(lib_path_suffix debug/lib)
|
||||
endif()
|
||||
|
||||
if("bzip2" IN_LIST FEATURES)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sBZIP2_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
||||
)
|
||||
# Overwride debug library name
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
list(APPEND B2_OPTIONS
|
||||
-sBZIP2_NAME=bz2d
|
||||
)
|
||||
endif()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sBZIP2_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
||||
)
|
||||
else()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sNO_BZIP2=1
|
||||
)
|
||||
endif()
|
||||
|
||||
if("lzma" IN_LIST FEATURES)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sLZMA_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
||||
)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sLZMA_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
||||
)
|
||||
else()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sNO_LZMA=1
|
||||
)
|
||||
endif()
|
||||
|
||||
if("zlib" IN_LIST FEATURES)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sZLIB_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
||||
)
|
||||
# Overwride debug library name
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
if(WIN32)
|
||||
set(ZLIB_NAME zlibd)
|
||||
else()
|
||||
set(ZLIB_NAME z)
|
||||
endif()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sZLIB_NAME=${ZLIB_NAME}
|
||||
)
|
||||
endif()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sZLIB_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
||||
)
|
||||
else()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sNO_ZLIB=1
|
||||
)
|
||||
endif()
|
||||
|
||||
if("zstd" IN_LIST FEATURES)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sZSTD_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
||||
)
|
||||
list(APPEND B2_OPTIONS
|
||||
-sZSTD_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
||||
)
|
||||
else()
|
||||
list(APPEND B2_OPTIONS
|
||||
-sNO_ZSTD=1
|
||||
)
|
||||
endif()
|
||||
18
externals/vcpkg/ports/boost-iostreams/portfile.cmake
vendored
Executable file
18
externals/vcpkg/ports/boost-iostreams/portfile.cmake
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
# Automatically generated by scripts/boost/generate-ports.ps1
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO boostorg/iostreams
|
||||
REF boost-1.79.0
|
||||
SHA512 f733c586df4f267dba7b7181caa2e7ca1418d2cd843cf032121c06ffcda936c194fd7a78ebe292133217a8aae4bb83fd2c2890b52739da74c4833ecd950d0555
|
||||
HEAD_REF master
|
||||
PATCHES Removeseekpos.patch
|
||||
)
|
||||
|
||||
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})
|
||||
73
externals/vcpkg/ports/boost-iostreams/vcpkg.json
vendored
Executable file
73
externals/vcpkg/ports/boost-iostreams/vcpkg.json
vendored
Executable file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"name": "boost-iostreams",
|
||||
"version": "1.79.0",
|
||||
"description": "Boost iostreams module",
|
||||
"homepage": "https://github.com/boostorg/iostreams",
|
||||
"license": "BSL-1.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"boost-assert",
|
||||
{
|
||||
"name": "boost-build",
|
||||
"host": true
|
||||
},
|
||||
"boost-config",
|
||||
"boost-core",
|
||||
"boost-detail",
|
||||
"boost-function",
|
||||
"boost-integer",
|
||||
"boost-iterator",
|
||||
{
|
||||
"name": "boost-modular-build-helper",
|
||||
"host": true
|
||||
},
|
||||
"boost-mpl",
|
||||
"boost-numeric-conversion",
|
||||
"boost-preprocessor",
|
||||
"boost-random",
|
||||
"boost-range",
|
||||
"boost-regex",
|
||||
"boost-smart-ptr",
|
||||
"boost-static-assert",
|
||||
"boost-throw-exception",
|
||||
"boost-type-traits",
|
||||
"boost-utility",
|
||||
"boost-vcpkg-helpers",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"bzip2",
|
||||
"lzma",
|
||||
"zlib",
|
||||
"zstd"
|
||||
],
|
||||
"features": {
|
||||
"bzip2": {
|
||||
"description": "Support bzip2 filters",
|
||||
"dependencies": [
|
||||
"bzip2"
|
||||
]
|
||||
},
|
||||
"lzma": {
|
||||
"description": "Support LZMA/xz filters",
|
||||
"dependencies": [
|
||||
"liblzma"
|
||||
]
|
||||
},
|
||||
"zlib": {
|
||||
"description": "Support zlib filters",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
},
|
||||
"zstd": {
|
||||
"description": "Support zstd filters",
|
||||
"dependencies": [
|
||||
"zstd"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user