• 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    "perfetto_sql_engine.cc",
24    "perfetto_sql_engine.h",
25    "runtime_table_function.cc",
26    "runtime_table_function.h",
27    "table_pointer_module.cc",
28    "table_pointer_module.h",
29  ]
30  deps = [
31    "../..:metatrace",
32    "../../../../gn:default_deps",
33    "../../../../gn:sqlite",
34    "../../../../include/perfetto/trace_processor:basic_types",
35    "../../../../protos/perfetto/trace_processor:zero",
36    "../../../base",
37    "../../containers",
38    "../../db",
39    "../../db/column",
40    "../../perfetto_sql/intrinsics/functions:interface",
41    "../../perfetto_sql/intrinsics/table_functions:interface",
42    "../../sqlite",
43    "../../types",
44    "../../util",
45    "../../util:sql_argument",
46    "../../util:stdlib",
47    "../parser",
48    "../preprocessor",
49    "../tokenizer",
50  ]
51}
52
53perfetto_unittest_source_set("unittests") {
54  testonly = true
55  sources = [ "perfetto_sql_engine_unittest.cc" ]
56  deps = [
57    ":engine",
58    "../../../../gn:default_deps",
59    "../../../../gn:gtest_and_gmock",
60    "../../../../gn:sqlite",
61    "../../../base",
62    "../..//tables:tables_python",
63    "../../perfetto_sql/intrinsics/table_functions:interface",
64    "../../sqlite",
65  ]
66}
67