• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth main HW module / shared library for target
2// ========================================================
3cc_library_shared {
4    name: "bluetooth.default",
5    defaults: ["fluoride_defaults"],
6    relative_install_path: "hw",
7    srcs: [
8        // platform specific
9        "bte_conf.cc",
10        "bte_init.cc",
11        "bte_init_cpp_logging.cc",
12        "bte_logmsg.cc",
13        "bte_main.cc",
14        "stack_config.cc",
15    ],
16    include_dirs: [
17        "system/bt",
18        "system/bt/bta/include",
19        "system/bt/bta/sys",
20        "system/bt/bta/dm",
21        "system/bt/btcore/include",
22        "system/bt/include",
23        "system/bt/stack/include",
24        "system/bt/stack/l2cap",
25        "system/bt/stack/a2dp",
26        "system/bt/stack/btm",
27        "system/bt/stack/avdt",
28        "system/bt/udrv/include",
29        "system/bt/btif/include",
30        "system/bt/btif/co",
31        "system/bt/hci/include",
32        "system/bt/vnd/include",
33        "system/bt/embdrv/sbc/encoder/include",
34        "system/bt/embdrv/sbc/decoder/include",
35        "system/bt/utils/include",
36    ],
37    logtags: ["../EventLogTags.logtags"],
38    shared_libs: [
39        "android.hardware.bluetooth@1.0",
40        "libaudioclient",
41        "libcutils",
42        "libdl",
43        "libhidlbase",
44        "libhidltransport",
45        "libhwbinder",
46        "liblog",
47        "libprotobuf-cpp-lite",
48        "libutils",
49        "libtinyxml2",
50        "libz",
51    ],
52    static_libs: [
53        "libbt-sbc-decoder",
54        "libbt-sbc-encoder",
55        "libFraunhoferAAC",
56        "libudrv-uipc",
57    ],
58    whole_static_libs: [
59        "libbt-bta",
60        "libbtdevice",
61        "libbtif",
62        "libbt-hci",
63        "libbt-protos",
64        "libbt-stack",
65        "libbt-utils",
66        "libbtcore",
67        "libosi",
68    ],
69    // Shared library link options.
70    // References to global symbols and functions should bind to the library
71    // itself. This is to avoid issues with some of the unit/system tests
72    // that might link statically with some of the code in the library, and
73    // also dlopen(3) the shared library.
74    ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
75    required: [
76        "bt_did.conf",
77        "bt_stack.conf",
78        "libbt-hci",
79        "libldacBT_enc",
80        "libldacBT_abr",
81    ],
82    cflags: [
83        "-DBUILDCFG",
84    ],
85}
86