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

Commit 044ca75b authored by Rahul Arya's avatar Rahul Arya
Browse files

[Invisalign] Build changes to split out libbluetooth-core

Ignore-AOSP-First: Doing it in internal master first to avoid merge conflicts.
Test: compiles, atest pts-bot
Bug: 254063018
Change-Id: I131eb7cce64254796dff777c00728a3f08942d2a
(cherry picked from commit f932601b)
parent cfbf8386
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
@@ -79,6 +79,51 @@ cc_library_shared {
    min_sdk_version: "Tiramisu",
}

cc_library {
    name: "libbluetooth-core",
    defaults: ["fluoride_basic_defaults"],
    header_libs: [
        "jni_headers",
        "libbluetooth_headers",
    ],
    include_dirs: [
        "packages/modules/Bluetooth/system/types",
    ],
    whole_static_libs: [
        "libbte",
        "libbt-bta-core",
        "libbt-common",
        "libbtdevice",
        "libbtif-core",
        "libbt-hci",
        "libbt-stack-core",
        "libbt-utils",
        "libbtcore",
        "libosi",
        "lib-bt-packets",
        "lib-bt-packets-base",

        "libbluetooth-types",
        "libc++fs",
    ],
    cflags: [
        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
        "-fvisibility=default",
        "-Wall",
        "-Werror",
        "-Wextra",
        "-Wno-unused-parameter",
    ],
    sanitize: {
        scs: true,
    },
    apex_available: [
        "com.android.btservices",
    ],
    host_supported: true,
    min_sdk_version: "Tiramisu",
}

// Bluetooth APK

android_app {
+3 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ cc_defaults {
        "liblog",
        "libosi",
        "libbtif",
        "libbtif-core",
        "libbase",
        "libutils",
        "libevent",
@@ -58,6 +59,7 @@ cc_defaults {
        "libchrome",
        "libbtcore",
        "libbt-bta",
        "libbt-bta-core",
        "libbt-hci",
        "libbt_shim_bridge",
        "libbt_shim_ffi",
@@ -68,6 +70,7 @@ cc_defaults {
        "libflatbuffers-cpp",
        "libhidlbase",
        "libbt-stack",
        "libbt-stack-core",
        "libg722codec",
        "libudrv-uipc",
        "libbt-common",
+48 −22
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ cc_defaults {
        "packages/modules/Bluetooth/system/gd/rust/shim",
    ],
    header_libs: ["libbluetooth_headers"],
    generated_headers: [
        "BluetoothGeneratedDumpsysDataSchema_h",
    ],
    cflags: ["-DBUILDCFG"],
}

@@ -52,7 +55,6 @@ cc_library_static {
    name: "libbt-bta",
    defaults: ["fluoride_bta_defaults"],
    srcs: [
        ":BtaDmSources",
        "ag/bta_ag_act.cc",
        "ag/bta_ag_api.cc",
        "ag/bta_ag_at.cc",
@@ -71,20 +73,6 @@ cc_library_static {
        "av/bta_av_main.cc",
        "av/bta_av_ssm.cc",
        "csis/csis_client.cc",
        "gatt/bta_gattc_act.cc",
        "gatt/bta_gattc_api.cc",
        "gatt/bta_gattc_cache.cc",
        "gatt/bta_gattc_db_storage.cc",
        "gatt/bta_gattc_main.cc",
        "gatt/bta_gattc_queue.cc",
        "gatt/bta_gattc_utils.cc",
        "gatt/bta_gatts_act.cc",
        "gatt/bta_gatts_api.cc",
        "gatt/bta_gatts_main.cc",
        "gatt/bta_gatts_queue.cc",
        "gatt/bta_gatts_utils.cc",
        "gatt/database.cc",
        "gatt/database_builder.cc",
        "groups/groups.cc",
        "vc/device.cc",
        "vc/vc.cc",
@@ -129,13 +117,49 @@ cc_library_static {
        "hd/bta_hd_act.cc",
        "hd/bta_hd_api.cc",
        "hd/bta_hd_main.cc",
        "jv/bta_jv_act.cc",
        "jv/bta_jv_api.cc",
        "jv/bta_jv_cfg.cc",
        "pan/bta_pan_act.cc",
        "pan/bta_pan_api.cc",
        "pan/bta_pan_ci.cc",
        "pan/bta_pan_main.cc",
    ],
    cflags: [
        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
        "-fvisibility=default",
    ],
    static_libs: [
        "avrcp-target-service",
        "lib-bt-packets",
        "libbt-bta-core",
    ],
    generated_headers: [
        "LeAudioSetConfigSchemas_h",
    ],
    host_supported: true,
    min_sdk_version: "Tiramisu"
}

cc_library_static {
    name: "libbt-bta-core",
    defaults: ["fluoride_bta_defaults"],
    srcs: [
        ":BtaDmSources",
        "gatt/bta_gattc_act.cc",
        "gatt/bta_gattc_api.cc",
        "gatt/bta_gattc_cache.cc",
        "gatt/bta_gattc_db_storage.cc",
        "gatt/bta_gattc_main.cc",
        "gatt/bta_gattc_queue.cc",
        "gatt/bta_gattc_utils.cc",
        "gatt/bta_gatts_act.cc",
        "gatt/bta_gatts_api.cc",
        "gatt/bta_gatts_main.cc",
        "gatt/bta_gatts_queue.cc",
        "gatt/bta_gatts_utils.cc",
        "gatt/database.cc",
        "gatt/database_builder.cc",
        "jv/bta_jv_act.cc",
        "jv/bta_jv_api.cc",
        "jv/bta_jv_cfg.cc",
        "sdp/bta_sdp.cc",
        "sdp/bta_sdp_act.cc",
        "sdp/bta_sdp_api.cc",
@@ -144,13 +168,13 @@ cc_library_static {
        "sys/bta_sys_main.cc",
        "sys/utl.cc",
    ],
    cflags: [
        /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/
        "-fvisibility=default",
    ],
    static_libs: [
        "avrcp-target-service",
        "lib-bt-packets",
    ],
    generated_headers: [
        "LeAudioSetConfigSchemas_h",
    ],
    host_supported: true,
    min_sdk_version: "Tiramisu"
}
@@ -184,6 +208,7 @@ cc_test {
        "crypto_toolbox_for_tests",
        "libbtcore",
        "libbt-bta",
        "libbt-bta-core",
        "libbt-audio-hal-interface",
        "libbluetooth-types",
        "libbt-protos-lite",
@@ -224,6 +249,7 @@ cc_test {
        "crypto_toolbox_for_tests",
        "libbtcore",
        "libbt-bta",
        "libbt-bta-core",
        "libbt-audio-hal-interface",
        "libbluetooth-types",
        "libbt-protos-lite",
+23 −1
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ cc_defaults {
    ],
    srcs: [
        "src/device_class.cc",
        "src/hal_util.cc",
        "src/module.cc",
        "src/osi_module.cc",
        "src/property.cc",
@@ -35,6 +34,29 @@ cc_defaults {
    },
}

cc_library_static {
    name: "libbthalutils",
    defaults: ["fluoride_basic_defaults"],
    srcs: [
        "src/hal_util.cc",
    ],
    local_include_dirs: ["include"],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/gd",
    ],
    header_libs: ["libbluetooth_headers"],
    host_supported: true,
    apex_available: [
        "com.android.btservices",
    ],
    target: {
        host_linux: {
            cflags: ["-D_GNU_SOURCE"],
        },
    },
}

cc_library_static {
    name: "libbtcore",
    visibility:[
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
static_library("btcore") {
  sources = [
    "src/device_class.cc",
    "src/hal_util.cc",
    "src/module.cc",
    "src/osi_module.cc",
    "src/property.cc",
Loading