1# Copyright (C) 2019 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 18source_set("symbolizer") { 19 public_deps = [ "../../../include/perfetto/ext/base" ] 20 deps = [ "../../../gn:default_deps" ] 21 sources = [ 22 "breakpad_parser.cc", 23 "breakpad_parser.h", 24 "breakpad_symbolizer.cc", 25 "breakpad_symbolizer.h", 26 "elf.h", 27 "filesystem.h", 28 "filesystem_posix.cc", 29 "filesystem_windows.cc", 30 "local_symbolizer.cc", 31 "local_symbolizer.h", 32 "scoped_read_mmap.h", 33 "scoped_read_mmap_posix.cc", 34 "scoped_read_mmap_windows.cc", 35 "subprocess.h", 36 "subprocess_posix.cc", 37 "subprocess_windows.cc", 38 "symbolizer.cc", 39 "symbolizer.h", 40 ] 41} 42 43if (enable_perfetto_trace_processor) { 44 source_set("symbolize_database") { 45 public_deps = [ 46 ":symbolizer", 47 "../../../include/perfetto/ext/base", 48 ] 49 deps = [ 50 "../../../gn:default_deps", 51 "../../../include/perfetto/protozero", 52 "../../../include/perfetto/trace_processor:trace_processor", 53 "../../../protos/perfetto/trace:zero", 54 "../../../protos/perfetto/trace/profiling:zero", 55 "../../trace_processor/util:stack_traces_util", 56 ] 57 sources = [ 58 "symbolize_database.cc", 59 "symbolize_database.h", 60 ] 61 } 62} 63 64perfetto_unittest_source_set("unittests") { 65 testonly = true 66 deps = [ 67 ":symbolizer", 68 "../../../gn:default_deps", 69 "../../../gn:gtest_and_gmock", 70 "../../base:test_support", 71 ] 72 sources = [ 73 "breakpad_parser_unittest.cc", 74 "breakpad_symbolizer_unittest.cc", 75 "local_symbolizer_unittest.cc", 76 ] 77} 78