Bob Badour | 187b7d1 | 2021-02-12 17:48:16 -0800 | [diff] [blame^] | 1 | package { |
| 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 Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 10 | cc_defaults { |
| 11 | name: "crasher-defaults", |
| 12 | |
Chih-Hung Hsieh | 122352d | 2017-10-02 15:20:07 -0700 | [diff] [blame] | 13 | cflags: [ |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 14 | "-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 Chen | 6dc21a5 | 2017-09-12 16:49:14 +0800 | [diff] [blame] | 29 | neon: { |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 30 | asflags: ["-DHAS_VFP_D32"], |
| 31 | }, |
| 32 | }, |
| 33 | arm64: { |
| 34 | srcs: ["arm64/crashglue.S"], |
| 35 | }, |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 36 | x86: { |
| 37 | srcs: ["x86/crashglue.S"], |
| 38 | }, |
| 39 | x86_64: { |
| 40 | srcs: ["x86_64/crashglue.S"], |
| 41 | }, |
| 42 | }, |
| 43 | compile_multilib: "both", |
| 44 | } |
| 45 | |
| 46 | cc_binary { |
| 47 | name: "crasher", |
| 48 | |
| 49 | defaults: ["crasher-defaults"], |
Josh Gao | a48b41b | 2019-12-13 14:11:04 -0800 | [diff] [blame] | 50 | header_libs: ["bionic_libc_platform_headers"], |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 51 | shared_libs: [ |
| 52 | "libbase", |
| 53 | "liblog", |
Elliott Hughes | 12b7129 | 2017-03-02 19:01:20 -0800 | [diff] [blame] | 54 | "libseccomp_policy", |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 55 | ], |
| 56 | multilib: { |
| 57 | lib32: { |
| 58 | stem: "crasher", |
| 59 | }, |
| 60 | lib64: { |
| 61 | stem: "crasher64", |
| 62 | }, |
| 63 | }, |
| 64 | } |
| 65 | |
| 66 | cc_binary { |
| 67 | name: "static_crasher", |
| 68 | |
| 69 | defaults: ["crasher-defaults"], |
| 70 | cppflags: ["-DSTATIC_CRASHER"], |
| 71 | static_executable: true, |
Josh Gao | a48b41b | 2019-12-13 14:11:04 -0800 | [diff] [blame] | 72 | header_libs: ["bionic_libc_platform_headers"], |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 73 | static_libs: [ |
| 74 | "libdebuggerd_handler", |
| 75 | "libbase", |
| 76 | "liblog", |
Elliott Hughes | 12b7129 | 2017-03-02 19:01:20 -0800 | [diff] [blame] | 77 | "libseccomp_policy", |
Elliott Hughes | 0ba5359 | 2017-02-01 16:59:15 -0800 | [diff] [blame] | 78 | ], |
| 79 | multilib: { |
| 80 | lib32: { |
| 81 | stem: "static_crasher", |
| 82 | }, |
| 83 | lib64: { |
| 84 | stem: "static_crasher64", |
| 85 | }, |
| 86 | }, |
| 87 | } |