aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/glaze
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/glaze
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/glaze')
-rw-r--r--vcpkg/ports/glaze/portfile.cmake31
-rw-r--r--vcpkg/ports/glaze/vcpkg.json26
2 files changed, 57 insertions, 0 deletions
diff --git a/vcpkg/ports/glaze/portfile.cmake b/vcpkg/ports/glaze/portfile.cmake
new file mode 100644
index 0000000..3647684
--- /dev/null
+++ b/vcpkg/ports/glaze/portfile.cmake
@@ -0,0 +1,31 @@
+if(VCPKG_TARGET_IS_LINUX)
+ message("Warning: `glaze` requires Clang15+ or GCC 12+ on Linux")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO stephenberry/glaze
+ REF "v${VERSION}"
+ SHA512 690f8de849c5133b4558dbd7186b758b04b4f312d0d938f9e704c893a891d6bbb9c24176944bbb9f27658abae8824cd02f7fcf9cbb7f5263a2b60d59b4e94749
+ HEAD_REF main
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ ssl glaze_ENABLE_SSL
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -Dglaze_DEVELOPER_MODE=OFF
+ -Dglaze_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/glaze/vcpkg.json b/vcpkg/ports/glaze/vcpkg.json
new file mode 100644
index 0000000..6a91348
--- /dev/null
+++ b/vcpkg/ports/glaze/vcpkg.json
@@ -0,0 +1,26 @@
+{
+ "name": "glaze",
+ "version": "6.0.3",
+ "description": "One of the fastest JSON libraries in the world. Glaze reads and writes from C++ memory, simplifying interfaces and offering incredible performance.",
+ "homepage": "https://github.com/stephenberry/glaze",
+ "license": "MIT",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "features": {
+ "ssl": {
+ "description": "Enable SSL/TLS support for HTTPS servers",
+ "dependencies": [
+ "openssl"
+ ]
+ }
+ }
+}