blob: 91aa018451fafc1a30f9aa817330d31f98449fe7 [file] [log] [blame]
Bob Badour3306e492021-02-25 15:35:37 -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",
35 ],
36
Vishnu Nair780b1282017-10-10 13:57:24 -070037 static_libs: [
38 "libserviceutils",
39 ],
Dan Willemsen59e086f2016-07-25 17:13:45 -070040}
Felipe Leme343175a2016-08-02 18:57:37 -070041
42//
43// Static library used in testing and executable
44//
45
46cc_library_static {
47 name: "libdumpsys",
48
49 defaults: ["dumpsys_defaults"],
50
51 export_include_dirs: ["."],
52}
53
Felipe Leme343175a2016-08-02 18:57:37 -070054//
55// Executable
56//
57
58cc_binary {
59 name: "dumpsys",
60
61 defaults: ["dumpsys_defaults"],
62
63 srcs: [
64 "main.cpp",
65 ],
66}
67
Steven Morelandc942c4c2019-01-25 19:14:27 -080068cc_binary {
69 name: "dumpsys_vendor",
70 stem: "dumpsys",
71
72 vendor: true,
73
74 defaults: ["dumpsys_defaults"],
75
76 srcs: [
77 "main.cpp",
78 ],
79}