88 lines
1.8 KiB
Plaintext
88 lines
1.8 KiB
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "system_core_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["system_core_license"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "crasher-defaults",
|
|
|
|
cflags: [
|
|
"-W",
|
|
"-Wall",
|
|
"-Wextra",
|
|
"-Wunused",
|
|
"-Werror",
|
|
"-O0",
|
|
"-fstack-protector-all",
|
|
"-Wno-free-nonheap-object",
|
|
"-Wno-date-time",
|
|
],
|
|
srcs: ["crasher.cpp"],
|
|
arch: {
|
|
arm: {
|
|
srcs: ["arm/crashglue.S"],
|
|
|
|
neon: {
|
|
asflags: ["-DHAS_VFP_D32"],
|
|
},
|
|
},
|
|
arm64: {
|
|
srcs: ["arm64/crashglue.S"],
|
|
},
|
|
x86: {
|
|
srcs: ["x86/crashglue.S"],
|
|
},
|
|
x86_64: {
|
|
srcs: ["x86_64/crashglue.S"],
|
|
},
|
|
},
|
|
compile_multilib: "both",
|
|
}
|
|
|
|
cc_binary {
|
|
name: "crasher",
|
|
|
|
defaults: ["crasher-defaults"],
|
|
header_libs: ["bionic_libc_platform_headers"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libseccomp_policy",
|
|
],
|
|
multilib: {
|
|
lib32: {
|
|
stem: "crasher",
|
|
},
|
|
lib64: {
|
|
stem: "crasher64",
|
|
},
|
|
},
|
|
}
|
|
|
|
cc_binary {
|
|
name: "static_crasher",
|
|
|
|
defaults: ["crasher-defaults"],
|
|
cppflags: ["-DSTATIC_CRASHER"],
|
|
static_executable: true,
|
|
header_libs: ["bionic_libc_platform_headers"],
|
|
static_libs: [
|
|
"libdebuggerd_handler",
|
|
"libbase",
|
|
"liblog",
|
|
"libseccomp_policy",
|
|
],
|
|
multilib: {
|
|
lib32: {
|
|
stem: "static_crasher",
|
|
},
|
|
lib64: {
|
|
stem: "static_crasher64",
|
|
},
|
|
},
|
|
}
|