| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 1 | cc_defaults { | 
 | 2 |     name: "debuggerd_defaults", | 
 | 3 |     cflags: [ | 
 | 4 |         "-Wall", | 
 | 5 |         "-Wextra", | 
| Josh Gao | c7fe060 | 2017-03-13 14:13:29 -0700 | [diff] [blame] | 6 |         "-Werror", | 
| Josh Gao | 2b2ae0c | 2017-08-21 14:31:17 -0700 | [diff] [blame] | 7 |         "-Wno-unused-argument", | 
 | 8 |         "-Wno-unused-function", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 9 |         "-Wno-nullability-completeness", | 
 | 10 |         "-Os", | 
 | 11 |     ], | 
 | 12 |  | 
 | 13 |     local_include_dirs: ["include"], | 
 | 14 | } | 
 | 15 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 16 | cc_library_headers { | 
 | 17 |     name: "libdebuggerd_common_headers", | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 18 |     export_include_dirs: ["common/include"], | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 19 |     recovery_available: true, | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 20 | } | 
 | 21 |  | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 22 | cc_library_shared { | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 23 |     name: "libtombstoned_client", | 
 | 24 |     defaults: ["debuggerd_defaults"], | 
 | 25 |     srcs: [ | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 26 |         "tombstoned/tombstoned_client.cpp", | 
 | 27 |         "util.cpp", | 
 | 28 |     ], | 
 | 29 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 30 |     header_libs: ["libdebuggerd_common_headers"], | 
 | 31 |  | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 32 |     static_libs: [ | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 33 |         "libasync_safe", | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 34 |     ], | 
 | 35 |  | 
 | 36 |     shared_libs: [ | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 37 |         "libbase", | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 38 |         "libcutils", | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 39 |     ], | 
 | 40 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 41 |     export_header_lib_headers: ["libdebuggerd_common_headers"], | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 42 |     export_include_dirs: ["tombstoned/include"], | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 43 | } | 
 | 44 |  | 
| Josh Gao | 9da1f51 | 2018-08-06 15:38:29 -0700 | [diff] [blame] | 45 | // Utility library to talk to tombstoned and get an output fd. | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 46 | cc_library_static { | 
 | 47 |     name: "libtombstoned_client_static", | 
 | 48 |     defaults: ["debuggerd_defaults"], | 
| Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 49 |     recovery_available: true, | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 50 |     srcs: [ | 
 | 51 |         "tombstoned/tombstoned_client.cpp", | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 52 |         "util.cpp", | 
 | 53 |     ], | 
 | 54 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 55 |     header_libs: ["libdebuggerd_common_headers"], | 
 | 56 |  | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 57 |     whole_static_libs: [ | 
| Christopher Ferris | ac22578 | 2017-04-25 11:23:10 -0700 | [diff] [blame] | 58 |         "libasync_safe", | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 59 |         "libcutils", | 
 | 60 |         "libbase", | 
 | 61 |     ], | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 62 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 63 |     export_header_lib_headers: ["libdebuggerd_common_headers"], | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 64 |     export_include_dirs: ["tombstoned/include"], | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 65 | } | 
 | 66 |  | 
 | 67 | // Core implementation, linked into libdebuggerd_handler and the dynamic linker. | 
| Josh Gao | 9c02dc5 | 2016-06-15 17:29:00 -0700 | [diff] [blame] | 68 | cc_library_static { | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 69 |     name: "libdebuggerd_handler_core", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 70 |     defaults: ["debuggerd_defaults"], | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 71 |     recovery_available: true, | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 72 |     srcs: ["handler/debuggerd_handler.cpp"], | 
| Josh Gao | 9c02dc5 | 2016-06-15 17:29:00 -0700 | [diff] [blame] | 73 |  | 
| Josh Gao | fdf832d | 2017-08-25 18:00:18 -0700 | [diff] [blame] | 74 |     header_libs: [ | 
 | 75 |         "libbase_headers", | 
 | 76 |         "libdebuggerd_common_headers", | 
 | 77 |     ], | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 78 |  | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 79 |     whole_static_libs: [ | 
| Christopher Ferris | ac22578 | 2017-04-25 11:23:10 -0700 | [diff] [blame] | 80 |         "libasync_safe", | 
| Josh Gao | 2b2ae0c | 2017-08-21 14:31:17 -0700 | [diff] [blame] | 81 |         "libcutils", | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 82 |         "libdebuggerd", | 
 | 83 |     ], | 
 | 84 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 85 |     export_header_lib_headers: ["libdebuggerd_common_headers"], | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 86 |     export_include_dirs: ["include"], | 
 | 87 | } | 
 | 88 |  | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 89 | // Implementation with a no-op fallback. | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 90 | cc_library_static { | 
 | 91 |     name: "libdebuggerd_handler", | 
 | 92 |     defaults: ["debuggerd_defaults"], | 
 | 93 |     srcs: ["handler/debuggerd_fallback_nop.cpp"], | 
 | 94 |  | 
 | 95 |     whole_static_libs: [ | 
 | 96 |         "libdebuggerd_handler_core", | 
 | 97 |     ], | 
 | 98 |  | 
 | 99 |     export_include_dirs: ["include"], | 
 | 100 | } | 
 | 101 |  | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 102 | // Fallback implementation. | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 103 | cc_library_static { | 
 | 104 |     name: "libdebuggerd_handler_fallback", | 
 | 105 |     defaults: ["debuggerd_defaults"], | 
| Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 106 |     recovery_available: true, | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 107 |     srcs: [ | 
 | 108 |         "handler/debuggerd_fallback.cpp", | 
 | 109 |     ], | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 110 |  | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 111 |     whole_static_libs: [ | 
 | 112 |         "libdebuggerd_handler_core", | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 113 |         "libtombstoned_client_static", | 
| Christopher Ferris | ac22578 | 2017-04-25 11:23:10 -0700 | [diff] [blame] | 114 |         "libasync_safe", | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 115 |         "libbase", | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 116 |         "libdebuggerd", | 
| Christopher Ferris | 9a8c855 | 2017-08-11 15:29:19 -0700 | [diff] [blame] | 117 |         "libunwindstack", | 
| Martin Stjernholm | e31cfb6 | 2019-02-05 04:59:07 +0000 | [diff] [blame] | 118 |         "libdexfile_support_static",  // libunwindstack dependency | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 119 |         "liblzma", | 
 | 120 |         "libcutils", | 
 | 121 |     ], | 
| Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 122 |     target: { | 
 | 123 |         recovery: { | 
| Martin Stjernholm | bb4f2b4 | 2018-12-19 14:28:33 +0000 | [diff] [blame] | 124 |             exclude_static_libs: [ | 
| Martin Stjernholm | e31cfb6 | 2019-02-05 04:59:07 +0000 | [diff] [blame] | 125 |                 "libdexfile_support_static", | 
| Martin Stjernholm | bb4f2b4 | 2018-12-19 14:28:33 +0000 | [diff] [blame] | 126 |             ], | 
| Jiyong Park | 011ee12 | 2018-05-29 16:41:30 +0900 | [diff] [blame] | 127 |         }, | 
 | 128 |     }, | 
| Josh Gao | 9c02dc5 | 2016-06-15 17:29:00 -0700 | [diff] [blame] | 129 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 130 |     export_include_dirs: ["include"], | 
 | 131 | } | 
 | 132 |  | 
 | 133 | cc_library { | 
 | 134 |     name: "libdebuggerd_client", | 
 | 135 |     defaults: ["debuggerd_defaults"], | 
 | 136 |     srcs: [ | 
 | 137 |         "client/debuggerd_client.cpp", | 
 | 138 |         "util.cpp", | 
 | 139 |     ], | 
 | 140 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 141 |     header_libs: ["libdebuggerd_common_headers"], | 
 | 142 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 143 |     shared_libs: [ | 
 | 144 |         "libbase", | 
 | 145 |         "libcutils", | 
| Josh Gao | 4175cee | 2019-01-04 13:57:09 -0800 | [diff] [blame] | 146 |         "libprocinfo", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 147 |     ], | 
| Josh Gao | e1aa0ca | 2017-03-01 17:23:22 -0800 | [diff] [blame] | 148 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 149 |     export_header_lib_headers: ["libdebuggerd_common_headers"], | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 150 |     export_include_dirs: ["include"], | 
 | 151 | } | 
 | 152 |  | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 153 | cc_library_static { | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 154 |     name: "libdebuggerd", | 
 | 155 |     defaults: ["debuggerd_defaults"], | 
| Jiyong Park | a0e7504 | 2018-05-24 14:11:00 +0900 | [diff] [blame] | 156 |     recovery_available: true, | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 157 |  | 
 | 158 |     srcs: [ | 
 | 159 |         "libdebuggerd/backtrace.cpp", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 160 |         "libdebuggerd/open_files_list.cpp", | 
 | 161 |         "libdebuggerd/tombstone.cpp", | 
 | 162 |         "libdebuggerd/utility.cpp", | 
 | 163 |     ], | 
 | 164 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 165 |     local_include_dirs: ["libdebuggerd/include"], | 
 | 166 |     export_include_dirs: ["libdebuggerd/include"], | 
| Josh Gao | 9c02dc5 | 2016-06-15 17:29:00 -0700 | [diff] [blame] | 167 |  | 
| Josh Gao | ce841d9 | 2018-08-06 18:26:42 -0700 | [diff] [blame] | 168 |     // Needed for private/bionic_fdsan.h | 
 | 169 |     include_dirs: ["bionic/libc"], | 
 | 170 |  | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 171 |     static_libs: [ | 
| Martin Stjernholm | e31cfb6 | 2019-02-05 04:59:07 +0000 | [diff] [blame] | 172 |         "libdexfile_support_static",  // libunwindstack dependency | 
| Christopher Ferris | 9a8c855 | 2017-08-11 15:29:19 -0700 | [diff] [blame] | 173 |         "libunwindstack", | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 174 |         "liblzma", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 175 |         "libbase", | 
 | 176 |         "libcutils", | 
 | 177 |         "liblog", | 
 | 178 |     ], | 
| Martin Stjernholm | bb4f2b4 | 2018-12-19 14:28:33 +0000 | [diff] [blame] | 179 |     target: { | 
 | 180 |         recovery: { | 
 | 181 |             exclude_static_libs: [ | 
| Martin Stjernholm | e31cfb6 | 2019-02-05 04:59:07 +0000 | [diff] [blame] | 182 |                 "libdexfile_support_static", | 
| Martin Stjernholm | bb4f2b4 | 2018-12-19 14:28:33 +0000 | [diff] [blame] | 183 |             ], | 
 | 184 |         }, | 
 | 185 |     }, | 
| Christopher Ferris | 4ae266c | 2019-04-03 09:27:12 -0700 | [diff] [blame] | 186 |  | 
 | 187 |     product_variables: { | 
 | 188 |         debuggable: { | 
 | 189 |             cflags: ["-DROOT_POSSIBLE"], | 
 | 190 |         }, | 
 | 191 |     }, | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 192 | } | 
 | 193 |  | 
 | 194 | cc_test { | 
 | 195 |     name: "debuggerd_test", | 
 | 196 |     defaults: ["debuggerd_defaults"], | 
| Josh Gao | 6cad139 | 2019-08-27 16:02:38 -0700 | [diff] [blame] | 197 |     require_root: true, | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 198 |  | 
 | 199 |     cflags: ["-Wno-missing-field-initializers"], | 
 | 200 |     srcs: [ | 
 | 201 |         "libdebuggerd/test/dump_memory_test.cpp", | 
 | 202 |         "libdebuggerd/test/elf_fake.cpp", | 
 | 203 |         "libdebuggerd/test/log_fake.cpp", | 
 | 204 |         "libdebuggerd/test/open_files_list_test.cpp", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 205 |         "libdebuggerd/test/tombstone_test.cpp", | 
 | 206 |     ], | 
 | 207 |  | 
 | 208 |     target: { | 
 | 209 |         android: { | 
 | 210 |             srcs: [ | 
| Josh Gao | ae9d767 | 2017-03-24 16:26:03 -0700 | [diff] [blame] | 211 |                 "client/debuggerd_client_test.cpp", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 212 |                 "debuggerd_test.cpp", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 213 |             ], | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 214 |             static_libs: [ | 
 | 215 |                 "libasync_safe", | 
 | 216 |                 "libtombstoned_client_static", | 
 | 217 |             ], | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 218 |         }, | 
 | 219 |     }, | 
 | 220 |  | 
 | 221 |     shared_libs: [ | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 222 |         "libbase", | 
 | 223 |         "libcutils", | 
| Josh Gao | ae9d767 | 2017-03-24 16:26:03 -0700 | [diff] [blame] | 224 |         "libdebuggerd_client", | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 225 |         "liblog", | 
| Josh Gao | e04ca27 | 2018-01-16 15:38:17 -0800 | [diff] [blame] | 226 |         "libminijail", | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 227 |         "libnativehelper", | 
| Martin Stjernholm | 852b64e | 2019-02-20 17:01:24 +0000 | [diff] [blame] | 228 |         "libunwindstack", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 229 |     ], | 
 | 230 |  | 
 | 231 |     static_libs: [ | 
| Josh Gao | 352a845 | 2017-03-30 16:46:21 -0700 | [diff] [blame] | 232 |         "libdebuggerd", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 233 |     ], | 
 | 234 |  | 
 | 235 |     local_include_dirs: [ | 
 | 236 |         "libdebuggerd", | 
 | 237 |     ], | 
 | 238 |  | 
 | 239 |     compile_multilib: "both", | 
 | 240 |     multilib: { | 
 | 241 |         lib32: { | 
 | 242 |             stem: "debuggerd_test32", | 
 | 243 |         }, | 
 | 244 |         lib64: { | 
 | 245 |             stem: "debuggerd_test64", | 
 | 246 |         }, | 
 | 247 |     }, | 
| Elliott Hughes | 40fdf3f | 2018-04-27 16:12:06 -0700 | [diff] [blame] | 248 |  | 
 | 249 |     test_suites: ["device-tests"], | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 250 | } | 
 | 251 |  | 
| Josh Gao | a42314e | 2017-12-19 15:08:19 -0800 | [diff] [blame] | 252 | cc_benchmark { | 
 | 253 |     name: "debuggerd_benchmark", | 
 | 254 |     defaults: ["debuggerd_defaults"], | 
 | 255 |     srcs: ["debuggerd_benchmark.cpp"], | 
 | 256 |     shared_libs: [ | 
 | 257 |         "libbase", | 
 | 258 |         "libdebuggerd_client", | 
 | 259 |     ], | 
 | 260 | } | 
 | 261 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 262 | cc_binary { | 
 | 263 |     name: "crash_dump", | 
 | 264 |     srcs: [ | 
 | 265 |         "crash_dump.cpp", | 
 | 266 |         "util.cpp", | 
 | 267 |     ], | 
 | 268 |     defaults: ["debuggerd_defaults"], | 
 | 269 |  | 
 | 270 |     compile_multilib: "both", | 
 | 271 |     multilib: { | 
 | 272 |         lib32: { | 
 | 273 |             suffix: "32", | 
 | 274 |         }, | 
 | 275 |         lib64: { | 
 | 276 |             suffix: "64", | 
 | 277 |         }, | 
 | 278 |     }, | 
 | 279 |  | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 280 |     static_libs: [ | 
| Narayan Kamath | 2d377cd | 2017-05-10 10:58:59 +0100 | [diff] [blame] | 281 |         "libtombstoned_client_static", | 
| Josh Gao | e73c932 | 2017-02-08 16:06:26 -0800 | [diff] [blame] | 282 |         "libdebuggerd", | 
 | 283 |         "libcutils", | 
 | 284 |     ], | 
 | 285 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 286 |     shared_libs: [ | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 287 |         "libbase", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 288 |         "liblog", | 
 | 289 |         "libprocinfo", | 
| Josh Gao | 2b2ae0c | 2017-08-21 14:31:17 -0700 | [diff] [blame] | 290 |         "libunwindstack", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 291 |     ], | 
 | 292 | } | 
 | 293 |  | 
 | 294 | cc_binary { | 
 | 295 |     name: "debuggerd", | 
 | 296 |     srcs: [ | 
 | 297 |         "debuggerd.cpp", | 
 | 298 |     ], | 
 | 299 |     defaults: ["debuggerd_defaults"], | 
 | 300 |  | 
 | 301 |     shared_libs: [ | 
 | 302 |         "libbase", | 
 | 303 |         "libdebuggerd_client", | 
 | 304 |         "liblog", | 
| Josh Gao | 0915f23 | 2017-06-27 14:08:05 -0700 | [diff] [blame] | 305 |         "libprocinfo", | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 306 |     ], | 
 | 307 |  | 
 | 308 |     local_include_dirs: ["include"], | 
 | 309 | } | 
 | 310 |  | 
 | 311 | cc_binary { | 
 | 312 |     name: "tombstoned", | 
 | 313 |     srcs: [ | 
 | 314 |         "util.cpp", | 
 | 315 |         "tombstoned/intercept_manager.cpp", | 
 | 316 |         "tombstoned/tombstoned.cpp", | 
 | 317 |     ], | 
 | 318 |     defaults: ["debuggerd_defaults"], | 
 | 319 |  | 
| Narayan Kamath | a73df60 | 2017-05-24 15:07:25 +0100 | [diff] [blame] | 320 |     header_libs: ["libdebuggerd_common_headers"], | 
 | 321 |  | 
| Josh Gao | cbe70cb | 2016-10-18 18:17:52 -0700 | [diff] [blame] | 322 |     static_libs: [ | 
 | 323 |         "libbase", | 
 | 324 |         "libcutils", | 
 | 325 |         "libevent", | 
 | 326 |         "liblog", | 
 | 327 |     ], | 
 | 328 |  | 
| Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 329 |     init_rc: ["tombstoned/tombstoned.rc"], | 
| Josh Gao | 9c02dc5 | 2016-06-15 17:29:00 -0700 | [diff] [blame] | 330 | } | 
| Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 331 |  | 
 | 332 | subdirs = [ | 
 | 333 |     "crasher", | 
 | 334 | ] |