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,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6136a8..9e260eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,7 +76,8 @@ set (pthreads_header pthread.h)
set (flint2_header flint/flint.h)
if(MSVC)
- set(DEPS ${DEPS} pthreads)
+ find_package(pthreads REQUIRED)
+ set(PTHREADS_LIBRARIES PThreads4W::PThreads4W)
else()
option(CMAKE_THREAD_PREFER_PTHREAD "Prefer pthreads" yes)
option(THREADS_PREFER_PTHREAD_FLAG "Prefer -pthread flag" yes)

25
externals/vcpkg/ports/arb/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fredrik-johansson/arb
REF e3a633dcc1adafeb7ca9648669f2b1fa2f433ee1 # 2.21.1
SHA512 af864ea4f849d12dbaadec8cda7e6b1a7d349b7aa776966ec7f61ad7a5186dc3f280512218bcff28901e2d55d6c976525746e6de13925a9942ed947ac2253af6
HEAD_REF master
PATCHES fix-build-error.patch
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" MSVC_USE_MT)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DMSVC_USE_MT=${MSVC_USE_MT}
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
# Remove duplicate headers
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

19
externals/vcpkg/ports/arb/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,19 @@
{
"name": "arb",
"version": "2.21.1",
"port-version": 1,
"description": "a C library for arbitrary-precision interval arithmetic",
"homepage": "https://github.com/fredrik-johansson/arb",
"license": "LGPL-2.1",
"dependencies": [
"flint",
{
"name": "pthreads",
"platform": "windows"
},
{
"name": "vcpkg-cmake",
"host": true
}
]
}