Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 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 | |
Bob Badour | 02040de | 2021-02-03 18:08:28 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 19 | bootstrap_go_package { |
| 20 | name: "soong-ui-metrics", |
| 21 | pkgPath: "android/soong/ui/metrics", |
| 22 | deps: [ |
| 23 | "golang-protobuf-proto", |
LaMont Jones | 54b01cd | 2024-10-23 13:59:40 -0700 | [diff] [blame] | 24 | "soong-finder-fs", |
Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 25 | "soong-ui-metrics_upload_proto", |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 26 | "soong-ui-metrics_proto", |
Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 27 | "soong-ui-mk_metrics_proto", |
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux | 947fdbf | 2021-11-10 09:55:20 -0500 | [diff] [blame] | 28 | "soong-shared", |
LaMont Jones | 6890a00 | 2024-11-12 06:29:27 -0800 | [diff] [blame] | 29 | "soong-ui-metrics_combined_proto", |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 30 | ], |
| 31 | srcs: [ |
LaMont Jones | 54b01cd | 2024-10-23 13:59:40 -0700 | [diff] [blame] | 32 | "hostinfo.go", |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 33 | "metrics.go", |
Patrice Arruda | 457c5d3 | 2020-10-19 11:20:21 -0700 | [diff] [blame] | 34 | "event.go", |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 35 | ], |
Patrice Arruda | 958b89c | 2020-07-13 18:21:14 +0000 | [diff] [blame] | 36 | testSrcs: [ |
Patrice Arruda | 457c5d3 | 2020-10-19 11:20:21 -0700 | [diff] [blame] | 37 | "event_test.go", |
Patrice Arruda | 958b89c | 2020-07-13 18:21:14 +0000 | [diff] [blame] | 38 | ], |
LaMont Jones | 54b01cd | 2024-10-23 13:59:40 -0700 | [diff] [blame] | 39 | linux: { |
| 40 | srcs: [ |
| 41 | "hostinfo_linux.go", |
| 42 | ], |
| 43 | testSrcs: [ |
| 44 | "hostinfo_linux_test.go", |
| 45 | ], |
| 46 | }, |
| 47 | darwin: { |
| 48 | srcs: [ |
| 49 | "hostinfo_darwin.go", |
| 50 | ], |
| 51 | }, |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | bootstrap_go_package { |
| 55 | name: "soong-ui-metrics_proto", |
| 56 | pkgPath: "android/soong/ui/metrics/metrics_proto", |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 57 | deps: [ |
| 58 | "golang-protobuf-reflect-protoreflect", |
| 59 | "golang-protobuf-runtime-protoimpl", |
| 60 | ], |
Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 61 | srcs: [ |
| 62 | "metrics_proto/metrics.pb.go", |
| 63 | ], |
| 64 | } |
| 65 | |
Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 66 | bootstrap_go_package { |
LaMont Jones | 6890a00 | 2024-11-12 06:29:27 -0800 | [diff] [blame] | 67 | name: "soong-ui-metrics_combined_proto", |
| 68 | pkgPath: "android/soong/ui/metrics/combined_metrics_proto", |
| 69 | deps: [ |
| 70 | "golang-protobuf-reflect-protoreflect", |
| 71 | "golang-protobuf-runtime-protoimpl", |
| 72 | "soong-cmd-find_input_delta-proto", |
| 73 | ], |
| 74 | srcs: [ |
| 75 | "metrics_proto/metrics.pb.go", |
| 76 | ], |
| 77 | } |
| 78 | |
| 79 | bootstrap_go_package { |
Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 80 | name: "soong-ui-metrics_upload_proto", |
| 81 | pkgPath: "android/soong/ui/metrics/upload_proto", |
Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 82 | deps: [ |
| 83 | "golang-protobuf-reflect-protoreflect", |
| 84 | "golang-protobuf-runtime-protoimpl", |
| 85 | ], |
Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 86 | srcs: [ |
| 87 | "upload_proto/upload.pb.go", |
| 88 | ], |
| 89 | } |
Alex Márquez Pérez Muñíz Díaz Púras Thaureaux | 142cc2e | 2021-11-09 10:54:36 -0500 | [diff] [blame] | 90 | |
| 91 | bootstrap_go_package { |
Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 92 | name: "soong-ui-mk_metrics_proto", |
| 93 | pkgPath: "android/soong/ui/metrics/mk_metrics_proto", |
| 94 | deps: [ |
| 95 | "golang-protobuf-reflect-protoreflect", |
| 96 | "golang-protobuf-runtime-protoimpl", |
| 97 | ], |
| 98 | srcs: [ |
| 99 | "mk_metrics_proto/mk_metrics.pb.go", |
| 100 | ], |
| 101 | } |