mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 14:42:48 +08:00
[jwt-cpp] update to v0.5.0 (#16799)
* [jwt-cpp] update to v0.5.0 * Update CONTROL * Update portfile.cmake * Delete fix-warning.patch * Update and rename CONTROL to vcpkg.json * Update vcpkg.json * Update jwt-cpp.json * Update baseline.json * Update versions/j-/jwt-cpp.json * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update versions/j-/jwt-cpp.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
parent
48b59daff4
commit
63cc543890
@ -1,5 +0,0 @@
|
||||
Source: jwt-cpp
|
||||
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++
|
||||
Build-Depends: picojson
|
@ -1,31 +0,0 @@
|
||||
diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h
|
||||
index 375e0eb..4023709 100644
|
||||
--- a/include/jwt-cpp/base.h
|
||||
+++ b/include/jwt-cpp/base.h
|
||||
@@ -2,6 +2,10 @@
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
+#ifdef _MSC_VER
|
||||
+#pragma warning(disable : 4267)
|
||||
+#endif
|
||||
+
|
||||
#ifdef __has_cpp_attribute
|
||||
#if __has_cpp_attribute(fallthrough)
|
||||
#define JWT_FALLTHROUGH [[fallthrough]]
|
||||
diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
|
||||
index 6e55729..4579310 100644
|
||||
--- a/include/jwt-cpp/jwt.h
|
||||
+++ b/include/jwt-cpp/jwt.h
|
||||
@@ -12,6 +12,11 @@
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/err.h>
|
||||
|
||||
+#ifdef _MSC_VER
|
||||
+#pragma warning(disable : 4267)
|
||||
+#pragma warning(disable : 4067)
|
||||
+#endif
|
||||
+
|
||||
//If openssl version less than 1.1
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#define OPENSSL10
|
@ -1,17 +1,12 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Thalhammer/jwt-cpp
|
||||
REF 34bb0644ea613cfcbc09c148db9de8aa6c5612b5 # v0.4.0
|
||||
SHA512 773007fc7a73a831e292451d7a38feb9434f7c11c653d43b9f3679c564f64805a1cbd1baab6b13107c42cc06549ad7cd08aebd6658d8ee0022f5b8d601fa94cc
|
||||
REF b45bc9994d8087c5ba7aa1f1588302f04ae84c83 # v0.5.0
|
||||
SHA512 d2c6e2174cd86c27b8866f6ea50a379a321788e91f97a0548e694d11469c05d93b0713e0c38b37a8f14a0aded4fc4635599dcfb50142e4496fb3c8b9f7e5f8cd
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-warning.patch
|
||||
)
|
||||
|
||||
# Copy the header files
|
||||
file(GLOB HEADER_FILES ${SOURCE_PATH}/include/jwt-cpp/*)
|
||||
file(COPY ${HEADER_FILES}
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp
|
||||
REGEX "\.(gitattributes|gitignore|picojson.h)$" EXCLUDE)
|
||||
|
||||
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
9
ports/jwt-cpp/vcpkg.json
Normal file
9
ports/jwt-cpp/vcpkg.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "jwt-cpp",
|
||||
"version-semver": "0.5.0",
|
||||
"description": "A header only library for creating and validating json web tokens in c++",
|
||||
"homepage": "https://github.com/Thalhammer/jwt-cpp",
|
||||
"dependencies": [
|
||||
"picojson"
|
||||
]
|
||||
}
|
@ -2709,7 +2709,7 @@
|
||||
"port-version": 2
|
||||
},
|
||||
"jwt-cpp": {
|
||||
"baseline": "0.4.0",
|
||||
"baseline": "0.5.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"jxrlib": {
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1205d0b1c1db271b04b84e075b21f7b6359effb5",
|
||||
"version-semver": "0.5.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "1e179b3f53863faa8b91a74f95cdc1c7526de2c7",
|
||||
"version-string": "0.4.0",
|
||||
|
Loading…
Reference in New Issue
Block a user