67 lines
1.2 KiB
Plaintext
67 lines
1.2 KiB
Plaintext
|
// ==============================================================
|
||
|
// libc_malloc_hooks.so
|
||
|
// ==============================================================
|
||
|
cc_library {
|
||
|
name: "libc_malloc_hooks",
|
||
|
|
||
|
srcs: [
|
||
|
"malloc_hooks.cpp",
|
||
|
],
|
||
|
|
||
|
static_libs: [
|
||
|
"libasync_safe",
|
||
|
],
|
||
|
|
||
|
multilib: {
|
||
|
lib32: {
|
||
|
version_script: "exported32.map",
|
||
|
},
|
||
|
lib64: {
|
||
|
version_script: "exported64.map",
|
||
|
},
|
||
|
},
|
||
|
include_dirs: ["bionic/libc"],
|
||
|
|
||
|
sanitize: {
|
||
|
never: true,
|
||
|
},
|
||
|
native_coverage: false,
|
||
|
|
||
|
cflags: [
|
||
|
"-Wall",
|
||
|
"-Werror",
|
||
|
"-fno-stack-protector",
|
||
|
],
|
||
|
}
|
||
|
|
||
|
// ==============================================================
|
||
|
// Unit Tests
|
||
|
// ==============================================================
|
||
|
cc_test {
|
||
|
name: "malloc_hooks_unit_tests",
|
||
|
multilib: {
|
||
|
lib32: {
|
||
|
suffix: "32",
|
||
|
},
|
||
|
lib64: {
|
||
|
suffix: "64",
|
||
|
},
|
||
|
},
|
||
|
|
||
|
srcs: [
|
||
|
"tests/malloc_hooks_tests.cpp",
|
||
|
],
|
||
|
|
||
|
whole_static_libs: ["libc_malloc_hooks"],
|
||
|
|
||
|
shared_libs: ["libbase"],
|
||
|
|
||
|
local_include_dirs: ["tests"],
|
||
|
include_dirs: ["bionic/libc", "bionic"],
|
||
|
|
||
|
cflags: [
|
||
|
"-Wall",
|
||
|
"-Werror",
|
||
|
],
|
||
|
}
|