| 1 |
# Any external dependency imported in the xds/ .protos requires entries in |
| 2 |
# the maps below, to allow the Bazel proto and language specific bindings to be |
| 3 |
# inferred from the import directives. |
| 4 |
# |
| 5 |
# This file needs to be interpreted as both Python 3 and Starlark, so only the |
| 6 |
# common subset of Python should be used. |
| 7 |
|
| 8 |
# This maps from .proto import directive path to the Bazel dependency path for |
| 9 |
# external dependencies. Since BUILD files are generated, this is the canonical |
| 10 |
# place to define this mapping. |
| 11 |
EXTERNAL_PROTO_IMPORT_BAZEL_DEP_MAP = { |
| 12 |
"google/api/expr/v1alpha1/checked.proto": "@com_google_googleapis//google/api/expr/v1alpha1:checked_proto", |
| 13 |
"google/api/expr/v1alpha1/syntax.proto": "@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto", |
| 14 |
} |
| 15 |
|
| 16 |
# This maps from the Bazel proto_library target to the Go language binding target for external dependencies. |
| 17 |
EXTERNAL_PROTO_GO_BAZEL_DEP_MAP = { |
| 18 |
# Note @com_google_googleapis are point to @go_googleapis. |
| 19 |
# This is done to address //test/build:go_build_test build error: |
| 20 |
# |
| 21 |
# link: package conflict error: |
| 22 |
# google.golang.org/genproto/googleapis/api/annotations: multiple copies of package passed to linker: |
| 23 |
# |
| 24 |
# @go_googleapis//google/api:annotations_go_proto |
| 25 |
# @com_google_googleapis//google/api:annotations_go_proto |
| 26 |
# |
| 27 |
# TODO(https://github.com/bazelbuild/rules_go/issues/1986): update to |
| 28 |
# @com_google_googleapis when the bug is resolved. Also see the note to |
| 29 |
# go_googleapis in https://github.com/bazelbuild/rules_go/blob/master/go/dependencies.rst#overriding-dependencies |
| 30 |
"@com_google_googleapis//google/api/expr/v1alpha1:checked_proto": "@org_golang_google_genproto_googleapis_api//expr/v1alpha1", |
| 31 |
"@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto": "@org_golang_google_genproto_googleapis_api//expr/v1alpha1", |
| 32 |
"@dev_cel//proto/cel/expr:checked_proto": "@dev_cel//proto/cel/expr:checked_go_proto", |
| 33 |
"@dev_cel//proto/cel/expr:syntax_proto": "@dev_cel//proto/cel/expr:syntax_go_proto", |
| 34 |
} |
| 35 |
|
| 36 |
# This maps from the Bazel proto_library target to the C++ language binding target for external dependencies. |
| 37 |
EXTERNAL_PROTO_CC_BAZEL_DEP_MAP = { |
| 38 |
"@com_google_googleapis//google/api/expr/v1alpha1:checked_proto": "@com_google_googleapis//google/api/expr/v1alpha1:checked_cc_proto", |
| 39 |
"@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto": "@com_google_googleapis//google/api/expr/v1alpha1:syntax_cc_proto", |
| 40 |
"@dev_cel//proto/cel/expr:checked_proto": "@dev_cel//proto/cel/expr:checked_cc_proto", |
| 41 |
"@dev_cel//proto/cel/expr:syntax_proto": "@dev_cel//proto/cel/expr:syntax_cc_proto", |
| 42 |
} |