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

Commit c344a99a authored by William Escande's avatar William Escande
Browse files

Add the libchrome as shared libs for platform lib

Theses two libs [audio.a2dp.default.so, audio.hearing_aid.default.so]
are on the `system/lib/hw` folder. Therefor we can safely use the shared
libchrome when using them.

Fix: 221984667
Test: pre-submit
Tag: #refactor
Ignore-AOSP-First: no apex on AOSP
Change-Id: Iab00e56672fdcf97ba35dee7712e2c583da6899c
parent 9dbe2df3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ package {

cc_defaults {
    name: "audio_a2dp_hw_defaults",
    defaults: ["libchrome_support_defaults"],
    defaults: ["libchrome_shared_support_defaults"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/audio_a2dp_hw/include",
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ package {

cc_defaults {
    name: "audio_hearing_aid_hw_defaults",
    defaults: ["libchrome_support_defaults"],
    defaults: ["libchrome_shared_support_defaults"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
+17 −0
Original line number Diff line number Diff line
@@ -51,6 +51,23 @@ fluoride_defaults {
    },
}

// default to be used only on platform libs that can rely on shared libchrome
fluoride_defaults {
    name: "libchrome_shared_support_defaults",
    shared_libs: ["libchrome"],
    cflags: [
        "-Wall",
        "-Wextra",
        "-Werror",
    ],
    target: {
        darwin: {
            enabled: false,
        },
    },
}


// Fuzzable defaults are the subset of defaults that are used in fuzzing, which
// requires no shared libraries, and no explicit sanitization.
fluoride_defaults {