xref: /aosp_15_r20/external/cronet/third_party/metrics_proto/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Copyright 2014 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//third_party/protobuf/proto_library.gni")
6
7if (is_android) {
8  import("//build/config/android/rules.gni")
9}
10
11_proto_files = [
12  "call_stack_profile.proto",
13  "cast_logs.proto",
14  "chrome_os_app_list_launch_event.proto",
15  "chrome_user_metrics_extension.proto",
16  "custom_tab_session.proto",
17  "device_state.proto",
18  "execution_context.proto",
19  "extension_install.proto",
20  "histogram_event.proto",
21  "omnibox_event.proto",
22  "omnibox_focus_type.proto",
23  "omnibox_input_type.proto",
24  "perf_data.proto",
25  "perf_stat.proto",
26  "printer_event.proto",
27  "reporting_info.proto",
28  "sampled_profile.proto",
29  "structured_data.proto",
30  "system_profile.proto",
31  "trace_log.proto",
32  "translate_event.proto",
33  "ukm/aggregate.proto",
34  "ukm/entry.proto",
35  "ukm/report.proto",
36  "ukm/source.proto",
37  "ukm/web_features.proto",
38  "user_action_event.proto",
39  "user_demographics.proto",
40]
41
42proto_library("metrics_proto") {
43  sources = _proto_files
44  proto_in_dir = "."
45}
46
47if (is_android) {
48  proto_java_library("metrics_proto_java") {
49    proto_path = "."
50    sources = _proto_files
51  }
52}
53