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 | |
Nicolas "Pixel" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 32 | load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_cc_test", "grpc_cc_binary") |
| 33 | |
Nicolas "Pixel" Noble | af6c83f | 2017-05-19 00:38:10 +0200 | [diff] [blame] | 34 | package( |
| 35 | features = [ |
| 36 | "-layering_check", |
| 37 | "-parse_headers", |
| 38 | ], |
| 39 | ) |
| 40 | |
Nicolas "Pixel" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 41 | grpc_cc_library( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 42 | 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 Dharmapurikar | bdd48ff | 2017-04-20 11:10:46 -0700 | [diff] [blame] | 51 | "//external:gflags", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 52 | ], |
| 53 | ) |
| 54 | |
Nicolas "Pixel" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 55 | grpc_cc_binary( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 56 | name = "interop_server", |
| 57 | srcs = [ |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 58 | "interop_server_bootstrap.cc", |
| 59 | ], |
Nicolas "Pixel" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 60 | language = "C++", |
| 61 | deps = [ |
| 62 | "//:grpc++", |
| 63 | ], |
| 64 | ) |
| 65 | |
| 66 | grpc_cc_library( |
| 67 | name = "interop_server_lib", |
| 68 | srcs = [ |
| 69 | "interop_server.cc", |
| 70 | ], |
| 71 | language = "C++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 72 | deps = [ |
| 73 | ":server_helper_lib", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 74 | "//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" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 81 | grpc_cc_library( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 82 | 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 Dharmapurikar | 6a8e2c2 | 2017-04-18 13:09:52 -0700 | [diff] [blame] | 97 | "//test/cpp/util:test_config", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 98 | ], |
| 99 | ) |
| 100 | |
Nicolas "Pixel" Noble | c6dea73 | 2017-05-25 02:19:29 +0200 | [diff] [blame^] | 101 | grpc_cc_binary( |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 102 | name = "interop_client", |
| 103 | srcs = [ |
| 104 | "client.cc", |
| 105 | ], |
| 106 | deps = [ |
| 107 | ":client_helper_lib", |
Nicolas "Pixel" Noble | 3dedf65 | 2017-05-24 02:29:02 +0200 | [diff] [blame] | 108 | "//:grpc++", |
Makarand Dharmapurikar | 5b8032c | 2017-04-18 12:07:10 -0700 | [diff] [blame] | 109 | ], |
| 110 | ) |