Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 1 | build_config_dir_ = "include/perfetto/base/build_configs/bazel" |
| 2 | |
| 3 | # Deliberately NOT a perfetto_cc_library, to avoid cyclic deps. |
| 4 | # This is pulled as a default dep by all targets. |
| 5 | cc_library( |
| 6 | name = "build_config_hdr", |
| 7 | hdrs = [build_config_dir_ + "/perfetto_build_flags.h"], |
| 8 | includes = [build_config_dir_], |
Lalit Maganti | 279ecde | 2019-04-01 16:57:12 +0100 | [diff] [blame] | 9 | ) |
Lalit Maganti | 26f69bd | 2019-04-29 18:23:47 +0100 | [diff] [blame] | 10 | |
Primiano Tucci | 1d40998 | 2019-09-19 10:15:18 +0100 | [diff] [blame] | 11 | perfetto_cc_library( |
| 12 | name = "cc_merged_sql_metrics", |
| 13 | hdrs = ["src/trace_processor/metrics/sql_metrics.h"], |
| 14 | ) |
| 15 | |
| 16 | perfetto_py_binary( |
Lalit Maganti | caac992 | 2019-05-01 10:40:53 +0100 | [diff] [blame] | 17 | name = "gen_merged_sql_metrics_py", |
Lalit Maganti | 26f69bd | 2019-04-29 18:23:47 +0100 | [diff] [blame] | 18 | srcs = [ |
Lalit Maganti | ab619fa | 2019-05-02 12:56:37 +0100 | [diff] [blame] | 19 | "tools/gen_merged_sql_metrics.py", |
| 20 | ], |
| 21 | main = "tools/gen_merged_sql_metrics.py", |
Florian Mayer | a5c1bd5 | 2019-08-02 11:01:34 +0100 | [diff] [blame] | 22 | python_version = "PY2", |
Lalit Maganti | 26f69bd | 2019-04-29 18:23:47 +0100 | [diff] [blame] | 23 | ) |
Lalit Maganti | 6560034 | 2019-09-19 21:35:35 +0100 | [diff] [blame] | 24 | |
| 25 | perfetto_java_proto_library( |
| 26 | name = "protos_perfetto_metrics_java", |
| 27 | deps = [ |
| 28 | ":protos_perfetto_metrics_protos", |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | perfetto_java_proto_library( |
| 33 | name = "protos_perfetto_metrics_android_java", |
| 34 | deps = [ |
| 35 | ":protos_perfetto_metrics_android_protos", |
| 36 | ], |
| 37 | ) |
| 38 | |
Lalit Maganti | c3187f8 | 2019-09-20 14:51:11 +0100 | [diff] [blame] | 39 | perfetto_java_proto_library( |
| 40 | name = "protos_perfetto_trace_merged_trace_java", |
| 41 | deps = [ |
| 42 | ":protos_perfetto_trace_merged_trace_protos", |
| 43 | ], |
| 44 | ) |
| 45 | |
Lalit Maganti | 6560034 | 2019-09-19 21:35:35 +0100 | [diff] [blame] | 46 | perfetto_gensignature_internal_only( |
| 47 | name = "trace_processor_sig", |
| 48 | srcs = [ |
| 49 | ":trace_processor_shell", |
| 50 | ":trace_to_text", |
| 51 | ], |
| 52 | tags = [ |
| 53 | "__TRACE_PROCESSOR_SIG_TAG1", |
| 54 | "__TRACE_PROCESSOR_SIG_TAG2", |
| 55 | ], |
| 56 | ) |