forked from GoogleCloudPlatform/appengine-sidecars-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiap_jwt_verify_nginx.bzl
67 lines (62 loc) · 2.34 KB
/
iap_jwt_verify_nginx.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
_JSONCPP_BUILD_FILE = """
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
#
# Used to build the JsonCpp library.
licenses(["notice"])
cc_library(
name = "lib_json",
srcs = glob(
["jsoncpp-1.8.0/src/lib_json/*.cpp"],
),
hdrs = glob([
"jsoncpp-1.8.0/include/json/*.h",
"jsoncpp-1.8.0/src/lib_json/*.h",
"jsoncpp-1.8.0/src/lib_json/*.inl",
]),
copts = [
"-Iexternal/jsoncpp/jsoncpp-1.8.0/include",
"-Iexternal/jsoncpp/jsoncpp-1.8.0/src/lib_json",
],
visibility = ["//visibility:public"],
)
"""
def iap_jwt_verify_nginx_repositories(have_nginx):
if (not have_nginx):
native.git_repository(
name = "nginx",
commit = "aae5c50a7669bfee3b904fe87a5ce0bc2f8fecb6", # nginx-1.13.3
remote = "https://nginx.googlesource.com/nginx",
)
native.new_http_archive(
name = "jsoncpp",
url = "https://github.com/open-source-parsers/jsoncpp/archive/1.8.0.zip",
sha256 = "4dd616d24ce537dfbc22b4dd81bf6ff8d80577a6bbb47cda9afb8445e4661f9b",
build_file_content = _JSONCPP_BUILD_FILE,
)