-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.bp
99 lines (91 loc) · 1.99 KB
/
Android.bp
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
cc_defaults {
name: "stats_defaults",
product_variables: {
use_lmkd_stats_log: {
cflags: [
"-DLMKD_LOG_STATS"
],
},
},
}
cc_binary {
name: "lmkd",
srcs: ["lmkd.cpp"],
shared_libs: [
"libcutils",
"liblog",
"libprocessgroup",
"libpsi",
"libstatssocket",
],
static_libs: [
"libstatslogc",
"libstatslog_lmkd",
"liblmkd_utils",
],
local_include_dirs: ["include"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
"-DLMKD_TRACE_KILLS"
],
init_rc: ["lmkd.rc"],
defaults: ["stats_defaults"],
logtags: ["event.logtags"],
}
cc_library_static {
name: "libstatslogc",
srcs: ["statslog.cpp"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
defaults: ["stats_defaults"],
shared_libs: [
"liblog",
],
static_libs: [
"libstatslog_lmkd",
],
}
genrule {
name: "statslog_lmkd.h",
tools: ["stats-log-api-gen"],
cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_lmkd.h --module lmkd --namespace android,lmkd,stats",
out: [
"statslog_lmkd.h",
],
}
genrule {
name: "statslog_lmkd.cpp",
tools: ["stats-log-api-gen"],
cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_lmkd.cpp --module lmkd --namespace android,lmkd,stats --importHeader statslog_lmkd.h",
out: [
"statslog_lmkd.cpp",
],
}
cc_library_static {
name: "libstatslog_lmkd",
generated_sources: ["statslog_lmkd.cpp"],
generated_headers: ["statslog_lmkd.h"],
export_generated_headers: ["statslog_lmkd.h"],
shared_libs: [
"libstatssocket",
],
}
cc_library_static {
name: "liblmkd_utils",
srcs: ["liblmkd_utils.cpp"],
recovery_available: true,
shared_libs: [
"libcutils",
],
export_include_dirs: ["include"],
cppflags: [
"-g",
"-Wall",
"-Werror",
]
}