Fetch the repository succeeded.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libmemunreachable_defaults",
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
shared_libs: [
"libbase",
],
target: {
android: {
static_libs: ["libasync_safe"],
header_libs: ["bionic_libc_platform_headers"],
},
linux_bionic: {
header_libs: ["bionic_libc_platform_headers"],
},
host: {
shared_libs: ["liblog"],
},
},
}
cc_library {
name: "libmemunreachable",
vendor_available: true,
defaults: ["libmemunreachable_defaults"],
srcs: [
"Allocator.cpp",
"Binder.cpp",
"HeapWalker.cpp",
"LeakFolding.cpp",
"LeakPipe.cpp",
"MemUnreachable.cpp",
"ProcessMappings.cpp",
"PtracerThread.cpp",
"ThreadCapture.cpp",
],
static_libs: [
"libc_malloc_debug_backtrace",
"libprocinfo",
],
export_include_dirs: ["include"],
local_include_dirs: ["include"],
version_script: "libmemunreachable.map",
}
// Integration test that runs against the public API of libmemunreachable
cc_test {
name: "memunreachable_test",
defaults: ["libmemunreachable_defaults"],
srcs: [
"tests/MemUnreachable_test.cpp",
],
shared_libs: ["libmemunreachable"],
test_suites: ["device-tests"],
}
cc_test {
name: "memunreachable_unit_test",
defaults: ["libmemunreachable_defaults"],
host_supported: true,
srcs: [
"tests/Allocator_test.cpp",
"tests/HeapWalker_test.cpp",
"tests/LeakFolding_test.cpp",
],
target: {
android: {
srcs: [
"tests/DisableMalloc_test.cpp",
"tests/MemUnreachable_test.cpp",
"tests/ThreadCapture_test.cpp",
],
static_libs: [
"libmemunreachable",
"libc_malloc_debug_backtrace",
],
},
host: {
srcs: [
"Allocator.cpp",
"HeapWalker.cpp",
"LeakFolding.cpp",
"tests/HostMallocStub.cpp",
],
},
darwin: {
enabled: false,
},
},
test_suites: ["device-tests"],
}
cc_test {
name: "memunreachable_binder_test",
defaults: ["libmemunreachable_defaults"],
require_root: true,
srcs: [
"tests/Binder_test.cpp",
],
static_libs: ["libmemunreachable"],
shared_libs: [
"libbinder",
"libhidlbase",
"libutils",
],
test_suites: [
"device-tests",
"vts"
],
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。