1// Copyright 2018 Google Inc. All rights reserved.
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//     http://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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19bootstrap_go_package {
20    name: "soong-ui-metrics",
21    pkgPath: "android/soong/ui/metrics",
22    deps: [
23        "golang-protobuf-proto",
24        "soong-ui-bp2build_metrics_proto",
25        "soong-ui-bazel_metrics_proto",
26        "soong-ui-metrics_upload_proto",
27        "soong-ui-metrics_proto",
28        "soong-ui-mk_metrics_proto",
29        "soong-shared",
30    ],
31    srcs: [
32        "metrics.go",
33        "event.go",
34    ],
35    testSrcs: [
36        "event_test.go",
37    ],
38}
39
40bootstrap_go_package {
41    name: "soong-ui-metrics_proto",
42    pkgPath: "android/soong/ui/metrics/metrics_proto",
43    deps: [
44        "golang-protobuf-reflect-protoreflect",
45        "golang-protobuf-runtime-protoimpl",
46    ],
47    srcs: [
48        "metrics_proto/metrics.pb.go",
49    ],
50}
51
52bootstrap_go_package {
53    name: "soong-ui-metrics_upload_proto",
54    pkgPath: "android/soong/ui/metrics/upload_proto",
55    deps: [
56        "golang-protobuf-reflect-protoreflect",
57        "golang-protobuf-runtime-protoimpl",
58    ],
59    srcs: [
60        "upload_proto/upload.pb.go",
61    ],
62}
63
64bootstrap_go_package {
65    name: "soong-ui-bp2build_metrics_proto",
66    pkgPath: "android/soong/ui/metrics/bp2build_metrics_proto",
67    deps: [
68        "golang-protobuf-reflect-protoreflect",
69        "golang-protobuf-runtime-protoimpl",
70    ],
71    srcs: [
72        "bp2build_metrics_proto/bp2build_metrics.pb.go",
73    ],
74}
75
76bootstrap_go_package {
77    name: "soong-ui-bazel_metrics_proto",
78    pkgPath: "android/soong/ui/metrics/bazel_metrics_proto",
79    deps: [
80        "golang-protobuf-reflect-protoreflect",
81        "golang-protobuf-runtime-protoimpl",
82    ],
83    srcs: [
84        "bazel_metrics_proto/bazel_metrics.pb.go",
85    ],
86}
87
88bootstrap_go_package {
89    name: "soong-ui-mk_metrics_proto",
90    pkgPath: "android/soong/ui/metrics/mk_metrics_proto",
91    deps: [
92        "golang-protobuf-reflect-protoreflect",
93        "golang-protobuf-runtime-protoimpl",
94    ],
95    srcs: [
96        "mk_metrics_proto/mk_metrics.pb.go",
97    ],
98}
99