Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 1 | // |
| 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 | // |
| 16 | |
| 17 | cc_defaults { |
| 18 | name: "libunwindstack_flags", |
| 19 | |
| 20 | host_supported: true, |
| 21 | |
| 22 | cflags: [ |
| 23 | "-Wall", |
| 24 | "-Werror", |
| 25 | "-Wextra", |
| 26 | ], |
Christopher Ferris | 01d5037 | 2017-01-30 13:45:16 -0800 | [diff] [blame] | 27 | |
| 28 | target: { |
| 29 | darwin: { |
| 30 | enabled: false, |
| 31 | }, |
Dan Willemsen | 0f04867 | 2017-09-19 17:53:12 -0700 | [diff] [blame] | 32 | linux_bionic: { |
| 33 | enabled: true, |
| 34 | }, |
Christopher Ferris | 01d5037 | 2017-01-30 13:45:16 -0800 | [diff] [blame] | 35 | }, |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 36 | } |
| 37 | |
Christopher Ferris | f6d5431 | 2017-07-11 15:29:32 -0700 | [diff] [blame] | 38 | cc_library { |
| 39 | name: "libunwindstack", |
Christopher Ferris | 6f3981c | 2017-07-27 09:29:18 -0700 | [diff] [blame] | 40 | vendor_available: true, |
Justin Yun | 73bd4f0 | 2017-08-04 17:33:54 +0900 | [diff] [blame] | 41 | vndk: { |
| 42 | enabled: true, |
| 43 | support_system_process: true, |
| 44 | }, |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 45 | defaults: ["libunwindstack_flags"], |
Christopher Ferris | d226a51 | 2017-07-14 10:37:19 -0700 | [diff] [blame] | 46 | export_include_dirs: ["include"], |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 47 | |
| 48 | srcs: [ |
| 49 | "ArmExidx.cpp", |
Christopher Ferris | 8642fcb | 2017-04-24 11:14:39 -0700 | [diff] [blame] | 50 | "DwarfCfa.cpp", |
Christopher Ferris | c9dee84 | 2017-11-03 14:50:27 -0700 | [diff] [blame] | 51 | "DwarfEhFrameWithHdr.cpp", |
Christopher Ferris | 72a6fa6 | 2017-03-21 12:41:17 -0700 | [diff] [blame] | 52 | "DwarfMemory.cpp", |
Christopher Ferris | 55d22ef | 2017-04-04 10:41:31 -0700 | [diff] [blame] | 53 | "DwarfOp.cpp", |
Christopher Ferris | 53a3c9b | 2017-05-10 18:34:15 -0700 | [diff] [blame] | 54 | "DwarfSection.cpp", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 55 | "Elf.cpp", |
| 56 | "ElfInterface.cpp", |
| 57 | "ElfInterfaceArm.cpp", |
Christopher Ferris | 150db12 | 2017-12-20 18:49:01 -0800 | [diff] [blame] | 58 | "JitDebug.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 59 | "Log.cpp", |
Christopher Ferris | 0d7cf3e | 2017-04-19 15:42:19 -0700 | [diff] [blame] | 60 | "MapInfo.cpp", |
Christopher Ferris | 09385e7 | 2017-04-05 13:25:04 -0700 | [diff] [blame] | 61 | "Maps.cpp", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 62 | "Memory.cpp", |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 63 | "Regs.cpp", |
Christopher Ferris | d06001d | 2017-11-30 18:56:01 -0800 | [diff] [blame] | 64 | "RegsArm.cpp", |
| 65 | "RegsArm64.cpp", |
| 66 | "RegsX86.cpp", |
| 67 | "RegsX86_64.cpp", |
Douglas Leung | 61b1a1a | 2017-11-08 10:53:53 +0100 | [diff] [blame] | 68 | "RegsMips.cpp", |
| 69 | "RegsMips64.cpp", |
Christopher Ferris | b9de87f | 2017-09-20 13:37:24 -0700 | [diff] [blame] | 70 | "Unwinder.cpp", |
Christopher Ferris | e7ba4cc | 2017-04-04 14:06:58 -0700 | [diff] [blame] | 71 | "Symbols.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 72 | ], |
| 73 | |
Josh Gao | e22701e | 2017-10-23 14:25:08 -0700 | [diff] [blame] | 74 | cflags: [ |
| 75 | "-Wexit-time-destructors", |
| 76 | ], |
| 77 | |
Christopher Ferris | 5f11851 | 2017-09-01 11:17:16 -0700 | [diff] [blame] | 78 | target: { |
| 79 | // Always disable optimizations for host to make it easier to debug. |
Dan Willemsen | cd58088 | 2017-10-02 10:29:02 -0700 | [diff] [blame] | 80 | host: { |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 81 | cflags: [ |
| 82 | "-O0", |
| 83 | "-g", |
| 84 | ], |
Christopher Ferris | 5f11851 | 2017-09-01 11:17:16 -0700 | [diff] [blame] | 85 | }, |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 86 | vendor: { |
| 87 | cflags: ["-DNO_LIBDEXFILE_SUPPORT"], |
| 88 | exclude_static_libs: ["libunwindstack_dex"], |
| 89 | exclude_shared_libs: ["libdexfile"], |
| 90 | }, |
Christopher Ferris | 5f11851 | 2017-09-01 11:17:16 -0700 | [diff] [blame] | 91 | }, |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 92 | whole_static_libs: ["libunwindstack_dex"], |
Christopher Ferris | 5f11851 | 2017-09-01 11:17:16 -0700 | [diff] [blame] | 93 | |
Christopher Ferris | 2a25c4a | 2017-07-07 16:35:48 -0700 | [diff] [blame] | 94 | arch: { |
| 95 | x86: { |
| 96 | srcs: ["AsmGetRegsX86.S"], |
| 97 | }, |
| 98 | x86_64: { |
| 99 | srcs: ["AsmGetRegsX86_64.S"], |
| 100 | }, |
Douglas Leung | 61b1a1a | 2017-11-08 10:53:53 +0100 | [diff] [blame] | 101 | mips: { |
| 102 | srcs: ["AsmGetRegsMips.S"], |
| 103 | }, |
| 104 | mips64: { |
| 105 | srcs: ["AsmGetRegsMips64.S"], |
| 106 | }, |
Christopher Ferris | 2a25c4a | 2017-07-07 16:35:48 -0700 | [diff] [blame] | 107 | }, |
| 108 | |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 109 | shared_libs: [ |
| 110 | "libbase", |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 111 | "libdexfile", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 112 | "liblog", |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 113 | "liblzma", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 114 | ], |
| 115 | } |
| 116 | |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 117 | // Isolate the dex file processing into a separate library. Currently, |
| 118 | // it is necessary to add art include directories directly, which also |
| 119 | // adds the art elf.h file in the include path, overriding the system one. |
| 120 | // Work to isolate libdexfile is b/72216369. |
| 121 | cc_library_static { |
| 122 | name: "libunwindstack_dex", |
| 123 | vendor_available: false, |
| 124 | defaults: ["libunwindstack_flags"], |
| 125 | |
| 126 | cflags: [ |
| 127 | "-Wexit-time-destructors", |
| 128 | ], |
| 129 | |
| 130 | srcs: [ |
| 131 | "DexFile.cpp", |
| 132 | "DexFiles.cpp", |
| 133 | ], |
Christopher Ferris | 7747b60 | 2018-01-31 19:05:19 -0800 | [diff] [blame] | 134 | target: { |
| 135 | // Always disable optimizations for host to make it easier to debug. |
| 136 | host: { |
Elliott Hughes | dc699a2 | 2018-02-16 17:58:14 -0800 | [diff] [blame] | 137 | cflags: [ |
| 138 | "-O0", |
| 139 | "-g", |
| 140 | ], |
Christopher Ferris | 7747b60 | 2018-01-31 19:05:19 -0800 | [diff] [blame] | 141 | }, |
| 142 | }, |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 143 | |
| 144 | shared_libs: [ |
| 145 | "libbase", |
| 146 | "libdexfile", |
| 147 | ], |
| 148 | local_include_dirs: ["include"], |
| 149 | allow_undefined_symbols: true, |
| 150 | |
| 151 | // libdexfile will eventually properly export headers, for now include |
| 152 | // these directly. |
| 153 | include_dirs: [ |
| 154 | "art/runtime", |
| 155 | ], |
| 156 | } |
| 157 | |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 158 | //------------------------------------------------------------------------- |
| 159 | // Unit Tests |
| 160 | //------------------------------------------------------------------------- |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 161 | cc_test_library { |
| 162 | name: "libunwindstack_dex_test", |
| 163 | vendor_available: false, |
| 164 | defaults: ["libunwindstack_flags"], |
| 165 | |
Christopher Ferris | 7747b60 | 2018-01-31 19:05:19 -0800 | [diff] [blame] | 166 | shared: { |
| 167 | enabled: false, |
| 168 | }, |
| 169 | |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 170 | srcs: [ |
| 171 | "tests/DexFileTest.cpp", |
Christopher Ferris | 7747b60 | 2018-01-31 19:05:19 -0800 | [diff] [blame] | 172 | "tests/DexFilesTest.cpp", |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 173 | ], |
| 174 | local_include_dirs: ["include"], |
| 175 | allow_undefined_symbols: true, |
| 176 | |
| 177 | shared_libs: [ |
| 178 | "libbase", |
| 179 | "libunwindstack", |
David Sehr | 3a26c27 | 2018-02-13 16:29:01 -0800 | [diff] [blame] | 180 | "libdexfile", |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 181 | ], |
| 182 | |
| 183 | // libdexfile will eventually properly export headers, for now include |
| 184 | // these directly. |
| 185 | include_dirs: [ |
| 186 | "art/runtime", |
| 187 | ], |
| 188 | } |
| 189 | |
Christopher Ferris | f6d5431 | 2017-07-11 15:29:32 -0700 | [diff] [blame] | 190 | cc_test { |
| 191 | name: "libunwindstack_test", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 192 | defaults: ["libunwindstack_flags"], |
| 193 | |
| 194 | srcs: [ |
| 195 | "tests/ArmExidxDecodeTest.cpp", |
| 196 | "tests/ArmExidxExtractTest.cpp", |
Christopher Ferris | 8642fcb | 2017-04-24 11:14:39 -0700 | [diff] [blame] | 197 | "tests/DwarfCfaLogTest.cpp", |
| 198 | "tests/DwarfCfaTest.cpp", |
Christopher Ferris | 61d4097 | 2017-06-12 19:14:20 -0700 | [diff] [blame] | 199 | "tests/DwarfDebugFrameTest.cpp", |
| 200 | "tests/DwarfEhFrameTest.cpp", |
Christopher Ferris | c9dee84 | 2017-11-03 14:50:27 -0700 | [diff] [blame] | 201 | "tests/DwarfEhFrameWithHdrTest.cpp", |
Christopher Ferris | 72a6fa6 | 2017-03-21 12:41:17 -0700 | [diff] [blame] | 202 | "tests/DwarfMemoryTest.cpp", |
Christopher Ferris | 55d22ef | 2017-04-04 10:41:31 -0700 | [diff] [blame] | 203 | "tests/DwarfOpLogTest.cpp", |
| 204 | "tests/DwarfOpTest.cpp", |
Christopher Ferris | 53a3c9b | 2017-05-10 18:34:15 -0700 | [diff] [blame] | 205 | "tests/DwarfSectionTest.cpp", |
| 206 | "tests/DwarfSectionImplTest.cpp", |
Christopher Ferris | 0b79ae1 | 2018-01-25 12:15:56 -0800 | [diff] [blame] | 207 | "tests/ElfCacheTest.cpp", |
Christopher Ferris | f6f691b | 2017-09-25 19:23:07 -0700 | [diff] [blame] | 208 | "tests/ElfFake.cpp", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 209 | "tests/ElfInterfaceArmTest.cpp", |
| 210 | "tests/ElfInterfaceTest.cpp", |
| 211 | "tests/ElfTest.cpp", |
Christopher Ferris | 570b76f | 2017-06-30 17:18:16 -0700 | [diff] [blame] | 212 | "tests/ElfTestUtils.cpp", |
Christopher Ferris | 150db12 | 2017-12-20 18:49:01 -0800 | [diff] [blame] | 213 | "tests/JitDebugTest.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 214 | "tests/LogFake.cpp", |
Christopher Ferris | 570b76f | 2017-06-30 17:18:16 -0700 | [diff] [blame] | 215 | "tests/MapInfoGetElfTest.cpp", |
Christopher Ferris | b7de5f5 | 2017-12-01 21:37:37 -0800 | [diff] [blame] | 216 | "tests/MapInfoGetLoadBiasTest.cpp", |
Christopher Ferris | 09385e7 | 2017-04-05 13:25:04 -0700 | [diff] [blame] | 217 | "tests/MapsTest.cpp", |
Christopher Ferris | f6d5431 | 2017-07-11 15:29:32 -0700 | [diff] [blame] | 218 | "tests/MemoryBufferTest.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 219 | "tests/MemoryFake.cpp", |
| 220 | "tests/MemoryFileTest.cpp", |
| 221 | "tests/MemoryLocalTest.cpp", |
Christopher Ferris | f4e3ff6 | 2018-04-03 16:03:28 -0700 | [diff] [blame] | 222 | "tests/MemoryOfflineBufferTest.cpp", |
Josh Gao | f4a94c4 | 2017-11-13 16:16:27 -0800 | [diff] [blame] | 223 | "tests/MemoryOfflineTest.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 224 | "tests/MemoryRangeTest.cpp", |
| 225 | "tests/MemoryRemoteTest.cpp", |
Christopher Ferris | 9744fb2 | 2017-07-07 12:18:16 -0700 | [diff] [blame] | 226 | "tests/MemoryTest.cpp", |
Josh Gao | 6f580d8 | 2017-09-22 12:57:15 -0700 | [diff] [blame] | 227 | "tests/RegsIterateTest.cpp", |
Christopher Ferris | eb4a6db | 2017-07-19 12:37:45 -0700 | [diff] [blame] | 228 | "tests/RegsStepIfSignalHandlerTest.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 229 | "tests/RegsTest.cpp", |
Christopher Ferris | e7ba4cc | 2017-04-04 14:06:58 -0700 | [diff] [blame] | 230 | "tests/SymbolsTest.cpp", |
Christopher Ferris | c3d79f7 | 2017-11-28 19:14:54 -0800 | [diff] [blame] | 231 | "tests/UnwindOfflineTest.cpp", |
Christopher Ferris | 2a25c4a | 2017-07-07 16:35:48 -0700 | [diff] [blame] | 232 | "tests/UnwindTest.cpp", |
Christopher Ferris | f6f691b | 2017-09-25 19:23:07 -0700 | [diff] [blame] | 233 | "tests/UnwinderTest.cpp", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 234 | ], |
| 235 | |
| 236 | cflags: [ |
| 237 | "-O0", |
| 238 | "-g", |
| 239 | ], |
| 240 | |
| 241 | shared_libs: [ |
| 242 | "libbase", |
| 243 | "liblog", |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 244 | "liblzma", |
Christopher Ferris | f6d5431 | 2017-07-11 15:29:32 -0700 | [diff] [blame] | 245 | "libunwindstack", |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 246 | ], |
| 247 | |
Christopher Ferris | 53a3c9b | 2017-05-10 18:34:15 -0700 | [diff] [blame] | 248 | static_libs: [ |
| 249 | "libgmock", |
| 250 | ], |
| 251 | |
Christopher Ferris | d70ea5e | 2018-01-30 19:47:24 -0800 | [diff] [blame] | 252 | whole_static_libs: ["libunwindstack_dex_test"], |
| 253 | |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 254 | data: [ |
Christopher Ferris | 570b76f | 2017-06-30 17:18:16 -0700 | [diff] [blame] | 255 | "tests/files/elf32.xz", |
| 256 | "tests/files/elf64.xz", |
Yabin Cui | 414df3e | 2018-03-14 18:16:22 -0700 | [diff] [blame] | 257 | "tests/files/offline/art_quick_osr_stub_arm/*", |
Christopher Ferris | 1a141a0 | 2018-01-24 08:52:47 -0800 | [diff] [blame] | 258 | "tests/files/offline/bad_eh_frame_hdr_arm64/*", |
| 259 | "tests/files/offline/debug_frame_first_x86/*", |
Christopher Ferris | e37e2d0 | 2018-02-09 15:57:39 -0800 | [diff] [blame] | 260 | "tests/files/offline/eh_frame_hdr_begin_x86_64/*", |
Christopher Ferris | 5f5cb23 | 2018-02-05 13:07:06 -0800 | [diff] [blame] | 261 | "tests/files/offline/jit_debug_arm/*", |
| 262 | "tests/files/offline/jit_debug_x86/*", |
| 263 | "tests/files/offline/gnu_debugdata_arm/*", |
| 264 | "tests/files/offline/straddle_arm/*", |
Christopher Ferris | c3d79f7 | 2017-11-28 19:14:54 -0800 | [diff] [blame] | 265 | "tests/files/offline/straddle_arm64/*", |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 266 | ], |
Christopher Ferris | 723cf9b | 2017-01-19 20:08:48 -0800 | [diff] [blame] | 267 | } |
| 268 | |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 269 | //------------------------------------------------------------------------- |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 270 | // Tools |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 271 | //------------------------------------------------------------------------- |
| 272 | cc_defaults { |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 273 | name: "libunwindstack_tools", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 274 | defaults: ["libunwindstack_flags"], |
| 275 | |
| 276 | shared_libs: [ |
| 277 | "libunwindstack", |
| 278 | "libbase", |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 279 | "liblzma", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 280 | ], |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 281 | } |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 282 | |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 283 | cc_binary { |
| 284 | name: "unwind", |
| 285 | defaults: ["libunwindstack_tools"], |
| 286 | |
| 287 | srcs: [ |
| 288 | "tools/unwind.cpp", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 289 | ], |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 290 | } |
| 291 | |
| 292 | cc_binary { |
| 293 | name: "unwind_info", |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 294 | defaults: ["libunwindstack_tools"], |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 295 | |
| 296 | srcs: [ |
Christopher Ferris | b5d7a87 | 2017-07-12 15:40:52 -0700 | [diff] [blame] | 297 | "tools/unwind_info.cpp", |
| 298 | ], |
| 299 | } |
| 300 | |
| 301 | cc_binary { |
| 302 | name: "unwind_symbols", |
| 303 | defaults: ["libunwindstack_tools"], |
| 304 | |
| 305 | srcs: [ |
| 306 | "tools/unwind_symbols.cpp", |
Christopher Ferris | 3958f80 | 2017-02-01 15:44:40 -0800 | [diff] [blame] | 307 | ], |
| 308 | } |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 309 | |
Christopher Ferris | 3dfd2ae | 2017-12-15 20:00:59 -0800 | [diff] [blame] | 310 | cc_binary { |
| 311 | name: "unwind_for_offline", |
| 312 | defaults: ["libunwindstack_tools"], |
| 313 | |
| 314 | srcs: [ |
| 315 | "tools/unwind_for_offline.cpp", |
| 316 | ], |
| 317 | } |
| 318 | |
Christopher Ferris | e37e2d0 | 2018-02-09 15:57:39 -0800 | [diff] [blame] | 319 | cc_binary { |
| 320 | name: "unwind_reg_info", |
| 321 | defaults: ["libunwindstack_tools"], |
| 322 | |
| 323 | srcs: [ |
| 324 | "tools/unwind_reg_info.cpp", |
| 325 | ], |
| 326 | } |
| 327 | |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 328 | // Generates the elf data for use in the tests for .gnu_debugdata frames. |
| 329 | // Once these files are generated, use the xz command to compress the data. |
| 330 | cc_binary_host { |
| 331 | name: "gen_gnudebugdata", |
Christopher Ferris | f6d5431 | 2017-07-11 15:29:32 -0700 | [diff] [blame] | 332 | defaults: ["libunwindstack_flags"], |
Christopher Ferris | bae69f1 | 2017-06-28 14:51:54 -0700 | [diff] [blame] | 333 | |
| 334 | srcs: [ |
| 335 | "tests/GenGnuDebugdata.cpp", |
| 336 | ], |
| 337 | } |