blob: 77871fc0979b2eb36f78bbf86f09467fb4835234 [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",
LaMont Jones54b01cd2024-10-23 13:59:40 -070024 "soong-finder-fs",
Patrice Arrudaadfc1122020-04-03 08:40:19 -070025 "soong-ui-metrics_upload_proto",
Nan Zhang17f27672018-12-12 16:01:49 -080026 "soong-ui-metrics_proto",
Chris Parsons53f68ae2022-03-03 12:01:40 -050027 "soong-ui-mk_metrics_proto",
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: [
LaMont Jones54b01cd2024-10-23 13:59:40 -070031 "hostinfo.go",
Nan Zhang17f27672018-12-12 16:01:49 -080032 "metrics.go",
Patrice Arruda457c5d32020-10-19 11:20:21 -070033 "event.go",
Nan Zhang17f27672018-12-12 16:01:49 -080034 ],
Patrice Arruda958b89c2020-07-13 18:21:14 +000035 testSrcs: [
Patrice Arruda457c5d32020-10-19 11:20:21 -070036 "event_test.go",
Patrice Arruda958b89c2020-07-13 18:21:14 +000037 ],
LaMont Jones54b01cd2024-10-23 13:59:40 -070038 linux: {
39 srcs: [
40 "hostinfo_linux.go",
41 ],
42 testSrcs: [
43 "hostinfo_linux_test.go",
44 ],
45 },
46 darwin: {
47 srcs: [
48 "hostinfo_darwin.go",
49 ],
50 },
Nan Zhang17f27672018-12-12 16:01:49 -080051}
52
53bootstrap_go_package {
54 name: "soong-ui-metrics_proto",
55 pkgPath: "android/soong/ui/metrics/metrics_proto",
Dan Willemsen4591b642021-05-24 14:24:12 -070056 deps: [
57 "golang-protobuf-reflect-protoreflect",
58 "golang-protobuf-runtime-protoimpl",
59 ],
Nan Zhang17f27672018-12-12 16:01:49 -080060 srcs: [
61 "metrics_proto/metrics.pb.go",
62 ],
63}
64
Patrice Arrudaadfc1122020-04-03 08:40:19 -070065bootstrap_go_package {
66 name: "soong-ui-metrics_upload_proto",
67 pkgPath: "android/soong/ui/metrics/upload_proto",
Dan Willemsen4591b642021-05-24 14:24:12 -070068 deps: [
69 "golang-protobuf-reflect-protoreflect",
70 "golang-protobuf-runtime-protoimpl",
71 ],
Patrice Arrudaadfc1122020-04-03 08:40:19 -070072 srcs: [
73 "upload_proto/upload.pb.go",
74 ],
75}
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux142cc2e2021-11-09 10:54:36 -050076
77bootstrap_go_package {
Chris Parsons53f68ae2022-03-03 12:01:40 -050078 name: "soong-ui-mk_metrics_proto",
79 pkgPath: "android/soong/ui/metrics/mk_metrics_proto",
80 deps: [
81 "golang-protobuf-reflect-protoreflect",
82 "golang-protobuf-runtime-protoimpl",
83 ],
84 srcs: [
85 "mk_metrics_proto/mk_metrics.pb.go",
86 ],
87}