| # Copyright (C) 2017 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| import("../../../gn/perfetto_host_executable.gni") |
| |
| # The plugin that generates zero-copy serializers and deserializers. Those are |
| # the xxx.pbzero.h headers used all over the codebase. |
| perfetto_host_executable("protozero_plugin") { |
| sources = [ "protozero_plugin.cc" ] |
| deps = [ |
| "../../../gn:default_deps", |
| "../../../gn:protoc_lib", |
| "../../../src/base", |
| ] |
| } |
| |
| # The plugin that generates standalone C++ objects from protos (xxx.gen.h). |
| # This is used for core classes traced needs to know about such as |
| # DataSourceDescriptor. |
| perfetto_host_executable("cppgen_plugin") { |
| sources = [ "cppgen_plugin.cc" ] |
| deps = [ |
| "../../../gn:default_deps", |
| "../../../gn:protoc_lib", |
| "../../../src/base", |
| ] |
| } |
| |
| # The plugin that generates standalone C macros and function from protos |
| # (xxx.pzc.h). This is used to generate the API headers of the shared library. |
| perfetto_host_executable("protozero_c_plugin") { |
| sources = [ "protozero_c_plugin.cc" ] |
| deps = [ |
| "../../../gn:default_deps", |
| "../../../gn:protoc_lib", |
| "../../../src/base", |
| ] |
| } |