blob: 732f3f8c255403257fe0b980a5c34c9c6e6c2e0e [file] [log] [blame]
Primiano Tucci1d409982019-09-19 10:15:18 +01001build_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.
5cc_library(
6 name = "build_config_hdr",
7 hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
8 includes = [build_config_dir_],
Lalit Maganti279ecde2019-04-01 16:57:12 +01009)
Lalit Maganti26f69bd2019-04-29 18:23:47 +010010
Primiano Tucci1d409982019-09-19 10:15:18 +010011perfetto_cc_library(
12 name = "cc_merged_sql_metrics",
13 hdrs = ["src/trace_processor/metrics/sql_metrics.h"],
14)
15
16perfetto_py_binary(
Lalit Maganticaac9922019-05-01 10:40:53 +010017 name = "gen_merged_sql_metrics_py",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010018 srcs = [
Lalit Magantiab619fa2019-05-02 12:56:37 +010019 "tools/gen_merged_sql_metrics.py",
20 ],
21 main = "tools/gen_merged_sql_metrics.py",
Florian Mayera5c1bd52019-08-02 11:01:34 +010022 python_version = "PY2",
Lalit Maganti26f69bd2019-04-29 18:23:47 +010023)
Lalit Maganti65600342019-09-19 21:35:35 +010024
25perfetto_java_proto_library(
26 name = "protos_perfetto_metrics_java",
27 deps = [
28 ":protos_perfetto_metrics_protos",
29 ],
30)
31
32perfetto_java_proto_library(
33 name = "protos_perfetto_metrics_android_java",
34 deps = [
35 ":protos_perfetto_metrics_android_protos",
36 ],
37)
38
Lalit Magantic3187f82019-09-20 14:51:11 +010039perfetto_java_proto_library(
40 name = "protos_perfetto_trace_merged_trace_java",
41 deps = [
42 ":protos_perfetto_trace_merged_trace_protos",
43 ],
44)
45
Lalit Maganti65600342019-09-19 21:35:35 +010046perfetto_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)