• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17assert(enable_perfetto_trace_processor_sqlite)
18
19source_set("functions") {
20  sources = [
21    "clock_functions.h",
22    "create_function.cc",
23    "create_function.h",
24    "create_function_internal.cc",
25    "create_function_internal.h",
26    "create_view_function.cc",
27    "create_view_function.h",
28    "import.cc",
29    "import.h",
30    "layout_functions.cc",
31    "layout_functions.h",
32    "pprof_functions.cc",
33    "pprof_functions.h",
34    "sqlite3_str_split.cc",
35    "sqlite3_str_split.h",
36    "stack_functions.cc",
37    "stack_functions.h",
38    "to_ftrace.cc",
39    "to_ftrace.h",
40    "utils.h",
41    "window_functions.h",
42  ]
43  deps = [
44    "../..:demangle",
45    "../..:export_json",
46    "../..:metatrace",
47    "../../../../gn:default_deps",
48    "../../../../gn:sqlite",
49    "../../../../include/perfetto/protozero:protozero",
50    "../../../../protos/perfetto/common:zero",
51    "../../../../protos/perfetto/trace:zero",
52    "../../../../protos/perfetto/trace/ftrace:zero",
53    "../../../../protos/perfetto/trace_processor:zero",
54    "../../../base",
55    "../../containers",
56    "../../db",
57    "../../importers/common",
58    "../../importers/ftrace:ftrace_descriptors",
59    "../../prelude/table_functions",
60    "../../sqlite",
61    "../../storage",
62    "../../types",
63    "../../util",
64    "../../util:profile_builder",
65    "../../util:sql_argument",
66    "../../util:stdlib",
67  ]
68  public_deps = [ ":interface" ]
69}
70
71source_set("interface") {
72  sources = [
73    "sql_function.cc",
74    "sql_function.h",
75  ]
76  deps = [
77    "../../../../gn:default_deps",
78    "../../../../gn:sqlite",
79    "../../../../include/perfetto/trace_processor:basic_types",
80    "../../../base",
81  ]
82}
83
84perfetto_unittest_source_set("unittests") {
85  testonly = true
86  sources = [ "sqlite3_str_split_unittest.cc" ]
87  deps = [
88    ":functions",
89    "../../../../gn:default_deps",
90    "../../../../gn:gtest_and_gmock",
91    "../../../../gn:sqlite",
92    "../../../base",
93    "../../sqlite",
94  ]
95}
96