-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
319 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# | ||
# Tencent is pleased to support the open source community by making tRPC available. | ||
# | ||
# Copyright (C) 2023 THL A29 Limited, a Tencent company. | ||
# All rights reserved. | ||
# | ||
# If you have downloaded a copy of the tRPC source code from Tencent, | ||
# please note that tRPC source code is licensed under the Apache 2.0 License, | ||
# A copy of the Apache 2.0 License is included in this file. | ||
# | ||
# | ||
|
||
include(FetchContent) | ||
|
||
if(NOT DEFINED JWT_VET) | ||
set(JWT_VET 0.7.0) | ||
endif() | ||
|
||
set(JWT_URL https://github.com/Thalhammer/jwt-cpp/archive/refs/tags/v${JWT_VET}.tar.gz) | ||
|
||
FetchContent_Declare( | ||
jwt-cpp | ||
URL ${JWT_URL} | ||
SOURCE_DIR ${TRPC_ROOT_PATH}/cmake_third_party/jwt_cpp | ||
) | ||
|
||
FetchContent_GetProperties(jwt-cpp) | ||
|
||
if(NOT jwt_cpp_POPULATED) | ||
FetchContent_Populate(jwt-cpp) | ||
add_subdirectory(${TRPC_ROOT_PATH}/cmake_third_party/jwt_cpp) | ||
add_library(trpc_jwt_cpp ALIAS jwt-cpp) | ||
set(TARGET_INCLUDE_PATHS ${TARGET_INCLUDE_PATHS} | ||
${TRPC_ROOT_PATH}/cmake_third_party/jwt_cpp) | ||
set(TARGET_LINK_LIBS ${TARGET_LINK_LIBS} jwt_cpp) | ||
endif() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
cc_library( | ||
name = "jwt-cpp", | ||
hdrs = glob(["**/*.h"]), | ||
deps = [ | ||
"@com_github_openssl_openssl//:libcrypto", | ||
"@com_github_openssl_openssl//:libssl", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.