platform_system_core/debuggerd/crasher/Android.bp
Christopher Ferris 2bf7db3de0 Format all of the blueprint files.
I'm tired of seeing the bpfmt warning, so fix this for all debuggerd
blueprint files.

Test: Compiles
Change-Id: I3b25365a7272aebe9cbac28455cf8b9b86b04c6e
2024-02-26 13:34:38 -08:00

83 lines
1.6 KiB
Text

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "crasher-defaults",
cflags: [
"-W",
"-Wall",
"-Wextra",
"-Wunused",
"-Werror",
"-O0",
"-fstack-protector-all",
"-Wno-date-time",
],
tidy: false, // crasher.cpp tests many memory access errors
srcs: ["crasher.cpp"],
arch: {
arm: {
srcs: ["arm/crashglue.S"],
},
arm64: {
srcs: ["arm64/crashglue.S"],
},
riscv64: {
srcs: ["riscv64/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",
],
static_libs: [
"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",
},
},
}