blob: f12395ef44fcfa8c2162276bf3518129b10eb609 [file] [log] [blame]
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -07001# Copyright 2017, Google Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met:
7#
8# * Redistributions of source code must retain the above copyright
9# notice, this list of conditions and the following disclaimer.
10# * Redistributions in binary form must reproduce the above
11# copyright notice, this list of conditions and the following disclaimer
12# in the documentation and/or other materials provided with the
13# distribution.
14# * Neither the name of Google Inc. nor the names of its
15# contributors may be used to endorse or promote products derived from
16# this software without specific prior written permission.
17#
18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30licenses(["notice"]) # 3-clause BSD
31
Nicolas "Pixel" Nobleaf6c83f2017-05-19 00:38:10 +020032package(
33 features = [
34 "-layering_check",
35 "-parse_headers",
36 ],
37)
38
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070039cc_library(
40 name = "server_helper_lib",
41 srcs = [
42 "server_helper.cc",
43 ],
44 hdrs = [
45 "server_helper.h",
46 ],
47 deps = [
48 "//test/cpp/util:test_util",
Makarand Dharmapurikarbdd48ff2017-04-20 11:10:46 -070049 "//external:gflags",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070050 ],
51)
52
53cc_binary(
54 name = "interop_server",
55 srcs = [
56 "interop_server.cc",
57 "interop_server_bootstrap.cc",
58 ],
59 deps = [
60 ":server_helper_lib",
61 "//:grpc++",
62 "//src/proto/grpc/testing:empty_proto",
63 "//src/proto/grpc/testing:messages_proto",
64 "//src/proto/grpc/testing:test_proto",
65 "//test/cpp/util:test_config",
66 ],
67)
68
69cc_library(
70 name = "client_helper_lib",
71 srcs = [
72 "client_helper.cc",
73 "interop_client.cc",
74 ],
75 hdrs = [
76 "client_helper.h",
77 "interop_client.h",
78 ],
79 deps = [
80 "//test/cpp/util:test_util",
81 "//src/proto/grpc/testing:empty_proto",
82 "//src/proto/grpc/testing:messages_proto",
83 "//src/proto/grpc/testing:test_proto",
84 "//test/core/security:oauth2_utils",
Makarand Dharmapurikar6a8e2c22017-04-18 13:09:52 -070085 "//test/cpp/util:test_config",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070086 ],
87)
88
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070089cc_binary(
90 name = "interop_client",
91 srcs = [
92 "client.cc",
93 ],
94 deps = [
95 ":client_helper_lib",
Nicolas "Pixel" Noble3dedf652017-05-24 02:29:02 +020096 "//:grpc++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070097 ],
98)