@@ -4,36 +4,46 @@ package(
44 default_visibility = ["//:android_cuttlefish" ],
55)
66
7+ cf_cc_library (
8+ name = "events" ,
9+ srcs = ["events.cc" ],
10+ hdrs = ["events.h" ],
11+ deps = [
12+ "//cuttlefish/host/commands/metrics:libmetrics_utils" ,
13+ "//cuttlefish/host/libs/config:cuttlefish_config" ,
14+ "//cuttlefish/host/libs/config:vmm_mode" ,
15+ "//external_proto:cf_log_cc_proto" ,
16+ "//external_proto:cf_metrics_event_cc_proto" ,
17+ "//external_proto:clientanalytics_cc_proto" ,
18+ "//external_proto:log_source_enum_cc_proto" ,
19+ "@protobuf//:timestamp_cc_proto" ,
20+ ],
21+ )
22+
723cf_cc_binary (
824 name = "metrics" ,
925 srcs = [
10- "events.cc" ,
11- "events.h" ,
1226 "host_receiver.cc" ,
1327 "host_receiver.h" ,
1428 "metrics.cc" ,
1529 ],
1630 deps = [
17- ":libmetrics_utils" ,
1831 "//cuttlefish/common/libs/fs" ,
1932 "//cuttlefish/common/libs/utils:files" ,
2033 "//cuttlefish/common/libs/utils:flag_parser" ,
2134 "//cuttlefish/common/libs/utils:tee_logging" ,
35+ "//cuttlefish/host/commands/metrics:events" ,
36+ "//cuttlefish/host/commands/metrics:libmetrics_utils" ,
2237 "//cuttlefish/host/libs/config:cuttlefish_config" ,
23- "//cuttlefish/host/libs/config:vmm_mode" ,
2438 "//cuttlefish/host/libs/metrics" ,
2539 "//cuttlefish/host/libs/metrics:metrics_headers" ,
2640 "//cuttlefish/host/libs/msg_queue" ,
2741 "//external_proto:cf_log_cc_proto" ,
28- "//external_proto:cf_metrics_event_cc_proto" ,
29- "//external_proto:clientanalytics_cc_proto" ,
30- "//external_proto:log_source_enum_cc_proto" ,
3142 "//libbase" ,
3243 "@fruit" ,
3344 "@gflags" ,
3445 "@jsoncpp" ,
3546 "@protobuf" ,
36- "@protobuf//:timestamp_cc_proto" ,
3747 ],
3848)
3949
@@ -48,7 +58,6 @@ cf_cc_library(
4858 "//cuttlefish/host/libs/web/http_client:curl_global_init" ,
4959 "//cuttlefish/host/libs/web/http_client:curl_http_client" ,
5060 "//cuttlefish/host/libs/web/http_client:http_string" ,
51- "//external_proto:clientanalytics_cc_proto" ,
5261 "//libbase" ,
5362 "@gflags" ,
5463 ],
0 commit comments