Use shared lib of libutils, libz and libbase.

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
This commit is contained in:
Jaekyun Seok 2016-12-21 14:22:00 +09:00
parent 8a1c4b8530
commit 86e80b9be0
2 changed files with 5 additions and 3 deletions

View File

@ -9,8 +9,8 @@ cc_library {
"liblog",
"libcutils",
"libnativebridge",
"libbase",
],
static_libs: ["libbase"],
target: {
android: {
shared_libs: ["libdl"],

View File

@ -56,11 +56,13 @@ cc_library {
name: "libziparchive",
host_supported: true,
defaults: ["libziparchive_defaults", "libziparchive_flags"],
static_libs: ["libutils"],
shared_libs: ["liblog", "libbase"],
target: {
android: {
static_libs: ["libz"],
shared_libs: ["libz", "libutils"],
},
host: {
static_libs: ["libutils"],
},
linux_bionic: {
static_libs: ["libz"],