Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 1 | # 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 | |
| 30 | licenses(["notice"]) # 3-clause BSD |
| 31 | |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 32 | load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary") |
| 33 | |
| 34 | grpc_cc_library( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 35 | name = "server_helper_lib", |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 36 | language = "c++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 37 | srcs = [ |
| 38 | "server_helper.cc", |
| 39 | ], |
| 40 | hdrs = [ |
| 41 | "server_helper.h", |
| 42 | ], |
| 43 | deps = [ |
| 44 | "//test/cpp/util:test_util", |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 45 | ], |
| 46 | external_deps = [ |
| 47 | "gflags", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 48 | ], |
| 49 | ) |
| 50 | |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 51 | grpc_cc_binary( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 52 | name = "interop_server", |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 53 | language = "c++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 54 | 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 Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 68 | grpc_cc_library( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 69 | name = "client_helper_lib", |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 70 | language = "c++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 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 Dharmapurikar | 6a8e2c2 | 2017-04-18 13:09:52 -0700 | [diff] [blame] | 85 | "//test/cpp/util:test_config", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 86 | ], |
| 87 | ) |
| 88 | |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 89 | grpc_cc_binary( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 90 | name = "interop_client", |
Craig Tiller | a753371 | 2017-05-16 13:09:33 -0700 | [diff] [blame^] | 91 | language = "c++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 92 | srcs = [ |
| 93 | "client.cc", |
| 94 | ], |
| 95 | deps = [ |
| 96 | ":client_helper_lib", |
| 97 | ], |
| 98 | ) |