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
|
cc_library_host_static {
name: "bloaty-proto",
srcs: [
"bloaty.proto",
],
proto: {
export_proto_headers: true,
type: "full",
},
}
cc_defaults {
name: "bloaty-defaults",
cflags: [
"-fexceptions",
"-Wno-macro-redefined",
"-Wno-unused-parameter",
"-Wno-shift-count-overflow",
],
static_libs: [
"bloaty-proto",
"libprotobuf-cpp-full",
"libabsl_host",
"libcapstone",
],
}
cc_library_host_static {
name: "libbloaty",
defaults: ["bloaty-defaults"],
srcs: [
"bloaty.cc",
"demangle.cc",
"disassemble.cc",
"dwarf.cc",
"elf.cc",
"macho.cc",
"range_map.cc",
"webassembly.cc",
],
header_libs: [
"libbloaty_headers",
],
}
cc_binary_host {
name: "bloaty",
defaults: ["bloaty-defaults"],
srcs: ["main.cc"],
static_libs: [
"libbloaty",
],
}
|