blob: 3ba3907a6bb82d5fdd1d18b00dcaac8f07e9ac92 [file] [log] [blame]
Nan Zhang17f27672018-12-12 16:01:49 -08001// 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
Bob Badour02040de2021-02-03 18:08:28 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Nan Zhang17f27672018-12-12 16:01:49 -080019bootstrap_go_package {
20 name: "soong-ui-metrics",
21 pkgPath: "android/soong/ui/metrics",
22 deps: [
23 "golang-protobuf-proto",
Patrice Arrudaadfc1122020-04-03 08:40:19 -070024 "soong-ui-metrics_upload_proto",
Nan Zhang17f27672018-12-12 16:01:49 -080025 "soong-ui-metrics_proto",
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux142cc2e2021-11-09 10:54:36 -050026 "soong-ui-bp2build_metrics_proto",
Nan Zhang17f27672018-12-12 16:01:49 -080027 "soong-ui-tracer",
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux947fdbf2021-11-10 09:55:20 -050028 "soong-shared",
Nan Zhang17f27672018-12-12 16:01:49 -080029 ],
30 srcs: [
31 "metrics.go",
Patrice Arruda457c5d32020-10-19 11:20:21 -070032 "event.go",
Nan Zhang17f27672018-12-12 16:01:49 -080033 ],
Patrice Arruda958b89c2020-07-13 18:21:14 +000034 testSrcs: [
Patrice Arruda457c5d32020-10-19 11:20:21 -070035 "event_test.go",
Patrice Arruda958b89c2020-07-13 18:21:14 +000036 ],
Nan Zhang17f27672018-12-12 16:01:49 -080037}
38
39bootstrap_go_package {
40 name: "soong-ui-metrics_proto",
41 pkgPath: "android/soong/ui/metrics/metrics_proto",
Dan Willemsen4591b642021-05-24 14:24:12 -070042 deps: [
43 "golang-protobuf-reflect-protoreflect",
44 "golang-protobuf-runtime-protoimpl",
45 ],
Nan Zhang17f27672018-12-12 16:01:49 -080046 srcs: [
47 "metrics_proto/metrics.pb.go",
48 ],
49}
50
Patrice Arrudaadfc1122020-04-03 08:40:19 -070051bootstrap_go_package {
52 name: "soong-ui-metrics_upload_proto",
53 pkgPath: "android/soong/ui/metrics/upload_proto",
Dan Willemsen4591b642021-05-24 14:24:12 -070054 deps: [
55 "golang-protobuf-reflect-protoreflect",
56 "golang-protobuf-runtime-protoimpl",
57 ],
Patrice Arrudaadfc1122020-04-03 08:40:19 -070058 srcs: [
59 "upload_proto/upload.pb.go",
60 ],
61}
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux142cc2e2021-11-09 10:54:36 -050062
63bootstrap_go_package {
64 name: "soong-ui-bp2build_metrics_proto",
65 pkgPath: "android/soong/ui/metrics/bp2build_metrics_proto",
66 deps: [
67 "golang-protobuf-reflect-protoreflect",
68 "golang-protobuf-runtime-protoimpl",
69 ],
70 srcs: [
71 "bp2build_metrics_proto/bp2build_metrics.pb.go",
72 ],
73}