blob: 1a3e8d916fa243f1e79509d5b85ee6121d180687 [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
32cc_library(
33 name = "server_helper_lib",
34 srcs = [
35 "server_helper.cc",
36 ],
37 hdrs = [
38 "server_helper.h",
39 ],
40 deps = [
41 "//test/cpp/util:test_util",
Makarand Dharmapurikarbdd48ff2017-04-20 11:10:46 -070042 "//external:gflags",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070043 ],
44)
45
46cc_binary(
47 name = "interop_server",
48 srcs = [
49 "interop_server.cc",
50 "interop_server_bootstrap.cc",
51 ],
52 deps = [
53 ":server_helper_lib",
54 "//:grpc++",
55 "//src/proto/grpc/testing:empty_proto",
56 "//src/proto/grpc/testing:messages_proto",
57 "//src/proto/grpc/testing:test_proto",
58 "//test/cpp/util:test_config",
59 ],
60)
61
62cc_library(
63 name = "client_helper_lib",
64 srcs = [
65 "client_helper.cc",
66 "interop_client.cc",
67 ],
68 hdrs = [
69 "client_helper.h",
70 "interop_client.h",
71 ],
72 deps = [
73 "//test/cpp/util:test_util",
74 "//src/proto/grpc/testing:empty_proto",
75 "//src/proto/grpc/testing:messages_proto",
76 "//src/proto/grpc/testing:test_proto",
77 "//test/core/security:oauth2_utils",
Makarand Dharmapurikar6a8e2c22017-04-18 13:09:52 -070078 "//test/cpp/util:test_config",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070079 ],
80)
81
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070082cc_binary(
83 name = "interop_client",
84 srcs = [
85 "client.cc",
86 ],
87 deps = [
88 ":client_helper_lib",
89 ],
90)