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 15 import("../../../gn/perfetto.gni") 16 import("../../../gn/proto_library.gni") 17 import("../../../src/protozero/protozero_library.gni") 18 19 proto_library("config") { 20 generate_python = false 21 proto_in_dir = "$perfetto_root_path/protos" 22 proto_out_dir = "$perfetto_root_path/protos" 23 sources = [ 24 "chrome/chrome_config.proto", 25 "data_source_config.proto", 26 "data_source_descriptor.proto", 27 "ftrace/ftrace_config.proto", 28 "inode_file/inode_file_config.proto", 29 "process_stats/process_stats_config.proto", 30 "test_config.proto", 31 "trace_config.proto", 32 ] 33 } 34 35 protozero_library("config_zero") { 36 proto_in_dir = "$perfetto_root_path/protos" 37 proto_out_dir = "$perfetto_root_path/protos" 38 sources = [ 39 "chrome/chrome_config.proto", 40 "data_source_config.proto", 41 "data_source_descriptor.proto", 42 "ftrace/ftrace_config.proto", 43 "inode_file/inode_file_config.proto", 44 "process_stats/process_stats_config.proto", 45 "test_config.proto", 46 "trace_config.proto", 47 ] 48 generator_plugin_options = "wrapper_namespace=pbzero" 49 } 50 51 # This target is not used in the tree and is built only to guarantee that the 52 # autogenerated merged proto has a valid syntax. 53 proto_library("merged_config") { 54 generate_python = false 55 proto_in_dir = "$perfetto_root_path/protos" 56 proto_out_dir = "$perfetto_root_path/protos" 57 sources = [ 58 "perfetto_config.proto", 59 ] 60 } 61