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 = [ 24 "orchestrator_impl.cc", 25 "orchestrator_impl.h", 26 "orchestrator_main.cc", 27 "resizable_task_pool.cc", 28 "resizable_task_pool.h", 29 "trace_address_pool.cc", 30 "trace_address_pool.h", 31 ] 32 deps = [ 33 "../../../gn:default_deps", 34 "../../../gn:grpc", 35 "../../../protos/perfetto/bigtrace:orchestrator_grpc", 36 "../../../protos/perfetto/bigtrace:orchestrator_lite", 37 "../../../protos/perfetto/bigtrace:worker_grpc", 38 "../../../protos/perfetto/bigtrace:worker_lite", 39 "../../../src/trace_processor/util", 40 "../../base", 41 "../../base/threading", 42 ] 43 } 44} 45