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

Commit 39fe2cc1 authored by Devin Moore's avatar Devin Moore
Browse files

Change libidmap2_policies to static

The library only has headers so the shared library overhead is not worth
it.

Test: m
Bug: 280829178
Change-Id: Ie138d1be95aaad9b230407cf03a46d182dd2a307
parent de9ac4dc
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -80,13 +80,13 @@ cc_library {
                enabled: false,
            },
            static_libs: [
                "libidmap2_policies",
                "libidmap2_protos",
            ],
            shared_libs: [
                "libandroidfw",
                "libbase",
                "libcutils",
                "libidmap2_policies",
                "libprotobuf-cpp-lite",
                "libutils",
                "libz",
@@ -125,7 +125,7 @@ cc_library {
    },
}

cc_library {
cc_library_static {
    name: "libidmap2_policies",
    defaults: [
        "idmap2_defaults",
@@ -142,9 +142,6 @@ cc_library {
            ],
        },
        host: {
            shared: {
                enabled: false,
            },
            static_libs: [
                "libandroidfw",
            ],
@@ -191,7 +188,6 @@ cc_test {
                "libandroidfw",
                "libbase",
                "libidmap2",
                "libidmap2_policies",
                "liblog",
                "libprotobuf-cpp-lite",
                "libutils",
@@ -199,6 +195,9 @@ cc_test {
                "libz",
                "libziparchive",
            ],
            static_libs: [
                "libidmap2_policies",
            ],
        },
        host: {
            static_libs: [
@@ -255,12 +254,14 @@ cc_binary {
                "libbase",
                "libcutils",
                "libidmap2",
                "libidmap2_policies",
                "libprotobuf-cpp-lite",
                "libutils",
                "libz",
                "libziparchive",
            ],
            static_libs: [
                "libidmap2_policies",
            ],
        },
        host: {
            static_libs: [
@@ -298,13 +299,13 @@ cc_binary {
        "libbinder",
        "libcutils",
        "libidmap2",
        "libidmap2_policies",
        "libprotobuf-cpp-lite",
        "libutils",
        "libziparchive",
    ],
    static_libs: [
        "libc++fs",
        "libidmap2_policies",
        "libidmap2_protos",
        "libidmap2daidl",
    ],