• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/test.gni")
16
17assert(enable_perfetto_trace_processor_sqlite)
18
19source_set("engine") {
20  sources = [
21    "created_function.cc",
22    "created_function.h",
23    "function_util.cc",
24    "function_util.h",
25    "perfetto_sql_engine.cc",
26    "perfetto_sql_engine.h",
27    "perfetto_sql_parser.cc",
28    "perfetto_sql_parser.h",
29    "perfetto_sql_preprocessor.cc",
30    "perfetto_sql_preprocessor.h",
31    "runtime_table_function.cc",
32    "runtime_table_function.h",
33    "table_pointer_module.cc",
34    "table_pointer_module.h",
35  ]
36  deps = [
37    "../..:metatrace",
38    "../../../../gn:default_deps",
39    "../../../../gn:sqlite",
40    "../../../../include/perfetto/trace_processor:basic_types",
41    "../../../../protos/perfetto/trace_processor:zero",
42    "../../../base",
43    "../../containers",
44    "../../db",
45    "../../perfetto_sql/intrinsics/functions:interface",
46    "../../perfetto_sql/intrinsics/table_functions:interface",
47    "../../sqlite",
48    "../../types",
49    "../../util",
50    "../../util:sql_argument",
51    "../../util:stdlib",
52  ]
53}
54
55perfetto_unittest_source_set("unittests") {
56  testonly = true
57  sources = [
58    "perfetto_sql_engine_unittest.cc",
59    "perfetto_sql_parser_unittest.cc",
60    "perfetto_sql_preprocessor_unittest.cc",
61    "perfetto_sql_test_utils.h",
62  ]
63  deps = [
64    ":engine",
65    "../../../../gn:default_deps",
66    "../../../../gn:gtest_and_gmock",
67    "../../../../gn:sqlite",
68    "../../../base",
69    "../..//tables:tables_python",
70    "../../perfetto_sql/intrinsics/table_functions:interface",
71    "../../sqlite",
72  ]
73}
74