|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +# |
| 15 | +# Internal AST implementation and utilities |
| 16 | +# These are needed by various parts of the CEL-C++ library, but are not intended for public use at |
| 17 | +# this time. |
| 18 | +package(default_visibility = ["//visibility:public"]) |
| 19 | + |
| 20 | +cc_library( |
| 21 | + name = "constant_proto", |
| 22 | + srcs = ["constant_proto.cc"], |
| 23 | + hdrs = ["constant_proto.h"], |
| 24 | + deps = [ |
| 25 | + "//common:constant", |
| 26 | + "//internal:proto_time_encoding", |
| 27 | + "@com_google_absl//absl/base:nullability", |
| 28 | + "@com_google_absl//absl/functional:overload", |
| 29 | + "@com_google_absl//absl/status", |
| 30 | + "@com_google_absl//absl/strings", |
| 31 | + "@com_google_absl//absl/time", |
| 32 | + "@com_google_absl//absl/types:variant", |
| 33 | + "@com_google_cel_spec//proto/cel/expr:syntax_cc_proto", |
| 34 | + "@com_google_protobuf//:protobuf", |
| 35 | + ], |
| 36 | +) |
| 37 | + |
| 38 | +cc_library( |
| 39 | + name = "expr_proto", |
| 40 | + srcs = ["expr_proto.cc"], |
| 41 | + hdrs = ["expr_proto.h"], |
| 42 | + deps = [ |
| 43 | + ":constant_proto", |
| 44 | + "//common:constant", |
| 45 | + "//common:expr", |
| 46 | + "//internal:status_macros", |
| 47 | + "@com_google_absl//absl/base:core_headers", |
| 48 | + "@com_google_absl//absl/base:nullability", |
| 49 | + "@com_google_absl//absl/functional:overload", |
| 50 | + "@com_google_absl//absl/status", |
| 51 | + "@com_google_absl//absl/strings", |
| 52 | + "@com_google_absl//absl/types:variant", |
| 53 | + "@com_google_cel_spec//proto/cel/expr:syntax_cc_proto", |
| 54 | + "@com_google_protobuf//:protobuf", |
| 55 | + ], |
| 56 | +) |
| 57 | + |
| 58 | +cc_test( |
| 59 | + name = "expr_proto_test", |
| 60 | + srcs = ["expr_proto_test.cc"], |
| 61 | + deps = [ |
| 62 | + ":expr_proto", |
| 63 | + "//common:expr", |
| 64 | + "//internal:proto_matchers", |
| 65 | + "//internal:testing", |
| 66 | + "@com_google_absl//absl/status", |
| 67 | + "@com_google_absl//absl/status:status_matchers", |
| 68 | + "@com_google_cel_spec//proto/cel/expr:syntax_cc_proto", |
| 69 | + "@com_google_protobuf//:protobuf", |
| 70 | + ], |
| 71 | +) |
0 commit comments