Primiano Tucci | 4f9b6d7 | 2017-12-05 20:59:16 +0000 | [diff] [blame] | 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 | |
Primiano Tucci | 098f095 | 2019-09-03 10:21:20 +0100 | [diff] [blame] | 15 | import("../../../gn/perfetto_host_executable.gni") |
| 16 | |
Primiano Tucci | 10613fa | 2019-10-15 17:25:51 +0100 | [diff] [blame] | 17 | # The plugin that generates zero-copy serializers and deserializers. Those are |
| 18 | # the xxx.pbzero.h headers used all over the codebase. |
Primiano Tucci | 098f095 | 2019-09-03 10:21:20 +0100 | [diff] [blame] | 19 | perfetto_host_executable("protozero_plugin") { |
| 20 | sources = [ |
| 21 | "protozero_plugin.cc", |
| 22 | ] |
| 23 | deps = [ |
| 24 | "../../../gn:default_deps", |
| 25 | "../../../gn:protoc_lib", |
Primiano Tucci | 14e7dd6 | 2019-09-08 22:47:58 -0700 | [diff] [blame] | 26 | "../../../src/base", |
Primiano Tucci | 098f095 | 2019-09-03 10:21:20 +0100 | [diff] [blame] | 27 | ] |
| 28 | } |
Primiano Tucci | 10613fa | 2019-10-15 17:25:51 +0100 | [diff] [blame] | 29 | |
| 30 | # The plugin that generates standalone C++ objects from protos (xxx.gen.h). |
| 31 | # This is used for core classes traced needs to know about such as |
| 32 | # DataSourceDescriptor. |
Primiano Tucci | 57dd66b | 2019-10-15 23:09:04 +0100 | [diff] [blame^] | 33 | perfetto_host_executable("cppgen_plugin") { |
Primiano Tucci | 10613fa | 2019-10-15 17:25:51 +0100 | [diff] [blame] | 34 | sources = [ |
Primiano Tucci | 57dd66b | 2019-10-15 23:09:04 +0100 | [diff] [blame^] | 35 | "cppgen_plugin.cc", |
Primiano Tucci | 10613fa | 2019-10-15 17:25:51 +0100 | [diff] [blame] | 36 | ] |
| 37 | deps = [ |
| 38 | "../../../gn:default_deps", |
| 39 | "../../../gn:protoc_lib", |
| 40 | "../../../src/base", |
| 41 | ] |
| 42 | } |