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

42
externals/vcpkg/ports/bigint/CMakeLists.txt vendored Executable file
View File

@@ -0,0 +1,42 @@
cmake_minimum_required(VERSION 3.14.0)
project(bigint CXX)
if(MSVC)
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
endif()
set(BIGINT_SRCS
BigUnsigned.cc
BigInteger.cc
BigIntegerAlgorithms.cc
BigUnsignedInABase.cc
BigIntegerUtils.cc
)
set(BIGINT_HH
NumberlikeArray.hh
BigUnsigned.hh
BigInteger.hh
BigIntegerAlgorithms.hh
BigUnsignedInABase.hh
BigIntegerLibrary.hh
BigIntegerUtils.hh
)
add_library(bigint ${BIGINT_SRCS})
target_include_directories(bigint PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
install(
TARGETS bigint
EXPORT bigint-config
)
install(
EXPORT bigint-config
NAMESPACE bigint::
DESTINATION share/bigint
)
if(NOT DISABLE_INSTALL_HEADERS)
install(FILES ${BIGINT_HH} DESTINATION include/bigint)
endif()

View File

@@ -0,0 +1,39 @@
diff --git a/BigUnsigned.hh b/BigUnsigned.hh
index adf1c00..9228753 100644
--- a/BigUnsigned.hh
+++ b/BigUnsigned.hh
@@ -20,7 +20,7 @@ public:
typedef unsigned long Blk;
typedef NumberlikeArray<Blk>::Index Index;
- NumberlikeArray<Blk>::N;
+ using NumberlikeArray<Blk>::N;
protected:
// Creates a BigUnsigned with a capacity; for internal use.
@@ -84,8 +84,8 @@ public:
// BIT/BLOCK ACCESSORS
// Expose these from NumberlikeArray directly.
- NumberlikeArray<Blk>::getCapacity;
- NumberlikeArray<Blk>::getLength;
+ using NumberlikeArray<Blk>::getCapacity;
+ using NumberlikeArray<Blk>::getLength;
/* Returns the requested block, or 0 if it is beyond the length (as if
* the number had 0s infinitely to the left). */
diff --git a/BigUnsignedInABase.hh b/BigUnsignedInABase.hh
index 8f9bdce..0ea89c6 100644
--- a/BigUnsignedInABase.hh
+++ b/BigUnsignedInABase.hh
@@ -100,8 +100,8 @@ public:
Base getBase() const { return base; }
// Expose these from NumberlikeArray directly.
- NumberlikeArray<Digit>::getCapacity;
- NumberlikeArray<Digit>::getLength;
+ using NumberlikeArray<Digit>::getCapacity;
+ using NumberlikeArray<Digit>::getLength;
/* Returns the requested digit, or 0 if it is beyond the length (as if
* the number had 0s infinitely to the left). */

26
externals/vcpkg/ports/bigint/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,26 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_download_distfile(ARCHIVE
URLS "https://mattmccutchen.net/bigint/bigint-2010.04.30.tar.bz2"
FILENAME "bigint-2010.04.30.tar.bz2"
SHA512 bb64380e51991f97a2489c04801ab4372f795b5e23870ad12d71087f1a2afba9b32f74dcdbdcb5228ebf0dd74a37185285bac7653dd3c62d6118d63c298689af
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES fix-osx-usage.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets()
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

7
externals/vcpkg/ports/bigint/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,7 @@
{
"name": "bigint",
"version-string": "2010.04.30",
"port-version": 7,
"description": "C++ Big Integer Library",
"homepage": "https://mattmccutchen.net/bigint"
}