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 "local_symbolizer.cc", 28 "local_symbolizer.h", 29 "scoped_read_mmap.h", 30 "scoped_read_mmap_posix.cc", 31 "scoped_read_mmap_windows.cc", 32 "subprocess.h", 33 "subprocess_posix.cc", 34 "subprocess_windows.cc", 35 "symbolizer.cc", 36 "symbolizer.h", 37 ] 38} 39 40source_set("symbolize_database") { 41 public_deps = [ 42 ":symbolizer", 43 "../../../include/perfetto/ext/base", 44 ] 45 deps = [ 46 "../../../gn:default_deps", 47 "../../../include/perfetto/protozero", 48 "../../../include/perfetto/trace_processor:trace_processor", 49 "../../../protos/perfetto/trace:zero", 50 "../../../protos/perfetto/trace/profiling:zero", 51 ] 52 sources = [ 53 "symbolize_database.cc", 54 "symbolize_database.h", 55 ] 56} 57 58perfetto_unittest_source_set("unittests") { 59 testonly = true 60 deps = [ 61 ":symbolizer", 62 "../../../gn:default_deps", 63 "../../../gn:gtest_and_gmock", 64 "../../base:test_support", 65 ] 66 sources = [ 67 "breakpad_parser_unittest.cc", 68 "breakpad_symbolizer_unittest.cc", 69 "local_symbolizer_unittest.cc", 70 ] 71} 72