| 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", | 
| Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 24 | "soong-ui-bp2build_metrics_proto", | 
| MarkDacek | 00e3152 | 2023-01-06 22:15:24 +0000 | [diff] [blame] | 25 | "soong-ui-bazel_metrics_proto", | 
| Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 26 | "soong-ui-metrics_upload_proto", | 
| Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 27 | "soong-ui-metrics_proto", | 
| Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 28 | "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] | 29 | "soong-shared", | 
| Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 30 | ], | 
|  | 31 | srcs: [ | 
|  | 32 | "metrics.go", | 
| Patrice Arruda | 457c5d3 | 2020-10-19 11:20:21 -0700 | [diff] [blame] | 33 | "event.go", | 
| Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 34 | ], | 
| Patrice Arruda | 958b89c | 2020-07-13 18:21:14 +0000 | [diff] [blame] | 35 | testSrcs: [ | 
| Patrice Arruda | 457c5d3 | 2020-10-19 11:20:21 -0700 | [diff] [blame] | 36 | "event_test.go", | 
| Patrice Arruda | 958b89c | 2020-07-13 18:21:14 +0000 | [diff] [blame] | 37 | ], | 
| Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 38 | } | 
|  | 39 |  | 
|  | 40 | bootstrap_go_package { | 
|  | 41 | name: "soong-ui-metrics_proto", | 
|  | 42 | pkgPath: "android/soong/ui/metrics/metrics_proto", | 
| Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 43 | deps: [ | 
|  | 44 | "golang-protobuf-reflect-protoreflect", | 
|  | 45 | "golang-protobuf-runtime-protoimpl", | 
|  | 46 | ], | 
| Nan Zhang | 17f2767 | 2018-12-12 16:01:49 -0800 | [diff] [blame] | 47 | srcs: [ | 
|  | 48 | "metrics_proto/metrics.pb.go", | 
|  | 49 | ], | 
|  | 50 | } | 
|  | 51 |  | 
| Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 52 | bootstrap_go_package { | 
|  | 53 | name: "soong-ui-metrics_upload_proto", | 
|  | 54 | pkgPath: "android/soong/ui/metrics/upload_proto", | 
| Dan Willemsen | 4591b64 | 2021-05-24 14:24:12 -0700 | [diff] [blame] | 55 | deps: [ | 
|  | 56 | "golang-protobuf-reflect-protoreflect", | 
|  | 57 | "golang-protobuf-runtime-protoimpl", | 
|  | 58 | ], | 
| Patrice Arruda | adfc112 | 2020-04-03 08:40:19 -0700 | [diff] [blame] | 59 | srcs: [ | 
|  | 60 | "upload_proto/upload.pb.go", | 
|  | 61 | ], | 
|  | 62 | } | 
| Alex Márquez Pérez Muñíz Díaz Púras Thaureaux | 142cc2e | 2021-11-09 10:54:36 -0500 | [diff] [blame] | 63 |  | 
|  | 64 | bootstrap_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 | } | 
| Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 75 |  | 
|  | 76 | bootstrap_go_package { | 
| MarkDacek | 00e3152 | 2023-01-06 22:15:24 +0000 | [diff] [blame] | 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 |  | 
|  | 88 | bootstrap_go_package { | 
| Chris Parsons | 53f68ae | 2022-03-03 12:01:40 -0500 | [diff] [blame] | 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 | } |