Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86e80b9b authored by Jaekyun Seok's avatar Jaekyun Seok
Browse files

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
parent 8a1c4b85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ cc_library {
        "liblog",
        "libcutils",
        "libnativebridge",
        "libbase",
    ],
    static_libs: ["libbase"],
    target: {
        android: {
            shared_libs: ["libdl"],
+4 −2
Original line number Diff line number Diff line
@@ -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"],