xref: /aosp_15_r20/external/perfetto/src/bigtrace/worker/BUILD.gn (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
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("worker_main") {
23    sources = [
24      "worker_impl.cc",
25      "worker_impl.h",
26      "worker_main.cc",
27    ]
28    deps = [
29      "../../../gn:cpp_httplib",
30      "../../../gn:default_deps",
31      "../../../gn:grpc",
32      "../../../gn:jsoncpp",
33      "../../../include/perfetto/ext/trace_processor/rpc:query_result_serializer",
34      "../../../protos/perfetto/bigtrace:worker_grpc",
35      "../../../protos/perfetto/bigtrace:worker_lite",
36      "../../../src/trace_processor",
37      "../../../src/trace_processor/rpc:rpc",
38      "../../base",
39      "repository_policies:repository_policies",
40    ]
41  }
42}
43