blob: f908cbfe289ae6baf3f104b75a2dfd9e9e8e66b5 [file] [log] [blame]
Jiyong Park522ae9a2017-06-23 21:23:16 +09001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16cc_defaults {
17 name: "dumpstate_defaults",
18 cflags: [
19 "-Wall",
20 "-Werror",
21 "-Wno-missing-field-initializers",
22 "-Wno-unused-variable",
23 "-Wunused-parameter",
24 ],
25}
26
27cc_library_headers {
28 name: "dumpstate_headers",
29 vendor_available: true,
30 export_include_dirs: ["."],
31 header_libs: [
32 "libbase_headers",
33 "libutils_headers",
34 ],
35 export_header_lib_headers: [
36 "libbase_headers",
37 "libutils_headers",
38 ],
39}
40
41cc_library_shared {
42 name: "libdumpstateutil",
43 defaults: ["dumpstate_defaults"],
44 vendor_available: true,
Justin Yun7fdc6602017-08-02 17:02:05 +090045 vndk: {
46 enabled: true,
47 },
Jiyong Park522ae9a2017-06-23 21:23:16 +090048 header_libs: ["dumpstate_headers"],
49 export_header_lib_headers: ["dumpstate_headers"],
50 srcs: [
51 "DumpstateInternal.cpp",
52 "DumpstateUtil.cpp",
53 ],
54 shared_libs: [
55 "libbase",
56 "liblog",
57 ],
58}
59
60cc_library_shared {
61 name: "libdumpstateaidl",
62 defaults: ["dumpstate_defaults"],
63 shared_libs: [
64 "libbinder",
65 "libutils",
66 ],
67 aidl: {
68 local_include_dirs: ["binder"],
69 export_aidl_headers: true,
70 },
71 srcs: [
72 "binder/android/os/IDumpstate.aidl",
73 "binder/android/os/IDumpstateListener.aidl",
74 "binder/android/os/IDumpstateToken.aidl",
75 ],
76}
77
78cc_binary {
79 name: "dumpstate",
80 defaults: ["dumpstate_defaults"],
81 header_libs: ["dumpstate_headers"],
82 shared_libs: [
83 "android.hardware.dumpstate@1.0",
84 "libziparchive",
85 "libbase",
86 "libbinder",
87 "libcrypto",
88 "libcutils",
89 "libdebuggerd_client",
90 "libdumpstateaidl",
91 "libdumpstateutil",
92 "libhidlbase",
93 "libhidltransport",
94 "liblog",
95 "libutils",
96 ],
97 srcs: [
98 "DumpstateInternal.cpp",
99 "DumpstateService.cpp",
100 "utils.cpp",
101 "dumpstate.cpp",
102 ],
103 init_rc: ["dumpstate.rc"],
104}
105
106cc_test {
107 name: "dumpstate_test",
108 defaults: ["dumpstate_defaults"],
109 header_libs: ["dumpstate_headers"],
110 shared_libs: [
111 "libziparchive",
112 "libbase",
113 "libbinder",
114 "libcutils",
115 "libdebuggerd_client",
116 "libdumpstateaidl",
117 "libdumpstateutil",
118 "libhidlbase",
119 "libhidltransport",
120 "liblog",
121 "libutils",
122 ],
123 srcs: [
124 "DumpstateInternal.cpp",
125 "DumpstateService.cpp",
126 "utils.cpp",
127 "tests/dumpstate_test.cpp",
128 ],
129 static_libs: ["libgmock"],
130}