diff options
Diffstat (limited to 'src/trace_processor/prelude/table_functions/BUILD.gn')
-rw-r--r-- | src/trace_processor/prelude/table_functions/BUILD.gn | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/trace_processor/prelude/table_functions/BUILD.gn b/src/trace_processor/prelude/table_functions/BUILD.gn index 4f5ced3d3..2a97bca2d 100644 --- a/src/trace_processor/prelude/table_functions/BUILD.gn +++ b/src/trace_processor/prelude/table_functions/BUILD.gn @@ -13,6 +13,7 @@ # limitations under the License. import("../../../../gn/perfetto.gni") +import("../../../../gn/perfetto_tp_tables.gni") assert(enable_perfetto_trace_processor_sqlite) @@ -38,12 +39,11 @@ source_set("table_functions") { "experimental_slice_layout.h", "flamegraph_construction_algorithms.cc", "flamegraph_construction_algorithms.h", - "table_function.cc", - "table_function.h", "view.cc", "view.h", ] deps = [ + ":tables", "../../../../gn:default_deps", "../../../../gn:sqlite", "../../../base", @@ -51,12 +51,31 @@ source_set("table_functions") { "../../db", "../../importers/proto:full", "../../importers/proto:minimal", - "../../sqlite:sqlite_minimal", + "../../sqlite", "../../storage", "../../tables", "../../types", "../../util", ] + public_deps = [ ":interface" ] +} + +source_set("interface") { + sources = [ + "table_function.cc", + "table_function.h", + ] + deps = [ + "../../../../gn:default_deps", + "../../../base", + "../../db", + "../../sqlite:query_constraints", + ] +} + +perfetto_tp_tables("tables") { + sources = [ "tables.py" ] + deps = [ "../../tables:tables_python" ] } source_set("unittests") { @@ -71,6 +90,7 @@ source_set("unittests") { ] deps = [ ":table_functions", + ":tables", "../../../../gn:default_deps", "../../../../gn:gtest_and_gmock", "../../containers", |