blob: feb80eab2bf9c1f2b02720cb8d2fd9e681ce9960 [file] [log] [blame]
Bob Badour187b7d12021-02-12 17:48:16 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "system_core_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["system_core_license"],
8}
9
Elliott Hughes0ba53592017-02-01 16:59:15 -080010cc_defaults {
11 name: "crasher-defaults",
12
Chih-Hung Hsieh122352d2017-10-02 15:20:07 -070013 cflags: [
Elliott Hughes0ba53592017-02-01 16:59:15 -080014 "-W",
15 "-Wall",
16 "-Wextra",
17 "-Wunused",
18 "-Werror",
19 "-O0",
20 "-fstack-protector-all",
21 "-Wno-free-nonheap-object",
22 "-Wno-date-time",
23 ],
24 srcs: ["crasher.cpp"],
25 arch: {
26 arm: {
27 srcs: ["arm/crashglue.S"],
28
Isaac Chen6dc21a52017-09-12 16:49:14 +080029 neon: {
Elliott Hughes0ba53592017-02-01 16:59:15 -080030 asflags: ["-DHAS_VFP_D32"],
31 },
32 },
33 arm64: {
34 srcs: ["arm64/crashglue.S"],
35 },
Elliott Hughes0ba53592017-02-01 16:59:15 -080036 x86: {
37 srcs: ["x86/crashglue.S"],
38 },
39 x86_64: {
40 srcs: ["x86_64/crashglue.S"],
41 },
42 },
43 compile_multilib: "both",
44}
45
46cc_binary {
47 name: "crasher",
48
49 defaults: ["crasher-defaults"],
Josh Gaoa48b41b2019-12-13 14:11:04 -080050 header_libs: ["bionic_libc_platform_headers"],
Elliott Hughes0ba53592017-02-01 16:59:15 -080051 shared_libs: [
52 "libbase",
53 "liblog",
Elliott Hughes12b71292017-03-02 19:01:20 -080054 "libseccomp_policy",
Elliott Hughes0ba53592017-02-01 16:59:15 -080055 ],
56 multilib: {
57 lib32: {
58 stem: "crasher",
59 },
60 lib64: {
61 stem: "crasher64",
62 },
63 },
64}
65
66cc_binary {
67 name: "static_crasher",
68
69 defaults: ["crasher-defaults"],
70 cppflags: ["-DSTATIC_CRASHER"],
71 static_executable: true,
Josh Gaoa48b41b2019-12-13 14:11:04 -080072 header_libs: ["bionic_libc_platform_headers"],
Elliott Hughes0ba53592017-02-01 16:59:15 -080073 static_libs: [
74 "libdebuggerd_handler",
75 "libbase",
76 "liblog",
Elliott Hughes12b71292017-03-02 19:01:20 -080077 "libseccomp_policy",
Elliott Hughes0ba53592017-02-01 16:59:15 -080078 ],
79 multilib: {
80 lib32: {
81 stem: "static_crasher",
82 },
83 lib64: {
84 stem: "static_crasher64",
85 },
86 },
87}