blob: 74fa6c1c1dac0464fe6affb79f6b39b4739f81f2 [file] [log] [blame]
Primiano Tucci114b6492017-12-11 23:09:45 +00001# 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
Primiano Tucci20b760c2018-01-19 12:36:12 +000015import("../../../gn/perfetto.gni")
16import("../../../gn/proto_library.gni")
Sami Kyostila200bd2e2018-03-26 12:24:10 +010017import("../../../src/protozero/protozero_library.gni")
Primiano Tucci114b6492017-12-11 23:09:45 +000018
Primiano Tucci20b760c2018-01-19 12:36:12 +000019proto_library("config") {
Oystein Eftevaag51e06e52018-01-18 11:28:49 -080020 generate_python = false
Primiano Tucci20b760c2018-01-19 12:36:12 +000021 proto_in_dir = "$perfetto_root_path/protos"
22 proto_out_dir = "$perfetto_root_path/protos"
Primiano Tucci114b6492017-12-11 23:09:45 +000023 sources = [
Oystein Eftevaagab3b1b22018-03-08 16:27:06 -080024 "chrome/chrome_config.proto",
Primiano Tucci114b6492017-12-11 23:09:45 +000025 "data_source_config.proto",
26 "data_source_descriptor.proto",
Hector Dearmana89cc572018-02-23 12:02:58 +000027 "ftrace/ftrace_config.proto",
Primiano Tuccidae35652018-03-29 18:32:02 +010028 "inode_file/inode_file_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +010029 "process_stats/process_stats_config.proto",
Lalit Maganti3f5705c2018-03-09 12:09:44 +000030 "test_config.proto",
Primiano Tucci114b6492017-12-11 23:09:45 +000031 "trace_config.proto",
32 ]
33}
Primiano Tuccic5010802018-01-19 17:13:21 +000034
Sami Kyostila200bd2e2018-03-26 12:24:10 +010035protozero_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",
Primiano Tuccidae35652018-03-29 18:32:02 +010043 "inode_file/inode_file_config.proto",
Hector Dearman1b9c58a2018-03-29 18:45:06 +010044 "process_stats/process_stats_config.proto",
Sami Kyostila200bd2e2018-03-26 12:24:10 +010045 "test_config.proto",
46 "trace_config.proto",
47 ]
48 generator_plugin_options = "wrapper_namespace=pbzero"
49}
50
Primiano Tuccic5010802018-01-19 17:13:21 +000051# This target is not used in the tree and is built only to guarantee that the
52# autogenerated merged proto has a valid syntax.
53proto_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 = [
Primiano Tucci08882a42018-01-19 22:09:01 +000058 "perfetto_config.proto",
Primiano Tuccic5010802018-01-19 17:13:21 +000059 ]
60}