Debian Codegraph @

tools/compiler/BUILD.bazel

raw
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 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
16
17 package(
18 default_visibility = ["//visibility:public"],
19 licenses = ["notice"],
20 )
21
22 go_library(
23 name = "go_default_library",
24 srcs = [
25 "compiler.go",
26 ],
27 importpath = "github.com/google/cel-go/tools/compiler",
28 deps = [
29 "//cel:go_default_library",
30 "//common:go_default_library",
31 "//common/env:go_default_library",
32 "//common/types:go_default_library",
33 "//ext:go_default_library",
34 "//policy:go_default_library",
35 "@dev_cel_expr//:expr",
36 "@dev_cel_expr//conformance:go_default_library",
37 "@in_yaml_go_yaml_v3//:go_default_library",
38 "@io_bazel_rules_go//go/runfiles",
39 "@org_golang_google_genproto_googleapis_api//expr/v1alpha1:go_default_library",
40 "@org_golang_google_protobuf//encoding/prototext:go_default_library",
41 "@org_golang_google_protobuf//proto:go_default_library",
42 "@org_golang_google_protobuf//reflect/protoreflect:go_default_library",
43 "@org_golang_google_protobuf//types/descriptorpb:go_default_library",
44 ],
45 )
46
47 filegroup(
48 name = "compiler_testdata",
49 srcs = glob(["testdata/**"]),
50 )
51
52 go_test(
53 name = "go_default_test",
54 size = "small",
55 srcs = [
56 "compiler_test.go",
57 ],
58 data = [
59 ":compiler_testdata",
60 "//policy:testdata",
61 ],
62 embed = [":go_default_library"],
63 deps = [
64 "//cel:go_default_library",
65 "//common/env:go_default_library",
66 "//ext:go_default_library",
67 "//policy:go_default_library",
68 "@dev_cel_expr//:expr",
69 "@dev_cel_expr//conformance:go_default_library",
70 "@org_golang_google_protobuf//types/known/structpb:go_default_library",
71 ],
72 )