blob: 04c3489adc4ec5c67fe09de70b26f74d9ce771c6 [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
Craig Tillera7533712017-05-16 13:09:33 -070032load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary")
33
34grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070035 name = "server_helper_lib",
Craig Tillera7533712017-05-16 13:09:33 -070036 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070037 srcs = [
38 "server_helper.cc",
39 ],
40 hdrs = [
41 "server_helper.h",
42 ],
43 deps = [
44 "//test/cpp/util:test_util",
Craig Tillera7533712017-05-16 13:09:33 -070045 ],
46 external_deps = [
47 "gflags",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070048 ],
49)
50
Craig Tillera7533712017-05-16 13:09:33 -070051grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070052 name = "interop_server",
Craig Tillera7533712017-05-16 13:09:33 -070053 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070054 srcs = [
55 "interop_server.cc",
56 "interop_server_bootstrap.cc",
57 ],
58 deps = [
59 ":server_helper_lib",
60 "//:grpc++",
61 "//src/proto/grpc/testing:empty_proto",
62 "//src/proto/grpc/testing:messages_proto",
63 "//src/proto/grpc/testing:test_proto",
64 "//test/cpp/util:test_config",
65 ],
66)
67
Craig Tillera7533712017-05-16 13:09:33 -070068grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070069 name = "client_helper_lib",
Craig Tillera7533712017-05-16 13:09:33 -070070 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070071 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
Craig Tillera7533712017-05-16 13:09:33 -070089grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070090 name = "interop_client",
Craig Tillera7533712017-05-16 13:09:33 -070091 language = "c++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070092 srcs = [
93 "client.cc",
94 ],
95 deps = [
96 ":client_helper_lib",
97 ],
98)