forked from google/perfetto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.extras
126 lines (109 loc) · 2.99 KB
/
BUILD.extras
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
build_config_dir_ = "include/perfetto/base/build_configs/bazel"
# Deliberately NOT a perfetto_cc_library, to avoid cyclic deps.
# This is pulled as a default dep by all targets.
cc_library(
name = "build_config_hdr",
hdrs = [build_config_dir_ + "/perfetto_build_flags.h"],
includes = [build_config_dir_],
)
perfetto_cc_library(
name = "cc_merged_sql_metrics",
hdrs = ["src/trace_processor/metrics/sql_metrics.h"],
)
perfetto_py_binary(
name = "gen_merged_sql_metrics_py",
srcs = [
"tools/gen_merged_sql_metrics.py",
],
main = "tools/gen_merged_sql_metrics.py",
python_version = "PY3",
)
perfetto_py_binary(
name = "gen_cc_proto_descriptor_py",
srcs = [
"tools/gen_cc_proto_descriptor.py",
],
main = "tools/gen_cc_proto_descriptor.py",
python_version = "PY3",
)
perfetto_java_proto_library(
name = "protos_perfetto_metrics_java",
deps = [
":protos_perfetto_metrics_protos",
],
)
perfetto_java_proto_library(
name = "protos_perfetto_metrics_android_java",
deps = [
":protos_perfetto_metrics_android_protos",
],
)
perfetto_java_proto_library(
name = "protos_perfetto_trace_merged_trace_java",
deps = [
":protos_perfetto_trace_merged_trace_protos",
],
)
perfetto_java_proto_library(
name = "protos_perfetto_config_merged_config_java",
deps = [
":protos_perfetto_config_merged_config_protos",
],
)
perfetto_java_lite_proto_library(
name = "protos_perfetto_config_merged_config_java_lite",
deps = [
":protos_perfetto_config_merged_config_protos",
],
)
perfetto_gensignature_internal_only(
name = "trace_processor_sig",
srcs = [
":trace_processor_shell",
":trace_to_text",
],
tags = [
"__TRACE_PROCESSOR_SIG_TAG1",
"__TRACE_PROCESSOR_SIG_TAG2",
],
)
# Noop targets used to represent targets of the protobuf library.
# These will be rewritten in Google3 to be dependencies on the real targets.
perfetto_py_library(
name = "pyglib_noop",
srcs = [],
)
perfetto_py_library(
name = "protobuf_noop",
srcs = [],
)
perfetto_py_library(
name = "protobuf_descriptor_pb2_noop",
srcs = [],
)
perfetto_py_library(
name = "trace_processor_init_noop",
srcs = [],
)
perfetto_py_binary(
name = "trace_processor_py_example",
srcs = ["src/trace_processor/python/example.py"],
deps = [":trace_processor_py"],
main = "src/trace_processor/python/example.py",
python_version = "PY3",
)
perfetto_py_library(
name = "trace_processor_py",
srcs = glob(["src/trace_processor/python/perfetto/trace_processor/*.py"]),
data = [
":trace_processor_init_noop",
"src/trace_processor/python/perfetto/trace_processor/trace_processor.descriptor",
"src/trace_processor/python/perfetto/trace_processor/metrics.descriptor",
":trace_processor_shell",
],
deps = [
":protobuf_noop",
":protobuf_descriptor_pb2_noop",
":pyglib_noop",
]
)