early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,89 @@
# QuickCppLib is composed of other third party libraries:
# <= quickcpplib
# <= byte-lite
# <= gsl-lite
# <= Optional
#
# byte-lite and gsl-lite are in vcpkg, but may not be versions
# known to be compatible with QuickCppLib. It has occurred in the
# past that newer versions were severely broken with QuickCppLib.
include("${CURRENT_PORT_DIR}/sha_manifest.cmake")
if (NOT "cxx20" IN_LIST FEATURES)
message(WARNING [=[
QuickCppLib and its downstream dependencies Outcome and LLFIO were tested against gsl-lite version 0.38.1 and byte-lite version 0.3.0. They are not guaranteed to work with newer versions, with failures experienced in the past up-to-and-including runtime crashes. You can pin the versions as verified to work in QuickCppLib's CI in your manifest file by adding:
"overrides": [
{ "name": "gsl-lite", "version": "0.38.1" },
{ "name": "byte-lite", "version": "0.3.0" }
]
Do not report issues to upstream without first pinning these previous versions.
]=])
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ned14/quickcpplib
REF ${QUICKCPPLIB_REF}
SHA512 ${QUICKCPPLIB_SHA512}
HEAD_REF master
PATCHES
quicklib-depheaders.patch
)
# Quickcpplib deploys subsets of the dependency headers into a private subdirectory
if (NOT "cxx17" IN_LIST FEATURES)
file(COPY "${CURRENT_INSTALLED_DIR}/include/nonstd/byte.hpp"
DESTINATION "${SOURCE_PATH}/include/quickcpplib/byte/include/nonstd")
endif()
if (NOT "cxx20" IN_LIST FEATURES)
file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl/gsl-lite.hpp"
DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl")
file(COPY "${CURRENT_INSTALLED_DIR}/include/gsl-lite/gsl-lite.hpp"
DESTINATION "${SOURCE_PATH}/include/quickcpplib/gsl-lite/include/gsl-lite")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH OPT_SOURCE_PATH
REPO akrzemi1/Optional
REF ${OPTIONAL_REF}
SHA512 ${OPTIONAL_SHA512}
HEAD_REF master
)
file(COPY "${OPT_SOURCE_PATH}/." DESTINATION "${SOURCE_PATH}/include/quickcpplib/optional")
# Because quickcpplib's deployed files are header-only, the debug build it not necessary
set(VCPKG_BUILD_TYPE release)
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
cxx17 QUICKCPPLIB_REQUIRE_CXX17
cxx20 QUICKCPPLIB_REQUIRE_CXX20
)
# Use QuickCppLib's own build process, skipping examples and tests.
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPROJECT_IS_DEPENDENCY=On
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
-DCMAKE_INSTALL_DATADIR=${CURRENT_PACKAGES_DIR}/share/ned14-internal-quickcpplib
${FEATURE_OPTIONS}
MAYBE_UNUSED_VARIABLES
CMAKE_DISABLE_FIND_PACKAGE_Doxygen
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(
PACKAGE_NAME quickcpplib
CONFIG_PATH lib/cmake/quickcpplib
)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/Licence.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@@ -0,0 +1,29 @@
diff --git a/cmake/headers.cmake b/cmake/headers.cmake
index 1aad359..e5053ed 100644
--- a/cmake/headers.cmake
+++ b/cmake/headers.cmake
@@ -15,8 +15,6 @@ set(quickcpplib_HEADERS
"include/quickcpplib/boost/test/unit_test.hpp"
"include/quickcpplib/byte.hpp"
"include/quickcpplib/byte/include/nonstd/byte.hpp"
- "include/quickcpplib/byte/test/byte-main.t.hpp"
- "include/quickcpplib/byte/test/lest/lest_cpp03.hpp"
"include/quickcpplib/config.hpp"
"include/quickcpplib/console_colours.hpp"
"include/quickcpplib/cpp_feature.h"
@@ -27,15 +25,8 @@ set(quickcpplib_HEADERS
"include/quickcpplib/erasure_cast.hpp"
"include/quickcpplib/execinfo_win64.h"
"include/quickcpplib/function_ptr.hpp"
- "include/quickcpplib/gsl-lite/gsl-lite.natvis"
"include/quickcpplib/gsl-lite/include/gsl-lite/gsl-lite.hpp"
- "include/quickcpplib/gsl-lite/include/gsl.h"
- "include/quickcpplib/gsl-lite/include/gsl.hpp"
- "include/quickcpplib/gsl-lite/include/gsl/gsl-lite-vc6.hpp"
- "include/quickcpplib/gsl-lite/include/gsl/gsl-lite.h"
"include/quickcpplib/gsl-lite/include/gsl/gsl-lite.hpp"
- "include/quickcpplib/gsl-lite/test/gsl-lite.t.hpp"
- "include/quickcpplib/gsl-lite/test/lest_cpp03.hpp"
"include/quickcpplib/import.h"
"include/quickcpplib/in_place_detach_attach.hpp"
"include/quickcpplib/mem_flush_loads_stores.hpp"

View File

@@ -0,0 +1,5 @@
set(QUICKCPPLIB_REF cad832c8083c8eb984c26ee995609817f27f9847)
set(QUICKCPPLIB_SHA512 4a2cd3d3e90317a201088291781d13bbc66f4beadfead61ed894f6f5fa38001fb94b68f0965ae77efd9e43c274583e74c00a0781018cd1714ec99e00c9b17824)
set(OPTIONAL_REF 2b43315458a99fc5de1da6e7bc0ddd364b26d643)
set(OPTIONAL_SHA512 1952386cd3c7b963861f9634055e1baa4181d398d6f1b068a8a3f411368432bdcd42e47aadfa856584ed9a7c724a1c83369243ccb653e650af5c9155b42a84f4)

View File

@@ -0,0 +1,2 @@
You should NOT DIRECTLY USE quickcpplib in your own libraries!
It is intended for internal use by ned14's vcpkg libraries only.

View File

@@ -0,0 +1,37 @@
{
"name": "ned14-internal-quickcpplib",
"version": "0.0.0-cad832c8",
"port-version": 1,
"description": "NOT FOR EXTERNAL CONSUMPTION, a set of internal scripts used by ned14's libraries.",
"homepage": "https://github.com/ned14/quickcpplib",
"license": "Apache-2.0",
"dependencies": [
"byte-lite",
"gsl-lite",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"cxx17": {
"description": "Do not polyfill C++17 entities"
},
"cxx20": {
"description": "Do not polyfill C++20 entities",
"dependencies": [
{
"name": "ned14-internal-quickcpplib",
"default-features": false,
"features": [
"cxx17"
]
}
]
}
}
}