blob: 3af806b43151d0c56b83eeda00a0d0a6abc39b3c [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Elliott Hughes0ba53592017-02-01 16:59:15 -08005cc_defaults {
6 name: "crasher-defaults",
7
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -07008 cflags: [
Elliott Hughes0ba53592017-02-01 16:59:15 -08009 "-W",
10 "-Wall",
11 "-Wextra",
12 "-Wunused",
13 "-Werror",
14 "-O0",
15 "-fstack-protector-all",
Elliott Hughes0ba53592017-02-01 16:59:15 -080016 "-Wno-date-time",
17 ],
18 srcs: ["crasher.cpp"],
19 arch: {
20 arm: {
21 srcs: ["arm/crashglue.S"],
Elliott Hughes0ba53592017-02-01 16:59:15 -080022 },
23 arm64: {
24 srcs: ["arm64/crashglue.S"],
25 },
Xia Lifangb13a10b2022-10-12 22:27:54 +080026 riscv64: {
27 srcs: ["riscv64/crashglue.S"],
28 },
Elliott Hughes0ba53592017-02-01 16:59:15 -080029 x86: {
30 srcs: ["x86/crashglue.S"],
31 },
32 x86_64: {
33 srcs: ["x86_64/crashglue.S"],
34 },
35 },
36 compile_multilib: "both",
37}
38
39cc_binary {
40 name: "crasher",
41
42 defaults: ["crasher-defaults"],
Josh Gaoa48b41b2019-12-13 14:11:04 -080043 header_libs: ["bionic_libc_platform_headers"],
Elliott Hughes0ba53592017-02-01 16:59:15 -080044 shared_libs: [
45 "libbase",
46 "liblog",
Christopher Ferris4f600fe2022-04-13 14:55:36 -070047 ],
48 static_libs: [
Elliott Hughes12b71292017-03-02 19:01:20 -080049 "libseccomp_policy",
Elliott Hughes0ba53592017-02-01 16:59:15 -080050 ],
51 multilib: {
52 lib32: {
53 stem: "crasher",
54 },
55 lib64: {
56 stem: "crasher64",
57 },
58 },
59}
60
61cc_binary {
62 name: "static_crasher",
63
64 defaults: ["crasher-defaults"],
65 cppflags: ["-DSTATIC_CRASHER"],
66 static_executable: true,
Josh Gaoa48b41b2019-12-13 14:11:04 -080067 header_libs: ["bionic_libc_platform_headers"],
Elliott Hughes0ba53592017-02-01 16:59:15 -080068 static_libs: [
69 "libdebuggerd_handler",
70 "libbase",
71 "liblog",
Elliott Hughes12b71292017-03-02 19:01:20 -080072 "libseccomp_policy",
Elliott Hughes0ba53592017-02-01 16:59:15 -080073 ],
74 multilib: {
75 lib32: {
76 stem: "static_crasher",
77 },
78 lib64: {
79 stem: "static_crasher64",
80 },
81 },
82}