86e80b9be0
libutils, libz and libbase are being used as shared lib by many other modules. So using their shared lib will reduce total image size. Size diffs on angler build image are as follows. libziparchive.so : 103844 -> 41680 (-62164) libnativeloader.so: 50824 -> 25104 (-25720) total : (-87884) Test: building succeeded, and the image was tested on angler. Bug: 33056637 Change-Id: I015afe5b8f4d87d495b706e2e78d60f44a910e87
32 lines
682 B
Text
32 lines
682 B
Text
// Shared library for target
|
|
// ========================================================
|
|
cc_library {
|
|
name: "libnativeloader",
|
|
host_supported: true,
|
|
srcs: ["native_loader.cpp"],
|
|
shared_libs: [
|
|
"libnativehelper",
|
|
"liblog",
|
|
"libcutils",
|
|
"libnativebridge",
|
|
"libbase",
|
|
],
|
|
target: {
|
|
android: {
|
|
shared_libs: ["libdl"],
|
|
},
|
|
host: {
|
|
host_ldlibs: ["-ldl"],
|
|
},
|
|
},
|
|
clang: true,
|
|
cflags: [
|
|
"-Werror",
|
|
"-Wall",
|
|
],
|
|
cppflags: [
|
|
"-fvisibility=hidden",
|
|
],
|
|
export_include_dirs: ["include"],
|
|
local_include_dirs: ["include"],
|
|
}
|