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 "execution_context.proto", 18 "extension_install.proto", 19 "histogram_event.proto", 20 "omnibox_event.proto", 21 "omnibox_focus_type.proto", 22 "omnibox_input_type.proto", 23 "perf_data.proto", 24 "perf_stat.proto", 25 "printer_event.proto", 26 "reporting_info.proto", 27 "sampled_profile.proto", 28 "structured_data.proto", 29 "system_profile.proto", 30 "trace_log.proto", 31 "translate_event.proto", 32 "ukm/aggregate.proto", 33 "ukm/entry.proto", 34 "ukm/report.proto", 35 "ukm/source.proto", 36 "user_action_event.proto", 37 "user_demographics.proto", 38] 39 40proto_library("metrics_proto") { 41 sources = _proto_files 42 proto_in_dir = "." 43} 44 45if (is_android) { 46 proto_java_library("metrics_proto_java") { 47 proto_path = "." 48 sources = _proto_files 49 } 50} 51