blob: 6ab6b7f95121c87254592483b7a9f519dffe38cb [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
2 default_applicable_licenses: ["frameworks_native_cmds_dumpsys_license"],
3}
4
5// Added automatically by a large-scale-change
6// See: http://go/android-license-faq
7license {
8 name: "frameworks_native_cmds_dumpsys_license",
9 visibility: [":__subpackages__"],
10 license_kinds: [
11 "SPDX-license-identifier-Apache-2.0",
12 ],
13 license_text: [
14 "NOTICE",
15 ],
16}
17
Felipe Leme343175a2016-08-02 18:57:37 -070018cc_defaults {
19 name: "dumpsys_defaults",
Dan Willemsen59e086f2016-07-25 17:13:45 -070020
Felipe Leme343175a2016-08-02 18:57:37 -070021 cflags: [
22 "-Wall",
23 "-Werror",
24 ],
25
26 srcs: [
27 "dumpsys.cpp",
28 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070029
30 shared_libs: [
Dan Willemsen2a001e82016-08-05 14:06:41 -070031 "libbase",
Dan Willemsen59e086f2016-07-25 17:13:45 -070032 "libutils",
33 "liblog",
34 "libbinder",
Devin Moorecfeeda42020-12-08 12:50:58 -080035 "libbinderdebug",
Dan Willemsen59e086f2016-07-25 17:13:45 -070036 ],
37
Vishnu Nair780b1282017-10-10 13:57:24 -070038 static_libs: [
39 "libserviceutils",
40 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070041}
Felipe Leme343175a2016-08-02 18:57:37 -070042
43//
44// Static library used in testing and executable
45//
46
47cc_library_static {
48 name: "libdumpsys",
49
50 defaults: ["dumpsys_defaults"],
51
52 export_include_dirs: ["."],
53}
54
Felipe Leme343175a2016-08-02 18:57:37 -070055//
56// Executable
57//
58
59cc_binary {
60 name: "dumpsys",
61
62 defaults: ["dumpsys_defaults"],
63
64 srcs: [
65 "main.cpp",
66 ],
67}
68
Steven Morelandc942c4c2019-01-25 19:14:27 -080069cc_binary {
70 name: "dumpsys_vendor",
71 stem: "dumpsys",
72
73 vendor: true,
74
75 defaults: ["dumpsys_defaults"],
76
77 srcs: [
78 "main.cpp",
79 ],
80}