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

Commit 201efd79 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

media apex: statically link hidl libraries in mpeg2extractor.

com.android.media size : 5.8MB -> 3.6MB
Also Q versions of statble libraries are specified, so that build time
check can happen when sub libraries tries to use new API.

Test: build
Bug: 141645332 Bug: 144271235
Change-Id: Id426e160c56949899e80372c7b13ed00795d4650
parent e6cbccae
Loading
Loading
Loading
Loading
+25 −11
Original line number Diff line number Diff line
@@ -12,15 +12,11 @@ cc_library_shared {
    ],

    shared_libs: [
        "android.hardware.cas@1.0",
        "android.hardware.cas.native@1.0",
        "android.hidl.token@1.0-utils",
        "android.hidl.allocator@1.0",
        "libcgrouprc#29",
        "liblog#10000",
        "libmediandk#29",
        "libvndksupport#29",
        "libcrypto",
        "libhidlmemory",
        "libhidlbase",
        "liblog",
        "libmediandk",
    ],

    header_libs: [
@@ -31,11 +27,24 @@ cc_library_shared {
    ],

    static_libs: [
        "android.hardware.cas@1.0",
        "android.hardware.cas.native@1.0",
        "android.hidl.allocator@1.0",
        "android.hidl.memory@1.0",
        "android.hidl.token@1.0",
        "android.hidl.token@1.0-utils",
        "libbase",
        "libbinderthreadstate",
        "libcutils",
        "libhidlbase",
        "libhidlmemory",
        "libjsoncpp",
        "libprocessgroup",
        "libstagefright_esds",
        "libstagefright_foundation_without_imemory",
        "libstagefright_mpeg2extractor",
        "libstagefright_mpeg2support",
        "libutils",
        "libstagefright_mpeg2extractor",
        "libstagefright_esds",
    ],

    name: "libmpeg2extractor",
@@ -51,11 +60,16 @@ cc_library_shared {
    version_script: "exports.lds",

    sanitize: {
        cfi: true,
        // STOPSHIP: turn on cfi once b/139945549 is resolved.
        cfi: false,
        misc_undefined: [
            "unsigned-integer-overflow",
            "signed-integer-overflow",
        ],
    },

    apex_available: [
        "com.android.media",
        "test_com.android.media",
    ],
}