blob: 4a9c7f4460349fed143648f73eaf194ffa17ecee [file] [log] [blame]
Primiano Tucci4f9b6d72017-12-05 20:59:16 +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 Tucci098f0952019-09-03 10:21:20 +010015import("../../../gn/perfetto_host_executable.gni")
16
Primiano Tucci10613fa2019-10-15 17:25:51 +010017# The plugin that generates zero-copy serializers and deserializers. Those are
18# the xxx.pbzero.h headers used all over the codebase.
Primiano Tucci098f0952019-09-03 10:21:20 +010019perfetto_host_executable("protozero_plugin") {
20 sources = [
21 "protozero_plugin.cc",
22 ]
23 deps = [
24 "../../../gn:default_deps",
25 "../../../gn:protoc_lib",
Primiano Tucci14e7dd62019-09-08 22:47:58 -070026 "../../../src/base",
Primiano Tucci098f0952019-09-03 10:21:20 +010027 ]
28}
Primiano Tucci10613fa2019-10-15 17:25:51 +010029
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 Tucci57dd66b2019-10-15 23:09:04 +010033perfetto_host_executable("cppgen_plugin") {
Primiano Tucci10613fa2019-10-15 17:25:51 +010034 sources = [
Primiano Tucci57dd66b2019-10-15 23:09:04 +010035 "cppgen_plugin.cc",
Primiano Tucci10613fa2019-10-15 17:25:51 +010036 ]
37 deps = [
38 "../../../gn:default_deps",
39 "../../../gn:protoc_lib",
40 "../../../src/base",
41 ]
42}