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