aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/crossguid
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/crossguid
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/crossguid')
-rw-r--r--vcpkg/ports/crossguid/missing-include-cstdint.patch12
-rw-r--r--vcpkg/ports/crossguid/portfile.cmake29
-rw-r--r--vcpkg/ports/crossguid/vcpkg.json20
-rw-r--r--vcpkg/ports/crossguid/warnings.patch20
4 files changed, 81 insertions, 0 deletions
diff --git a/vcpkg/ports/crossguid/missing-include-cstdint.patch b/vcpkg/ports/crossguid/missing-include-cstdint.patch
new file mode 100644
index 0000000..a930115
--- /dev/null
+++ b/vcpkg/ports/crossguid/missing-include-cstdint.patch
@@ -0,0 +1,12 @@
+diff --git a/include/crossguid/guid.hpp b/include/crossguid/guid.hpp
+index 61e0f17..70966f2 100644
+--- a/include/crossguid/guid.hpp
++++ b/include/crossguid/guid.hpp
+@@ -29,6 +29,7 @@ THE SOFTWARE.
+ #include <jni.h>
+ #endif
+
++#include <cstdint>
+ #include <functional>
+ #include <iostream>
+ #include <array>
diff --git a/vcpkg/ports/crossguid/portfile.cmake b/vcpkg/ports/crossguid/portfile.cmake
new file mode 100644
index 0000000..00b670e
--- /dev/null
+++ b/vcpkg/ports/crossguid/portfile.cmake
@@ -0,0 +1,29 @@
+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
+ missing-include-cstdint.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")
diff --git a/vcpkg/ports/crossguid/vcpkg.json b/vcpkg/ports/crossguid/vcpkg.json
new file mode 100644
index 0000000..ebdac53
--- /dev/null
+++ b/vcpkg/ports/crossguid/vcpkg.json
@@ -0,0 +1,20 @@
+{
+ "name": "crossguid",
+ "version-date": "2021-10-22",
+ "port-version": 3,
+ "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
+ }
+ ]
+}
diff --git a/vcpkg/ports/crossguid/warnings.patch b/vcpkg/ports/crossguid/warnings.patch
new file mode 100644
index 0000000..d0ffc79
--- /dev/null
+++ b/vcpkg/ports/crossguid/warnings.patch
@@ -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}