platform_system_core/libmemtrack/Android.bp
Jooyung Han c624621554 Mark libs as double_loadable
libs(libasyncio libmemtrack libprocinfo libusbhost) have
vendor variants and they are also used by LLNDK(libmediandk)
which means these libs can be double-loaded.

deps:
- libmediandk -> libmedia_jni -> libmtp -> libasyncio
- libmediandk -> libmedia_jni -> libandroid_runtime -> libmemtrack
- libmediandk -> libmedia_jni -> libandroid_runtime -> libdebuggerd_client -> libprocinfo
- libmediandk -> libmedia_jni -> libmtp -> libusbhost

Bug: 121280180
Test: m -j
Change-Id: I2c2b5d67cf47b85a2aa8c08f85c7e1a84490cf4e
2019-02-08 11:48:04 +09:00

42 lines
859 B
Text

// Copyright 2013 The Android Open Source Project
cc_library_shared {
name: "libmemtrack",
vendor_available: true,
vndk: {
enabled: true,
},
double_loadable: true,
srcs: ["memtrack.cpp"],
export_include_dirs: ["include"],
local_include_dirs: ["include"],
include_dirs: ["hardware/libhardware/include"],
shared_libs: [
"libhardware",
"liblog",
"libbase",
"libhidlbase",
"libhidltransport",
"libhwbinder",
"libutils",
"android.hardware.memtrack@1.0",
],
cflags: [
"-Wall",
"-Werror",
],
}
cc_binary {
name: "memtrack_test",
srcs: ["memtrack_test.cpp"],
static_libs: ["libc++fs"],
shared_libs: [
"libbase",
"libmemtrack",
],
cflags: [
"-Wall",
"-Werror",
],
}