1# Copyright (C) 2017 The Android Open Source Project 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 15import("../../../gn/perfetto.gni") 16import("../../../gn/proto_library.gni") 17 18# The core config protos, without the [lazy = true] imports pulled by 19# data_source_config.proto. 20 21perfetto_proto_library("@TYPE@") { 22 deps = [ 23 "../common:@TYPE@", 24 "android:@TYPE@", 25 "ftrace:@TYPE@", 26 "gpu:@TYPE@", 27 "inode_file:@TYPE@", 28 "interceptors:@TYPE@", 29 "power:@TYPE@", 30 "process_stats:@TYPE@", 31 "profiling:@TYPE@", 32 "statsd:@TYPE@", 33 "sys_stats:@TYPE@", 34 "system_info:@TYPE@", 35 "track_event:@TYPE@", 36 ] 37 38 sources = [ 39 "chrome/chrome_config.proto", 40 "chrome/scenario_config.proto", 41 "data_source_config.proto", 42 "interceptor_config.proto", 43 "stress_test_config.proto", 44 "test_config.proto", 45 "trace_config.proto", 46 ] 47} 48 49perfetto_proto_library("descriptor") { 50 proto_generators = [ "descriptor" ] 51 generate_descriptor = "config.descriptor" 52 deps = [ ":source_set" ] 53 sources = [ "trace_config.proto" ] 54} 55