blob: 557756548569b37976268f969dacbf3dd4689fe7 [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" Noblec6dea732017-05-25 02:19:29 +020032load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary")
33
Nicolas "Pixel" Nobleaf6c83f2017-05-19 00:38:10 +020034package(
35 features = [
36 "-layering_check",
37 "-parse_headers",
38 ],
39)
40
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020041grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070042 name = "server_helper_lib",
43 srcs = [
44 "server_helper.cc",
45 ],
46 hdrs = [
47 "server_helper.h",
48 ],
49 deps = [
50 "//test/cpp/util:test_util",
Makarand Dharmapurikarbdd48ff2017-04-20 11:10:46 -070051 "//external:gflags",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070052 ],
53)
54
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020055grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070056 name = "interop_server",
57 srcs = [
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070058 "interop_server_bootstrap.cc",
59 ],
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020060 language = "C++",
61 deps = [
62 "//:grpc++",
63 ],
64)
65
66grpc_cc_library(
67 name = "interop_server_lib",
68 srcs = [
69 "interop_server.cc",
70 ],
71 language = "C++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070072 deps = [
73 ":server_helper_lib",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070074 "//src/proto/grpc/testing:empty_proto",
75 "//src/proto/grpc/testing:messages_proto",
76 "//src/proto/grpc/testing:test_proto",
77 "//test/cpp/util:test_config",
78 ],
79)
80
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +020081grpc_cc_library(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070082 name = "client_helper_lib",
83 srcs = [
84 "client_helper.cc",
85 "interop_client.cc",
86 ],
87 hdrs = [
88 "client_helper.h",
89 "interop_client.h",
90 ],
91 deps = [
92 "//test/cpp/util:test_util",
93 "//src/proto/grpc/testing:empty_proto",
94 "//src/proto/grpc/testing:messages_proto",
95 "//src/proto/grpc/testing:test_proto",
96 "//test/core/security:oauth2_utils",
Makarand Dharmapurikar6a8e2c22017-04-18 13:09:52 -070097 "//test/cpp/util:test_config",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -070098 ],
99)
100
Nicolas "Pixel" Noblec6dea732017-05-25 02:19:29 +0200101grpc_cc_binary(
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -0700102 name = "interop_client",
103 srcs = [
104 "client.cc",
105 ],
106 deps = [
107 ":client_helper_lib",
Nicolas "Pixel" Noble3dedf652017-05-24 02:29:02 +0200108 "//:grpc++",
Makarand Dharmapurikar5b8032c2017-04-18 12:07:10 -0700109 ],
110)