blob: 7770b13500815f61807e3e5ee8dba45ecfb7d343 [file] [log] [blame]
Christopher Ferris723cf9b2017-01-19 20:08:48 -08001//
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
17cc_defaults {
18 name: "libunwindstack_flags",
19
20 host_supported: true,
21
22 cflags: [
23 "-Wall",
24 "-Werror",
25 "-Wextra",
26 ],
Christopher Ferris01d50372017-01-30 13:45:16 -080027
28 target: {
29 darwin: {
30 enabled: false,
31 },
Dan Willemsen0f048672017-09-19 17:53:12 -070032 linux_bionic: {
33 enabled: true,
34 },
Christopher Ferris01d50372017-01-30 13:45:16 -080035 },
Christopher Ferris723cf9b2017-01-19 20:08:48 -080036}
37
Martin Stjernholma2cc8932019-10-23 21:32:43 +010038cc_defaults {
39 name: "libunwindstack_defaults",
Christopher Ferris723cf9b2017-01-19 20:08:48 -080040 defaults: ["libunwindstack_flags"],
Christopher Ferrisd226a512017-07-14 10:37:19 -070041 export_include_dirs: ["include"],
Christopher Ferris723cf9b2017-01-19 20:08:48 -080042
43 srcs: [
44 "ArmExidx.cpp",
David Srbeckyb9cc4fb2019-04-05 18:23:32 +000045 "DexFiles.cpp",
Christopher Ferris8642fcb2017-04-24 11:14:39 -070046 "DwarfCfa.cpp",
Christopher Ferrisc9dee842017-11-03 14:50:27 -070047 "DwarfEhFrameWithHdr.cpp",
Christopher Ferris72a6fa62017-03-21 12:41:17 -070048 "DwarfMemory.cpp",
Christopher Ferris55d22ef2017-04-04 10:41:31 -070049 "DwarfOp.cpp",
Christopher Ferris53a3c9b2017-05-10 18:34:15 -070050 "DwarfSection.cpp",
Christopher Ferris3958f802017-02-01 15:44:40 -080051 "Elf.cpp",
52 "ElfInterface.cpp",
53 "ElfInterfaceArm.cpp",
Christopher Ferris56d0e072018-10-17 10:57:53 -070054 "Global.cpp",
Christopher Ferris150db122017-12-20 18:49:01 -080055 "JitDebug.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -080056 "Log.cpp",
Christopher Ferris0d7cf3e2017-04-19 15:42:19 -070057 "MapInfo.cpp",
Christopher Ferris09385e72017-04-05 13:25:04 -070058 "Maps.cpp",
Christopher Ferris3958f802017-02-01 15:44:40 -080059 "Memory.cpp",
Peter Collingbournec71e0a62020-04-07 14:04:46 -070060 "MemoryMte.cpp",
Christopher Ferrisca9a54b2018-04-05 11:15:00 -070061 "LocalUnwinder.cpp",
Christopher Ferrisbae69f12017-06-28 14:51:54 -070062 "Regs.cpp",
Christopher Ferrisd06001d2017-11-30 18:56:01 -080063 "RegsArm.cpp",
64 "RegsArm64.cpp",
65 "RegsX86.cpp",
66 "RegsX86_64.cpp",
Douglas Leung61b1a1a2017-11-08 10:53:53 +010067 "RegsMips.cpp",
68 "RegsMips64.cpp",
Christopher Ferrisb9de87f2017-09-20 13:37:24 -070069 "Unwinder.cpp",
Christopher Ferrise7ba4cc2017-04-04 14:06:58 -070070 "Symbols.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -080071 ],
72
Josh Gaoe22701e2017-10-23 14:25:08 -070073 cflags: [
74 "-Wexit-time-destructors",
75 ],
76
Christopher Ferris5f118512017-09-01 11:17:16 -070077 target: {
Dan Willemsencd580882017-10-02 10:29:02 -070078 host: {
Martin Stjernholm4a27a812020-04-23 16:49:12 +010079 // Always disable optimizations for host to make it easier to debug.
Elliott Hughesdc699a22018-02-16 17:58:14 -080080 cflags: [
81 "-O0",
82 "-g",
83 ],
Christopher Ferris5f118512017-09-01 11:17:16 -070084 },
Martin Stjernholm4a27a812020-04-23 16:49:12 +010085 android: {
86 header_libs: ["bionic_libc_platform_headers"],
87 product_variables: {
88 experimental_mte: {
89 cflags: ["-DANDROID_EXPERIMENTAL_MTE"],
90 },
91 },
92 },
93 linux_bionic: {
94 header_libs: ["bionic_libc_platform_headers"],
95 product_variables: {
96 experimental_mte: {
97 cflags: ["-DANDROID_EXPERIMENTAL_MTE"],
98 },
99 },
100 },
Christopher Ferris5f118512017-09-01 11:17:16 -0700101 },
102
Christopher Ferris2a25c4a2017-07-07 16:35:48 -0700103 arch: {
104 x86: {
105 srcs: ["AsmGetRegsX86.S"],
106 },
107 x86_64: {
108 srcs: ["AsmGetRegsX86_64.S"],
109 },
110 },
111
Yabin Cui3841acc2018-05-10 17:19:12 -0700112 static_libs: [
113 "libprocinfo",
114 ],
115
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800116 shared_libs: [
117 "libbase",
118 "liblog",
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700119 "liblzma",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800120 ],
121}
122
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100123cc_library {
124 name: "libunwindstack",
125 vendor_available: true,
126 recovery_available: true,
Victor Khimenko7428c522020-06-18 22:01:13 +0200127 // TODO(b/153609531): remove when no longer needed.
128 native_bridge_supported: true,
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100129 vndk: {
130 enabled: true,
131 support_system_process: true,
132 },
133 defaults: ["libunwindstack_defaults"],
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100134 srcs: ["DexFile.cpp"],
135 cflags: ["-DDEXFILE_SUPPORT"],
136 shared_libs: ["libdexfile_support"],
137
138 target: {
139 vendor: {
140 cflags: ["-UDEXFILE_SUPPORT"],
141 exclude_srcs: ["DexFile.cpp"],
142 exclude_shared_libs: ["libdexfile_support"],
143 },
144 recovery: {
145 cflags: ["-UDEXFILE_SUPPORT"],
146 exclude_srcs: ["DexFile.cpp"],
147 exclude_shared_libs: ["libdexfile_support"],
148 },
Victor Khimenko7428c522020-06-18 22:01:13 +0200149 native_bridge: {
150 cflags: ["-UDEXFILE_SUPPORT"],
151 exclude_srcs: ["DexFile.cpp"],
152 exclude_shared_libs: ["libdexfile_support"],
153 },
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100154 },
Jiyong Park16a932a2020-04-28 18:22:23 +0900155
156 apex_available: [
157 "//apex_available:platform",
158 "com.android.art.debug",
159 "com.android.art.release",
160 ],
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100161}
162
163// Static library without DEX support to avoid dependencies on the ART APEX.
164cc_library_static {
165 name: "libunwindstack_no_dex",
166 recovery_available: true,
167 defaults: ["libunwindstack_defaults"],
168
169 visibility: [
Christopher Ferrisb05c4722020-09-23 15:51:46 -0700170 "//external/gwp_asan",
Martin Stjernholma2cc8932019-10-23 21:32:43 +0100171 "//system/core/debuggerd",
172 "//system/core/init",
173 "//system/core/libbacktrace",
174 ],
175 apex_available: [
176 "//apex_available:platform",
177 "com.android.runtime",
178 ],
179}
180
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800181//-------------------------------------------------------------------------
182// Unit Tests
183//-------------------------------------------------------------------------
Christopher Ferrisca9a54b2018-04-05 11:15:00 -0700184cc_test_library {
185 name: "libunwindstack_local",
186 defaults: ["libunwindstack_flags"],
187 srcs: ["tests/TestLocal.cpp"],
188
189 cflags: [
190 "-O0",
191 "-g",
192 ],
193
194 shared_libs: [
195 "libunwindstack",
196 ],
Christopher Ferris7aba5142019-09-03 10:18:42 -0700197 relative_install_path: "libunwindstack_test",
Christopher Ferrisca9a54b2018-04-05 11:15:00 -0700198}
199
Christopher Ferris7aba5142019-09-03 10:18:42 -0700200cc_defaults {
201 name: "libunwindstack_testlib_flags",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800202 defaults: ["libunwindstack_flags"],
203
204 srcs: [
205 "tests/ArmExidxDecodeTest.cpp",
206 "tests/ArmExidxExtractTest.cpp",
David Srbecky18121dc2018-03-12 19:54:22 +0000207 "tests/DexFileTest.cpp",
208 "tests/DexFilesTest.cpp",
Christopher Ferris8642fcb2017-04-24 11:14:39 -0700209 "tests/DwarfCfaLogTest.cpp",
210 "tests/DwarfCfaTest.cpp",
Christopher Ferris61d40972017-06-12 19:14:20 -0700211 "tests/DwarfDebugFrameTest.cpp",
212 "tests/DwarfEhFrameTest.cpp",
Christopher Ferrisc9dee842017-11-03 14:50:27 -0700213 "tests/DwarfEhFrameWithHdrTest.cpp",
Christopher Ferris72a6fa62017-03-21 12:41:17 -0700214 "tests/DwarfMemoryTest.cpp",
Christopher Ferris55d22ef2017-04-04 10:41:31 -0700215 "tests/DwarfOpLogTest.cpp",
216 "tests/DwarfOpTest.cpp",
Christopher Ferris53a3c9b2017-05-10 18:34:15 -0700217 "tests/DwarfSectionTest.cpp",
218 "tests/DwarfSectionImplTest.cpp",
Christopher Ferris0b79ae12018-01-25 12:15:56 -0800219 "tests/ElfCacheTest.cpp",
Christopher Ferrisf6f691b2017-09-25 19:23:07 -0700220 "tests/ElfFake.cpp",
Christopher Ferris3958f802017-02-01 15:44:40 -0800221 "tests/ElfInterfaceArmTest.cpp",
222 "tests/ElfInterfaceTest.cpp",
223 "tests/ElfTest.cpp",
Christopher Ferris570b76f2017-06-30 17:18:16 -0700224 "tests/ElfTestUtils.cpp",
Christopher Ferrisea8e7d12019-07-17 15:47:32 -0700225 "tests/IsolatedSettings.cpp",
Christopher Ferris150db122017-12-20 18:49:01 -0800226 "tests/JitDebugTest.cpp",
David Srbeckyf1932fd2019-09-16 22:36:55 +0100227 "tests/LocalUpdatableMapsTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800228 "tests/LogFake.cpp",
Christopher Ferris9d5712c2018-10-01 21:01:09 -0700229 "tests/MapInfoCreateMemoryTest.cpp",
Christopher Ferrisbf373ed2019-01-16 17:23:39 -0800230 "tests/MapInfoGetBuildIDTest.cpp",
Christopher Ferris570b76f2017-06-30 17:18:16 -0700231 "tests/MapInfoGetElfTest.cpp",
Christopher Ferrisb7de5f52017-12-01 21:37:37 -0800232 "tests/MapInfoGetLoadBiasTest.cpp",
Christopher Ferriseb0772f2018-12-05 15:57:02 -0800233 "tests/MapInfoTest.cpp",
Christopher Ferris09385e72017-04-05 13:25:04 -0700234 "tests/MapsTest.cpp",
Christopher Ferrisf6d54312017-07-11 15:29:32 -0700235 "tests/MemoryBufferTest.cpp",
Christopher Ferrisef640102018-11-14 15:36:45 -0800236 "tests/MemoryCacheTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800237 "tests/MemoryFake.cpp",
238 "tests/MemoryFileTest.cpp",
239 "tests/MemoryLocalTest.cpp",
Christopher Ferris6633b0c2018-04-03 16:03:28 -0700240 "tests/MemoryOfflineBufferTest.cpp",
Josh Gaof4a94c42017-11-13 16:16:27 -0800241 "tests/MemoryOfflineTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800242 "tests/MemoryRangeTest.cpp",
Christopher Ferris9d5712c2018-10-01 21:01:09 -0700243 "tests/MemoryRangesTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800244 "tests/MemoryRemoteTest.cpp",
Christopher Ferris9744fb22017-07-07 12:18:16 -0700245 "tests/MemoryTest.cpp",
Peter Collingbournec71e0a62020-04-07 14:04:46 -0700246 "tests/MemoryMteTest.cpp",
Christopher Ferris27866082018-08-02 15:21:37 -0700247 "tests/RegsInfoTest.cpp",
Josh Gao6f580d82017-09-22 12:57:15 -0700248 "tests/RegsIterateTest.cpp",
Christopher Ferriseb4a6db2017-07-19 12:37:45 -0700249 "tests/RegsStepIfSignalHandlerTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800250 "tests/RegsTest.cpp",
Christopher Ferrise7ba4cc2017-04-04 14:06:58 -0700251 "tests/SymbolsTest.cpp",
Christopher Ferrise1f7a632019-01-24 12:22:03 -0800252 "tests/TestUtils.cpp",
Christopher Ferrisc3d79f72017-11-28 19:14:54 -0800253 "tests/UnwindOfflineTest.cpp",
Christopher Ferris2a25c4a2017-07-07 16:35:48 -0700254 "tests/UnwindTest.cpp",
Christopher Ferrisf6f691b2017-09-25 19:23:07 -0700255 "tests/UnwinderTest.cpp",
Christopher Ferris71382322019-08-30 14:02:19 -0700256 "tests/VerifyBionicTerminationTest.cpp",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800257 ],
258
259 cflags: [
260 "-O0",
261 "-g",
262 ],
263
264 shared_libs: [
265 "libbase",
266 "liblog",
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700267 "liblzma",
Christopher Ferrisf6d54312017-07-11 15:29:32 -0700268 "libunwindstack",
Martin Stjernholmbb4f2b42018-12-19 14:28:33 +0000269 "libdexfile_support",
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800270 ],
271
Christopher Ferris53a3c9b2017-05-10 18:34:15 -0700272 static_libs: [
273 "libgmock",
274 ],
275
Elliott Hughes40fdf3f2018-04-27 16:12:06 -0700276 test_suites: ["device-tests"],
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700277 data: [
Christopher Ferris570b76f2017-06-30 17:18:16 -0700278 "tests/files/elf32.xz",
279 "tests/files/elf64.xz",
Yabin Cui11e96fe2018-03-14 18:16:22 -0700280 "tests/files/offline/art_quick_osr_stub_arm/*",
Christopher Ferris1a141a02018-01-24 08:52:47 -0800281 "tests/files/offline/bad_eh_frame_hdr_arm64/*",
282 "tests/files/offline/debug_frame_first_x86/*",
Christopher Ferris4cc36d22018-06-06 14:47:31 -0700283 "tests/files/offline/debug_frame_load_bias_arm/*",
Christopher Ferris5838e532019-10-21 18:59:42 -0700284 "tests/files/offline/eh_frame_bias_x86/*",
Christopher Ferrise37e2d02018-02-09 15:57:39 -0800285 "tests/files/offline/eh_frame_hdr_begin_x86_64/*",
Christopher Ferris0f40a052020-01-22 12:17:06 -0800286 "tests/files/offline/empty_arm64/*",
Christopher Ferrisd49499d2019-06-10 18:37:32 -0700287 "tests/files/offline/invalid_elf_offset_arm/*",
Christopher Ferris5f5cb232018-02-05 13:07:06 -0800288 "tests/files/offline/jit_debug_arm/*",
289 "tests/files/offline/jit_debug_x86/*",
Yabin Cuid5b22c52018-02-22 17:11:31 -0800290 "tests/files/offline/jit_map_arm/*",
Christopher Ferris5f5cb232018-02-05 13:07:06 -0800291 "tests/files/offline/gnu_debugdata_arm/*",
Christopher Ferris819f1312019-10-03 13:35:48 -0700292 "tests/files/offline/load_bias_different_section_bias_arm64/*",
Florian Mayer249c90f2019-07-05 16:48:04 +0100293 "tests/files/offline/load_bias_ro_rx_x86_64/*",
Christopher Ferris239425b2018-05-17 18:37:38 -0700294 "tests/files/offline/offset_arm/*",
Christopher Ferris01040b12018-12-10 11:13:23 -0800295 "tests/files/offline/shared_lib_in_apk_arm64/*",
296 "tests/files/offline/shared_lib_in_apk_memory_only_arm64/*",
Christopher Ferris86f2d9d2019-03-12 15:17:36 -0700297 "tests/files/offline/shared_lib_in_apk_single_map_arm64/*",
Christopher Ferrisf0c82e72019-12-04 13:37:11 -0800298 "tests/files/offline/signal_load_bias_arm/*",
Ryan Prichard9b8f5452020-09-30 18:31:05 -0700299 "tests/files/offline/signal_fde_x86/*",
300 "tests/files/offline/signal_fde_x86_64/*",
Christopher Ferris5f5cb232018-02-05 13:07:06 -0800301 "tests/files/offline/straddle_arm/*",
Christopher Ferrisc3d79f72017-11-28 19:14:54 -0800302 "tests/files/offline/straddle_arm64/*",
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700303 ],
Peter Collingbournec71e0a62020-04-07 14:04:46 -0700304
Martin Stjernholm4a27a812020-04-23 16:49:12 +0100305 target: {
306 android: {
307 header_libs: ["bionic_libc_platform_headers"],
308 product_variables: {
309 experimental_mte: {
310 cflags: ["-DANDROID_EXPERIMENTAL_MTE"],
311 },
312 },
313 },
314 linux_bionic: {
315 header_libs: ["bionic_libc_platform_headers"],
316 product_variables: {
317 experimental_mte: {
318 cflags: ["-DANDROID_EXPERIMENTAL_MTE"],
319 },
320 },
Peter Collingbournec71e0a62020-04-07 14:04:46 -0700321 },
322 },
Christopher Ferris7aba5142019-09-03 10:18:42 -0700323}
324
325cc_test {
326 name: "libunwindstack_test",
327 defaults: ["libunwindstack_testlib_flags"],
328 isolated: true,
329
330 srcs: [
331 "tests/LocalUnwinderTest.cpp",
332 ],
Elliott Hughesf6d75942018-06-06 10:48:41 -0700333 required: [
334 "libunwindstack_local",
335 ],
Christopher Ferris723cf9b2017-01-19 20:08:48 -0800336}
337
Christopher Ferris7aba5142019-09-03 10:18:42 -0700338// Skip LocalUnwinderTest until atest understands required properly.
339cc_test {
340 name: "libunwindstack_unit_test",
341 defaults: ["libunwindstack_testlib_flags"],
342 isolated: true,
343}
344
Christopher Ferris3958f802017-02-01 15:44:40 -0800345//-------------------------------------------------------------------------
Dylan Katzb62e3242020-05-28 14:23:10 -0700346// Fuzzers
347//-------------------------------------------------------------------------
348cc_defaults {
349 name: "libunwindstack_fuzz_defaults",
350 host_supported: true,
351 defaults: ["libunwindstack_flags"],
352 cflags: [
353 "-Wno-exit-time-destructors",
354 "-g",
355 ],
356 shared_libs: [
357 "libbase",
358 "liblog",
359 "liblzma",
360 "libunwindstack",
361 "libdexfile_support",
362 ],
363}
364
365cc_fuzz {
366 name: "libunwindstack_fuzz_unwinder",
367 defaults: ["libunwindstack_fuzz_defaults"],
368 srcs: [
369 "tests/MemoryFake.cpp",
370 "tests/ElfFake.cpp",
371 "tests/fuzz/UnwinderComponentCreator.cpp",
372 "tests/fuzz/UnwinderFuzz.cpp",
373 ],
374}
375
376//-------------------------------------------------------------------------
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700377// Tools
Christopher Ferris3958f802017-02-01 15:44:40 -0800378//-------------------------------------------------------------------------
379cc_defaults {
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700380 name: "libunwindstack_tools",
Christopher Ferris3958f802017-02-01 15:44:40 -0800381 defaults: ["libunwindstack_flags"],
382
383 shared_libs: [
384 "libunwindstack",
385 "libbase",
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700386 "liblzma",
Christopher Ferris3958f802017-02-01 15:44:40 -0800387 ],
Andreas Gampe8ccbe422018-05-21 08:24:20 -0700388 target: {
389 // Always disable optimizations for host to make it easier to debug.
390 host: {
391 cflags: [
392 "-O0",
393 "-g",
394 ],
395 },
396 },
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700397}
Christopher Ferris3958f802017-02-01 15:44:40 -0800398
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700399cc_binary {
400 name: "unwind",
401 defaults: ["libunwindstack_tools"],
402
403 srcs: [
404 "tools/unwind.cpp",
Christopher Ferris3958f802017-02-01 15:44:40 -0800405 ],
Christopher Ferris3958f802017-02-01 15:44:40 -0800406}
407
408cc_binary {
409 name: "unwind_info",
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700410 defaults: ["libunwindstack_tools"],
Christopher Ferris3958f802017-02-01 15:44:40 -0800411
412 srcs: [
Christopher Ferrisb5d7a872017-07-12 15:40:52 -0700413 "tools/unwind_info.cpp",
414 ],
415}
416
417cc_binary {
418 name: "unwind_symbols",
419 defaults: ["libunwindstack_tools"],
420
421 srcs: [
422 "tools/unwind_symbols.cpp",
Christopher Ferris3958f802017-02-01 15:44:40 -0800423 ],
424}
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700425
Christopher Ferris3dfd2ae2017-12-15 20:00:59 -0800426cc_binary {
427 name: "unwind_for_offline",
428 defaults: ["libunwindstack_tools"],
429
430 srcs: [
431 "tools/unwind_for_offline.cpp",
432 ],
433}
434
Christopher Ferrise37e2d02018-02-09 15:57:39 -0800435cc_binary {
436 name: "unwind_reg_info",
437 defaults: ["libunwindstack_tools"],
438
439 srcs: [
440 "tools/unwind_reg_info.cpp",
441 ],
442}
443
Christopher Ferrisef640102018-11-14 15:36:45 -0800444//-------------------------------------------------------------------------
445// Benchmarks
446//-------------------------------------------------------------------------
447cc_benchmark {
448 name: "unwind_benchmarks",
449 host_supported: true,
450 defaults: ["libunwindstack_flags"],
451
452 // Disable optimizations so that all of the calls are not optimized away.
453 cflags: [
454 "-O0",
455 ],
456
457 srcs: [
458 "benchmarks/unwind_benchmarks.cpp",
David Srbeckya17c2b62020-04-14 16:59:27 +0100459 "benchmarks/ElfBenchmark.cpp",
Christopher Ferris175747f2020-05-04 13:46:09 -0700460 "benchmarks/MapsBenchmark.cpp",
Christopher Ferrisa9e19092020-04-14 11:59:15 -0700461 "benchmarks/SymbolBenchmark.cpp",
David Srbeckya17c2b62020-04-14 16:59:27 +0100462 "benchmarks/Utils.cpp",
Christopher Ferrisa9e19092020-04-14 11:59:15 -0700463 ],
464
465 data: [
466 "benchmarks/files/*",
Christopher Ferrisef640102018-11-14 15:36:45 -0800467 ],
468
469 shared_libs: [
Christopher Ferrisbf373ed2019-01-16 17:23:39 -0800470 "libbase",
Christopher Ferrisef640102018-11-14 15:36:45 -0800471 "libunwindstack",
472 ],
Christopher Ferrisa9e19092020-04-14 11:59:15 -0700473
474 target: {
475 android: {
476 static_libs: [
477 "libmeminfo",
478 "libprocinfo",
479 ],
480 },
481 },
Christopher Ferrisef640102018-11-14 15:36:45 -0800482}
483
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700484// Generates the elf data for use in the tests for .gnu_debugdata frames.
485// Once these files are generated, use the xz command to compress the data.
486cc_binary_host {
487 name: "gen_gnudebugdata",
Christopher Ferrisf6d54312017-07-11 15:29:32 -0700488 defaults: ["libunwindstack_flags"],
Christopher Ferrisbae69f12017-06-28 14:51:54 -0700489
490 srcs: [
491 "tests/GenGnuDebugdata.cpp",
492 ],
493}
Dylan Katzb62e3242020-05-28 14:23:10 -0700494