diff options
Diffstat (limited to 'vcpkg/ports/boost-iostreams')
| -rw-r--r-- | vcpkg/ports/boost-iostreams/features.cmake | 9 | ||||
| -rw-r--r-- | vcpkg/ports/boost-iostreams/portfile.cmake | 19 | ||||
| -rw-r--r-- | vcpkg/ports/boost-iostreams/vcpkg.json | 124 |
3 files changed, 152 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-iostreams/features.cmake b/vcpkg/ports/boost-iostreams/features.cmake new file mode 100644 index 0000000..d0e5cc1 --- /dev/null +++ b/vcpkg/ports/boost-iostreams/features.cmake @@ -0,0 +1,9 @@ +vcpkg_check_features(
+ OUT_FEATURE_OPTIONS
+ FEATURE_OPTIONS
+ FEATURES
+ "bzip2" BOOST_IOSTREAMS_ENABLE_BZIP2
+ "lzma" BOOST_IOSTREAMS_ENABLE_LZMA
+ "zlib" BOOST_IOSTREAMS_ENABLE_ZLIB
+ "zstd" BOOST_IOSTREAMS_ENABLE_ZSTD
+)
\ No newline at end of file diff --git a/vcpkg/ports/boost-iostreams/portfile.cmake b/vcpkg/ports/boost-iostreams/portfile.cmake new file mode 100644 index 0000000..ef2a269 --- /dev/null +++ b/vcpkg/ports/boost-iostreams/portfile.cmake @@ -0,0 +1,19 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/iostreams + REF boost-${VERSION} + SHA512 8c5c7485090a0e2ae6a6ef296107cf3212aa89bd238c1424d0b013f737bf9398fe6df6c2712dec7e33ddec12180a702cf6061bc93b3271da6c5b04a97530832f + HEAD_REF master +) + +set(FEATURE_OPTIONS "") +include("${CMAKE_CURRENT_LIST_DIR}/features.cmake") +if (BOOST_IOSTREAMS_ENABLE_ZSTD AND VCPKG_LIBRARY_LINKAGE STREQUAL "static") + list(APPEND FEATURE_OPTIONS "-DBOOST_IOSTREAMS_ZSTD_TARGET=zstd::libzstd_static") +endif() +boost_configure_and_install( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} +) diff --git a/vcpkg/ports/boost-iostreams/vcpkg.json b/vcpkg/ports/boost-iostreams/vcpkg.json new file mode 100644 index 0000000..c2f30e0 --- /dev/null +++ b/vcpkg/ports/boost-iostreams/vcpkg.json @@ -0,0 +1,124 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-iostreams", + "version": "1.89.0", + "description": "Boost iostreams module", + "homepage": "https://www.boost.org/libs/iostreams", + "license": "BSL-1.0", + "supports": "!uwp", + "dependencies": [ + { + "name": "boost-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-cmake", + "version>=": "1.89.0" + }, + { + "name": "boost-config", + "version>=": "1.89.0" + }, + { + "name": "boost-core", + "version>=": "1.89.0" + }, + { + "name": "boost-detail", + "version>=": "1.89.0" + }, + { + "name": "boost-function", + "version>=": "1.89.0" + }, + { + "name": "boost-headers", + "version>=": "1.89.0" + }, + { + "name": "boost-integer", + "version>=": "1.89.0" + }, + { + "name": "boost-iterator", + "version>=": "1.89.0" + }, + { + "name": "boost-mpl", + "version>=": "1.89.0" + }, + { + "name": "boost-numeric-conversion", + "version>=": "1.89.0" + }, + { + "name": "boost-preprocessor", + "version>=": "1.89.0" + }, + { + "name": "boost-random", + "platform": "!uwp", + "version>=": "1.89.0" + }, + { + "name": "boost-range", + "version>=": "1.89.0" + }, + { + "name": "boost-regex", + "version>=": "1.89.0" + }, + { + "name": "boost-smart-ptr", + "version>=": "1.89.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.89.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.89.0" + }, + { + "name": "boost-utility", + "version>=": "1.89.0" + } + ], + "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" + ] + } + } +} |