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

39
externals/vcpkg/ports/dimcli/fix-build.patch vendored Executable file
View File

@@ -0,0 +1,39 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 509e634..8b5a30b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -392,7 +392,7 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "\
/EHsc /GF /nologo /std:c++latest /utf-8 /W4 /WX \
/Zc:inline /Zc:rvalueCast /Zc:strictStrings \
- /Fa$(IntDir)")
+ /Fa${CMAKE_SOURCE_DIR}/libs/dimcli")
if(NOT MSVC_VERSION LESS 1910)
# /permissive- // reject non-conforming backward compatibility-isms
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-")
@@ -431,8 +431,8 @@ elseif(CMAKE_COMPILER_IS_GNUCXX)
if(BUILD_COVERAGE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
endif()
-elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
+elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "5")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
else()
@@ -533,7 +533,6 @@ endforeach()
# test targets
if(BUILD_TESTING)
enable_testing()
-endif()
file(GLOB allnames tests/*)
foreach(var ${allnames})
if(IS_DIRECTORY "${var}")
@@ -548,6 +547,7 @@ foreach(var ${allnames})
endif()
endif()
endforeach()
+endif()
# update deps file
update_deps_file(${deps})

31
externals/vcpkg/ports/dimcli/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO gknowles/dimcli
REF a4dbb4b1c8a3825fc304bbbad3438dbe1840feae # v5.0.2
SHA512 25cc9002fd46856854545934f385d8578f207b1ce01802a172e49e008cdf1db0db11db7cefeef18258b99c13570af9193e83f5826613d8b0a118d7bae3f0d03f
HEAD_REF master
PATCHES fix-build.patch
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" staticCrt)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
-DINSTALL_LIBS:BOOL=ON
-DBUILD_PROJECT_NAME=dimcli
-DBUILD_TESTING=OFF
-DINSTALL_TOOLS=OFF
-DINSTALL_TESTS=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/dimcli" RENAME copyright)

14
externals/vcpkg/ports/dimcli/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,14 @@
{
"name": "dimcli",
"version-semver": "5.0.2",
"port-version": 3,
"description": "C++ command line parser toolkit",
"homepage": "https://github.com/gknowles/dimcli",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}