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

Commit 16a932a4 authored by Jiyong Park's avatar Jiyong Park
Browse files

Set apex_available property

The marked library(ies) were available to the APEXes via the
hand-written whitelist in build/soong/apex/apex.go. Trying to remove the
whitelist by adding apex_available property to the Android.bp of the
libraries.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 150999716
Test: m
Merged-In: I54db09314c7236a227f04281a439c1d5dc56ef2c
Change-Id: I54db09314c7236a227f04281a439c1d5dc56ef2c
(cherry picked from commit a2606921)
parent f464e6e0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -51,6 +51,12 @@ cc_library {
            enabled: false,
        },
    },

    apex_available: [
        "//apex_available:platform",
        "com.android.art.debug",
        "com.android.art.release",
    ],
}

// Tests
+6 −0
Original line number Diff line number Diff line
@@ -146,6 +146,12 @@ cc_library {
            exclude_shared_libs: ["libdexfile_support"],
        },
    },

    apex_available: [
        "//apex_available:platform",
        "com.android.art.debug",
        "com.android.art.release",
    ],
}

// Static library without DEX support to avoid dependencies on the ART APEX.
+6 −0
Original line number Diff line number Diff line
@@ -111,6 +111,12 @@ cc_library {
            enabled: true,
        },
    },

    apex_available: [
        "//apex_available:platform",
        "com.android.art.debug",
        "com.android.art.release",
    ],
}

// Tests.