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

Commit 63454f8e authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge changes I4dd9b681,Idb698e90,Ifb6dc551

* changes:
  libbluetooth_jni: Add a version_script to hide symbols
  Link libc++ statically
  Move shared_libs with a static variant to static_libs
parents 23c869d3 ec10adbb
Loading
Loading
Loading
Loading
+27 −10
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ cc_library_shared {
    name: "libbluetooth_jni",
    defaults: ["fluoride_basic_defaults"],
    srcs: ["jni/**/*.cpp"],
    version_script: "libbluetooth_jni.map",
    header_libs: [
        "jni_headers",
        "libbluetooth_headers",
@@ -66,13 +67,34 @@ cc_library_shared {
        "packages/modules/Bluetooth/system/gd",
        "packages/modules/Bluetooth/system/types",
    ],
    // libbluetooth_jni is the jni lib included in the btservices apex.
    // As this library is inside an APEX the shared_libs that does not
    // expose stubs are copied inside it. As a result using those as
    // shared libraries is less interesting as they are not shared, so we link
    // them statically to allow the linker to perform more optimisation.
    //
    // The only exception to this is libcrypto because the shared version
    // is required to maintain FIPS compliance.
    stl: "libc++_static",
    static_libs: [
        "android.hardware.audio.common-V1-ndk",
        "android.hardware.audio.common@5.0",
        "android.hardware.bluetooth.audio-V3-ndk",
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.1",
        "android.hardware.common-V2-ndk",
        "android.hardware.common.fmq-V1-ndk",
        "android.media.audio.common.types-V2-ndk",
        "android.system.suspend-V1-ndk",
        "android.system.suspend.control-V1-ndk",
        "avrcp-target-service",
        "lib-bt-packets-avrcp",
        "lib-bt-packets-base",
        "libFraunhoferAAC",
        "libaudio-a2dp-hw-utils",
        "libbase",
        "libbluetooth",
        "libbluetooth-dumpsys",
        "libbluetooth-types",
@@ -94,31 +116,26 @@ cc_library_shared {
        "libbtif-core",
        "libc++fs",
        "libchrome",
        "libcutils",
        "libevent",
        "libfmq",
        "libg722codec",
        "libhidlbase",
        "liblc3",
        "libmodpb64",
        "libopus",
        "libosi",
        "libudrv-uipc",
        "libutils",
    ],
    shared_libs: [
        "android.hardware.bluetooth.audio-V3-ndk",
        "android.hardware.bluetooth.audio@2.0",
        "android.hardware.bluetooth.audio@2.1",
        "android.hardware.bluetooth@1.0",
        "android.hardware.bluetooth@1.1",
        "android.system.suspend-V1-ndk",
        "libaaudio",
        "libbinder_ndk",
        "libcrypto",
        "libcutils",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libnativehelper",
        "libstatssocket",
        "libutils",
        "libvndksupport",
    ],
    sanitize: {
        scs: true,
+4 −0
Original line number Diff line number Diff line
{
  global: JNI_OnLoad;
  local: *;
};