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

Commit 96e9e34c authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Myles Watson
Browse files

Add libbluetooth-for-tests static library

Add the most common dependencies to a static library
for building tests.

Bug: 68350333
Test: lunch gce_x86_pasan;
      SANITIZE_TARGET="address coverage" mma

Change-Id: I78e65a686873565d292ea0ad89047927ca6efb87
parent bbc7b21c
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -109,15 +109,25 @@ cc_test {
    srcs: ["test/btif_storage_test.cc"],
    header_libs: ["libbluetooth_headers"],
    shared_libs: [
        "libhidlbase",
        "liblog",
        "libprotobuf-cpp-lite",
        "libcutils",
        "libutils",
    ],
    static_libs: [
        "libbtcore",
        "libbtif",
        "libbt-bta",
        "libbtcore",
        "libbt-stack",
        "libbtdevice",
        "libbt-hci",
        "libbluetooth-types",
        "libosi",
        "libbt-protos",
    ],
    whole_static_libs: [
        "libbluetooth-for-tests",
    ],
    cflags: ["-DBUILDCFG"],
}
+25 −0
Original line number Diff line number Diff line
@@ -84,3 +84,28 @@ cc_library_shared {
        "-DBUILDCFG",
    ],
}

cc_library_static {
    name: "libbluetooth-for-tests",
    defaults: ["fluoride_defaults"],

    srcs: [
        "bte_init_cpp_logging.cc",
        "bte_logmsg.cc",
        "bte_main.cc",
        "stack_config.cc",
    ],
    include_dirs: [
        "packages/modules/Bluetooth/system",
        "packages/modules/Bluetooth/system/bta/include",
        "packages/modules/Bluetooth/system/btcore/include",
        "packages/modules/Bluetooth/system/btif/include",
        "packages/modules/Bluetooth/system/hci/include",
        "packages/modules/Bluetooth/system/internal_include",
        "packages/modules/Bluetooth/system/stack/include",
        "packages/modules/Bluetooth/system/utils/include",
    ],
    cflags: [
        "-DBUILDCFG",
    ],
}
+10 −0
Original line number Diff line number Diff line
@@ -199,15 +199,25 @@ cc_test {
    ],
    srcs: ["test/stack_a2dp_test.cc"],
    shared_libs: [
        "libhidlbase",
        "liblog",
        "libprotobuf-cpp-lite",
        "libcutils",
        "libutils",
    ],
    static_libs: [
        "libbt-bta",
        "libbt-stack",
        "libbt-sbc-decoder",
        "libbt-sbc-encoder",
        "libFraunhoferAAC",
        "libbtdevice",
        "libbt-hci",
        "libosi",
        "libbt-protos",
    ],
    whole_static_libs: [
        "libbluetooth-for-tests",
    ],
}