1# Copyright (C) 2022 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/test.gni") 16 17source_set("minimal") { 18 sources = [ "fuchsia_trace_utils.h" ] 19 deps = [ 20 ":fuchsia_record", 21 "../../../../gn:default_deps", 22 "../../../../include/perfetto/trace_processor:storage", 23 "../../../base", 24 "../../storage", 25 "../../types", 26 ] 27} 28 29source_set("full") { 30 sources = [ 31 "fuchsia_trace_parser.cc", 32 "fuchsia_trace_parser.h", 33 "fuchsia_trace_tokenizer.cc", 34 "fuchsia_trace_tokenizer.h", 35 "fuchsia_trace_utils.cc", 36 ] 37 deps = [ 38 ":fuchsia_record", 39 ":minimal", 40 "../../../../gn:default_deps", 41 "../../sorter", 42 "../../storage", 43 "../../tables", 44 "../../types", 45 "../../util:trace_type", 46 "../common", 47 "../proto:minimal", 48 ] 49} 50 51source_set("fuchsia_record") { 52 sources = [ 53 "fuchsia_record.cc", 54 "fuchsia_record.h", 55 ] 56 deps = [ 57 "../../../../gn:default_deps", 58 "../../../../include/perfetto/trace_processor:storage", 59 "../../containers", 60 ] 61} 62 63perfetto_unittest_source_set("unittests") { 64 testonly = true 65 sources = [ 66 "fuchsia_parser_unittest.cc", 67 "fuchsia_trace_utils_unittest.cc", 68 ] 69 deps = [ 70 ":full", 71 ":minimal", 72 "../../../../gn:default_deps", 73 "../../../../gn:gtest_and_gmock", 74 "../../../../protos/perfetto/common:zero", 75 "../../../../protos/perfetto/config:zero", 76 "../../../../protos/perfetto/trace:zero", 77 "../../../../protos/perfetto/trace/android:zero", 78 "../../../../protos/perfetto/trace/chrome:zero", 79 "../../../../protos/perfetto/trace/ftrace:zero", 80 "../../../../protos/perfetto/trace/interned_data:zero", 81 "../../../../protos/perfetto/trace/profiling:zero", 82 "../../../../protos/perfetto/trace/ps:zero", 83 "../../../../protos/perfetto/trace/sys_stats:zero", 84 "../../../../protos/perfetto/trace/track_event:zero", 85 "../../../protozero", 86 "../../sorter", 87 "../../storage", 88 "../../tables", 89 "../../types", 90 "../../util:descriptors", 91 "../common", 92 "../ftrace:full", 93 "../proto:full", 94 "../proto:minimal", 95 ] 96} 97