• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 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
15import("../../gn/perfetto.gni")
16import("../../gn/test.gni")
17
18assert(
19    enable_perfetto_trace_processor && enable_perfetto_trace_processor_sqlite)
20
21if (enable_perfetto_grpc) {
22  executable("orchestrator_main") {
23    sources = [ "orchestrator_main.cc" ]
24    deps = [
25      "../../gn:default_deps",
26      "../../gn:grpc",
27      "../../protos/perfetto/bigtrace:orchestrator_grpc",
28      "../../protos/perfetto/bigtrace:worker_grpc",
29      "../base",
30    ]
31  }
32
33  executable("worker_main") {
34    sources = [ "worker_main.cc" ]
35    deps = [
36      "../../gn:default_deps",
37      "../../gn:grpc",
38      "../../include/perfetto/ext/trace_processor/rpc:query_result_serializer",
39      "../../protos/perfetto/bigtrace:worker_grpc",
40      "../../src/trace_processor",
41      "../../src/trace_processor/rpc:rpc",
42      "../base",
43    ]
44  }
45}
46