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

30
externals/vcpkg/ports/mp-units/cmake.patch vendored Executable file
View File

@@ -0,0 +1,30 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b18a30a96..d89248aa1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,11 +66,21 @@ conan_init(cmake)
add_subdirectory(src)
# add usage example
-add_subdirectory(example)
+option(BUILD_EXAMPLES "Build usage examples" OFF)
+if(BUILD_EXAMPLES)
+ add_subdirectory(example)
+endif()
# generate project documentation
-add_subdirectory(docs)
+option(BUILD_DOCS "Generate docs" OFF)
+if(BUILD_DOCS)
+ add_subdirectory(docs)
+endif()
# add unit tests
-enable_testing()
-add_subdirectory(test)
+option(BUILD_TESTING "Build tests" OFF)
+if(BUILD_TESTING)
+ set_warnings(mp-units)
+ enable_testing()
+ add_subdirectory(test)
+endif()

14
externals/vcpkg/ports/mp-units/config.patch vendored Executable file
View File

@@ -0,0 +1,14 @@
diff --git a/src/mp-unitsConfig.cmake b/src/mp-unitsConfig.cmake
--- a/src/mp-unitsConfig.cmake
+++ b/src/mp-unitsConfig.cmake
@@ -39,8 +39,8 @@ function(__check_libcxx_in_use variable)
endfunction()
include(CMakeFindDependencyMacro)
-find_dependency(fmt)
-find_dependency(gsl-lite)
+find_dependency(fmt CONFIG)
+find_dependency(gsl-lite CONFIG)
# add range-v3 dependency only for clang + libc++
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")

24
externals/vcpkg/ports/mp-units/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mpusz/units
REF v0.7.0
SHA512 72175f34f358d0741650ce9c8a7b28fced90cc45ddd3f1662ae1cb9ff7d31403ff742ee07ab4c96bd2d95af714d9111a888cf6acccb91e568e12d1ef663b2f64
PATCHES
cmake.patch
config.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
# Handle copyright/readme/package files
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib") # Header only

18
externals/vcpkg/ports/mp-units/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,18 @@
{
"name": "mp-units",
"version-semver": "0.7.0",
"description": "mp-units - A Units Library for C++",
"homepage": "https://github.com/mpusz/units",
"dependencies": [
"fmt",
"gsl-lite",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}