tp: introduce Python-generated C++ tables
This CL is the starting step of moving C++ tables away from using
macros. Macros have found to be limiting and are confusing for anyone
but myself to understand (and even I often struggle).
Instead, we will generate the table headers at build time just the same
way as we do e.g. protos. This CL introduces the public API for building
tables and shows how this looks like for a few existing tables.
Follow up CLs will add code-gen + migrate these tables over fully.
Change-Id: I22bd29670ea13a77059c529130ff3103300da43e
diff --git a/python/BUILD b/python/BUILD
index aa7963a..a116d01 100644
--- a/python/BUILD
+++ b/python/BUILD
@@ -56,6 +56,14 @@
python_version = "PY3",
)
+# GN target: //python:trace_processor_table_generator
+perfetto_py_library(
+ name = "trace_processor_table_generator",
+ srcs = [
+ "generators/trace_processor_table/public.py",
+ ],
+)
+
# GN target: //python:trace_processor_py_example
perfetto_py_binary(
name = "trace_processor_py_example",