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

Commit 1ab0b88d authored by Alistair Delva's avatar Alistair Delva
Browse files

Build 64-bit mediaserver on 64-bit-only

This change also updates the mediaresourcemanager tests to be buildable
on both 32-bit and 64-bit, without adding additional libraries to the
system image.

Bug: 16890215
Change-Id: Icf8f1d0b098217d34bf27911a72346124588cc5b
parent a4d629d3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -33,8 +33,10 @@ cc_binary {
        "frameworks/av/services/mediaresourcemanager",
    ],

    // back to 32-bit, b/126502613
    compile_multilib: "32",
    // mediaserver has only been verified on 32-bit, see b/126502613
    // use "prefer32" to *only* enable 64-bit builds on 64-bit-only lunch
    // targets, which allows them to reach 'boot_complete'.
    compile_multilib: "prefer32",

    init_rc: ["mediaserver.rc"],

+1 −4
Original line number Diff line number Diff line


cc_library_shared {
cc_library {
    name: "libresourcemanagerservice",

    srcs: [
@@ -24,5 +22,4 @@ cc_library_shared {
    ],

    export_include_dirs: ["."],

}
+2 −4
Original line number Diff line number Diff line
@@ -3,11 +3,11 @@ cc_test {
    name: "ResourceManagerService_test",
    srcs: ["ResourceManagerService_test.cpp"],
    test_suites: ["device-tests"],
    static_libs: ["libresourcemanagerservice"],
    shared_libs: [
        "libbinder",
        "liblog",
        "libmedia",
        "libresourcemanagerservice",
        "libutils",
    ],
    include_dirs: [
@@ -18,17 +18,16 @@ cc_test {
        "-Werror",
        "-Wall",
    ],
    compile_multilib: "32",
}

cc_test {
    name: "ServiceLog_test",
    srcs: ["ServiceLog_test.cpp"],
    test_suites: ["device-tests"],
    static_libs: ["libresourcemanagerservice"],
    shared_libs: [
        "liblog",
        "libmedia",
        "libresourcemanagerservice",
        "libutils",
    ],
    include_dirs: [
@@ -39,5 +38,4 @@ cc_test {
        "-Werror",
        "-Wall",
    ],
    compile_multilib: "32",
}