Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | |
| 6 | load("@rules_proto//proto:defs.bzl", "proto_library") |
| 7 | load("@rules_proto_grpc//cpp:defs.bzl", "cpp_grpc_library", "cpp_proto_library") |
| 8 | |
| 9 | package(default_visibility = ["//visibility:public"]) |
| 10 | |
| 11 | cpp_proto_library( |
| 12 | name = "mconfigs_cpp_proto", |
| 13 | protos = [":mconfigs_proto"], |
| 14 | deps = ["//orc8r/protos:common_cpp_proto"], |
| 15 | ) |
| 16 | |
| 17 | proto_library( |
| 18 | name = "mconfigs_proto", |
| 19 | srcs = ["mconfig/mconfigs.proto"], |
| 20 | deps = ["//orc8r/protos:common_proto"], |
| 21 | ) |
| 22 | |
| 23 | cpp_grpc_library( |
| 24 | name = "abort_session_cpp_grpc", |
| 25 | protos = [":abort_session_proto"], |
| 26 | ) |
| 27 | |
| 28 | cpp_proto_library( |
| 29 | name = "abort_session_cpp_proto", |
| 30 | protos = [":abort_session_proto"], |
| 31 | ) |
| 32 | |
| 33 | proto_library( |
| 34 | name = "abort_session_proto", |
| 35 | srcs = ["abort_session.proto"], |
| 36 | ) |
| 37 | |
| 38 | cpp_proto_library( |
| 39 | name = "apn_cpp_proto", |
| 40 | protos = [":apn_proto"], |
| 41 | ) |
| 42 | |
| 43 | proto_library( |
| 44 | name = "apn_proto", |
| 45 | srcs = ["apn.proto"], |
| 46 | ) |
| 47 | |
| 48 | cpp_proto_library( |
| 49 | name = "subscriberdb_cpp_proto", |
| 50 | protos = [":subscriberdb_proto"], |
| 51 | deps = [ |
| 52 | ":apn_cpp_proto", |
| 53 | "//orc8r/protos:common_cpp_proto", |
| 54 | "//orc8r/protos:digest_cpp_proto", |
| 55 | ], |
| 56 | ) |
| 57 | |
| 58 | cpp_grpc_library( |
| 59 | name = "subscriberdb_cpp_grpc", |
| 60 | protos = [":subscriberdb_proto"], |
| 61 | deps = [ |
| 62 | ":apn_cpp_proto", |
| 63 | "//orc8r/protos:common_cpp_proto", |
| 64 | "//orc8r/protos:digest_cpp_proto", |
| 65 | ], |
| 66 | ) |
| 67 | |
| 68 | proto_library( |
| 69 | name = "subscriberdb_proto", |
| 70 | srcs = ["subscriberdb.proto"], |
| 71 | deps = [ |
| 72 | ":apn_proto", |
| 73 | "//orc8r/protos:common_proto", |
| 74 | "//orc8r/protos:digest_proto", |
| 75 | "@protobuf//:field_mask_proto", |
| 76 | ], |
| 77 | ) |
| 78 | |
| 79 | cpp_proto_library( |
| 80 | name = "mobilityd_cpp_proto", |
| 81 | protos = [":mobilityd_proto"], |
| 82 | deps = [":subscriberdb_cpp_proto"], |
| 83 | ) |
| 84 | |
| 85 | cpp_grpc_library( |
| 86 | name = "mobilityd_cpp_grpc", |
| 87 | protos = [":mobilityd_proto"], |
| 88 | deps = [ |
| 89 | ":subscriberdb_cpp_proto", |
| 90 | "//orc8r/protos:common_cpp_proto", |
| 91 | ], |
| 92 | ) |
| 93 | |
| 94 | proto_library( |
| 95 | name = "mobilityd_proto", |
| 96 | srcs = ["mobilityd.proto"], |
| 97 | deps = [ |
| 98 | ":subscriberdb_proto", |
| 99 | "//orc8r/protos:common_proto", |
| 100 | ], |
| 101 | ) |
| 102 | |
| 103 | cpp_proto_library( |
| 104 | name = "policydb_cpp_proto", |
| 105 | protos = [":policydb_proto"], |
| 106 | deps = [ |
| 107 | ":mobilityd_cpp_proto", |
| 108 | "//orc8r/protos:common_cpp_proto", |
| 109 | ], |
| 110 | ) |
| 111 | |
| 112 | cpp_grpc_library( |
| 113 | name = "policydb_cpp_grpc", |
| 114 | protos = [":policydb_proto"], |
| 115 | deps = [ |
| 116 | ":mobilityd_cpp_proto", |
| 117 | "//orc8r/protos:common_cpp_proto", |
| 118 | ], |
| 119 | ) |
| 120 | |
| 121 | proto_library( |
| 122 | name = "policydb_proto", |
| 123 | srcs = ["policydb.proto"], |
| 124 | deps = [ |
| 125 | ":mobilityd_proto", |
| 126 | "//orc8r/protos:common_proto", |
| 127 | ], |
| 128 | ) |
| 129 | |
| 130 | cpp_proto_library( |
| 131 | name = "session_manager_cpp_proto", |
| 132 | protos = [":session_manager_proto"], |
| 133 | deps = [ |
| 134 | ":apn_cpp_proto", |
| 135 | ":policydb_cpp_proto", |
| 136 | "//orc8r/protos:common_cpp_proto", |
| 137 | ], |
| 138 | ) |
| 139 | |
| 140 | cpp_grpc_library( |
| 141 | name = "session_manager_cpp_grpc", |
| 142 | protos = [":session_manager_proto"], |
| 143 | deps = [ |
| 144 | ":apn_cpp_proto", |
| 145 | ":policydb_cpp_proto", |
| 146 | "//orc8r/protos:common_cpp_proto", |
| 147 | ], |
| 148 | ) |
| 149 | |
| 150 | proto_library( |
| 151 | name = "session_manager_proto", |
| 152 | srcs = ["session_manager.proto"], |
| 153 | deps = [ |
| 154 | ":apn_proto", |
| 155 | ":policydb_proto", |
| 156 | ":subscriberdb_proto", |
| 157 | "//orc8r/protos:common_proto", |
| 158 | "@protobuf//:timestamp_proto", |
| 159 | ], |
| 160 | ) |
| 161 | |
| 162 | cpp_proto_library( |
| 163 | name = "pipelined_cpp_proto", |
| 164 | protos = [":pipelined_proto"], |
| 165 | deps = [ |
| 166 | ":apn_cpp_proto", |
| 167 | ":policydb_cpp_proto", |
| 168 | ":session_manager_cpp_proto", |
| 169 | "//orc8r/protos:common_cpp_proto", |
| 170 | ], |
| 171 | ) |
| 172 | |
| 173 | cpp_grpc_library( |
| 174 | name = "pipelined_cpp_grpc", |
| 175 | protos = [":pipelined_proto"], |
| 176 | deps = [ |
| 177 | ":apn_cpp_proto", |
| 178 | ":policydb_cpp_proto", |
| 179 | ":session_manager_cpp_proto", |
| 180 | "//orc8r/protos:common_cpp_proto", |
| 181 | ], |
| 182 | ) |
| 183 | |
| 184 | proto_library( |
| 185 | name = "pipelined_proto", |
| 186 | srcs = ["pipelined.proto"], |
| 187 | deps = [ |
| 188 | ":apn_proto", |
| 189 | ":mobilityd_proto", |
| 190 | ":policydb_proto", |
| 191 | ":session_manager_proto", |
| 192 | ":subscriberdb_proto", |
| 193 | "//orc8r/protos:common_proto", |
| 194 | ], |
| 195 | ) |
| 196 | |
| 197 | cpp_grpc_library( |
| 198 | name = "spgw_service_cpp_grpc", |
| 199 | protos = [":spgw_service_proto"], |
| 200 | deps = [ |
| 201 | "policydb_cpp_proto", |
| 202 | "subscriberdb_cpp_proto", |
| 203 | ], |
| 204 | ) |
| 205 | |
| 206 | cpp_proto_library( |
| 207 | name = "spgw_service_cpp_proto", |
| 208 | protos = [":spgw_service_proto"], |
| 209 | deps = [ |
| 210 | ":policydb_cpp_proto", |
| 211 | ":subscriberdb_cpp_proto", |
| 212 | ], |
| 213 | ) |
| 214 | |
| 215 | proto_library( |
| 216 | name = "spgw_service_proto", |
| 217 | srcs = ["spgw_service.proto"], |
| 218 | deps = [ |
| 219 | ":policydb_proto", |
| 220 | ":subscriberdb_proto", |
| 221 | ], |
| 222 | ) |