mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
[jwt-cpp] Update to v0.4.0 (#11625)
This commit is contained in:
parent
891426b94c
commit
1f07d885f1
@ -1,3 +1,5 @@
|
|||||||
Source: jwt-cpp
|
Source: jwt-cpp
|
||||||
Version: 2019-05-07-1
|
Version: 0.4.0
|
||||||
|
Homepage: https://github.com/Thalhammer/jwt-cpp
|
||||||
Description: A header only library for creating and validating json web tokens in c++
|
Description: A header only library for creating and validating json web tokens in c++
|
||||||
|
Build-Depends: picojson
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
|
|
||||||
index ec56810..a26fd97 100644
|
|
||||||
--- a/include/jwt-cpp/jwt.h
|
|
||||||
+++ b/include/jwt-cpp/jwt.h
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
#pragma once
|
|
||||||
#define PICOJSON_USE_INT64
|
|
||||||
-#include "picojson.h"
|
|
||||||
+#include "picojson/picojson.h"
|
|
||||||
#include "base.h"
|
|
||||||
#include <set>
|
|
||||||
#include <chrono>
|
|
@ -1,5 +1,5 @@
|
|||||||
diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h
|
diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h
|
||||||
index dfca7fc..4d05c0b 100644
|
index 375e0eb..4023709 100644
|
||||||
--- a/include/jwt-cpp/base.h
|
--- a/include/jwt-cpp/base.h
|
||||||
+++ b/include/jwt-cpp/base.h
|
+++ b/include/jwt-cpp/base.h
|
||||||
@@ -2,6 +2,10 @@
|
@@ -2,6 +2,10 @@
|
||||||
@ -10,11 +10,11 @@ index dfca7fc..4d05c0b 100644
|
|||||||
+#pragma warning(disable : 4267)
|
+#pragma warning(disable : 4267)
|
||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
namespace jwt {
|
#ifdef __has_cpp_attribute
|
||||||
namespace alphabet {
|
#if __has_cpp_attribute(fallthrough)
|
||||||
struct base64 {
|
#define JWT_FALLTHROUGH [[fallthrough]]
|
||||||
diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
|
diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
|
||||||
index ec56810..313cef2 100644
|
index 6e55729..4579310 100644
|
||||||
--- a/include/jwt-cpp/jwt.h
|
--- a/include/jwt-cpp/jwt.h
|
||||||
+++ b/include/jwt-cpp/jwt.h
|
+++ b/include/jwt-cpp/jwt.h
|
||||||
@@ -12,6 +12,11 @@
|
@@ -12,6 +12,11 @@
|
||||||
@ -27,5 +27,5 @@ index ec56810..313cef2 100644
|
|||||||
+#endif
|
+#endif
|
||||||
+
|
+
|
||||||
//If openssl version less than 1.1
|
//If openssl version less than 1.1
|
||||||
#if OPENSSL_VERSION_NUMBER < 269484032
|
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||||
#define OPENSSL10
|
#define OPENSSL10
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
#header-only library
|
vcpkg_from_github(
|
||||||
include(vcpkg_common_functions)
|
OUT_SOURCE_PATH SOURCE_PATH
|
||||||
|
|
||||||
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
|
||||||
REPO Thalhammer/jwt-cpp
|
REPO Thalhammer/jwt-cpp
|
||||||
REF 1d2b1bac13e54f99df4f890cd674ec149c135762
|
REF 34bb0644ea613cfcbc09c148db9de8aa6c5612b5 # v0.4.0
|
||||||
SHA512 a45f12104e38a8b05a0ea5b5f91034b65d85dd048664bbda4f2909df32688726d599161e3d6541fd6f36c784d21c24a4d2666f670c3281b9e9130bc8a96fce39
|
SHA512 773007fc7a73a831e292451d7a38feb9434f7c11c653d43b9f3679c564f64805a1cbd1baab6b13107c42cc06549ad7cd08aebd6658d8ee0022f5b8d601fa94cc
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
PATCHES fix-picojson.patch
|
PATCHES
|
||||||
fix-warning.patch)
|
fix-warning.patch
|
||||||
|
)
|
||||||
|
|
||||||
# Copy the header files
|
# Copy the header files
|
||||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/include/jwt-cpp/*)
|
file(GLOB HEADER_FILES ${SOURCE_PATH}/include/jwt-cpp/*)
|
||||||
@ -15,7 +14,4 @@ file(COPY ${HEADER_FILES}
|
|||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp
|
||||||
REGEX "\.(gitattributes|gitignore|picojson.h)$" EXCLUDE)
|
REGEX "\.(gitattributes|gitignore|picojson.h)$" EXCLUDE)
|
||||||
|
|
||||||
# Put the licence file where vcpkg expects it
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||||
file(COPY ${SOURCE_PATH}/LICENSE
|
|
||||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/jwt-cpp)
|
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/jwt-cpp/LICENSE ${CURRENT_PACKAGES_DIR}/share/jwt-cpp/copyright)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user