aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpp-jwt
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/cpp-jwt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpp-jwt')
-rw-r--r--vcpkg/ports/cpp-jwt/portfile.cmake23
-rw-r--r--vcpkg/ports/cpp-jwt/vcpkg.json19
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-jwt/portfile.cmake b/vcpkg/ports/cpp-jwt/portfile.cmake
new file mode 100644
index 0000000..b41726c
--- /dev/null
+++ b/vcpkg/ports/cpp-jwt/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO arun11299/cpp-jwt
+ REF v${VERSION}
+ SHA512 765579abef09774e396bdf539e1585d383aabe50b76c7d7643ede85187a665a3420db2ad90fee1ca2a9003965b777816b8594dc10b08772db58c8068cbe64a09
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCPP_JWT_BUILD_EXAMPLES=off
+ -DCPP_JWT_BUILD_TESTS=off
+ -DCPP_JWT_USE_VENDORED_NLOHMANN_JSON=off
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/cpp-jwt/vcpkg.json b/vcpkg/ports/cpp-jwt/vcpkg.json
new file mode 100644
index 0000000..1b81610
--- /dev/null
+++ b/vcpkg/ports/cpp-jwt/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "cpp-jwt",
+ "version": "1.5.1",
+ "description": "JSON Web Token library for C++",
+ "homepage": "https://github.com/arun11299/cpp-jwt",
+ "license": "MIT",
+ "dependencies": [
+ "nlohmann-json",
+ "openssl",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}