early-access version 2853
This commit is contained in:
28
externals/vcpkg/ports/crossguid/portfile.cmake
vendored
Executable file
28
externals/vcpkg/ports/crossguid/portfile.cmake
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO graeme-hill/crossguid
|
||||
REF ca1bf4b810e2d188d04cb6286f957008ee1b7681 #2021-10-22
|
||||
SHA512 f0a80d8e99b10473bcfdfde3d1c5fd7b766959819f0d1c0595ac84ce46db9007a5fbfde9a55aca60530c46cb7f8ef4c7e472c6191559ded92f868589c141ccaf
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
warnings.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCROSSGUID_TESTS:BOOL=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH share/crossguid/cmake)
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# Handle copyright
|
||||
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|
||||
20
externals/vcpkg/ports/crossguid/vcpkg.json
vendored
Executable file
20
externals/vcpkg/ports/crossguid/vcpkg.json
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "crossguid",
|
||||
"version-date": "2021-10-22",
|
||||
"port-version": 2,
|
||||
"description": "CrossGuid is a minimal, cross platform, C++ GUID library.",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libuuid",
|
||||
"platform": "!windows & !osx & !android"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
20
externals/vcpkg/ports/crossguid/warnings.patch
vendored
Executable file
20
externals/vcpkg/ports/crossguid/warnings.patch
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 76b5a62..174d981 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -40,15 +40,6 @@ else()
|
||||
target_compile_definitions(crossguid PRIVATE GUID_LIBUUID)
|
||||
endif()
|
||||
|
||||
-if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
- set(WARNINGS "-Werror" "-Wall")
|
||||
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
- set(WARNINGS "-Werror" "-Wall")
|
||||
-elseif(MSVC)
|
||||
- set(WARNINGS "/WX" "/W4")
|
||||
-endif()
|
||||
-target_compile_options(crossguid PRIVATE ${WARNINGS})
|
||||
-
|
||||
set_target_properties(crossguid
|
||||
PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
||||
Reference in New Issue
Block a user