blob: b37b154211de407702e53a6f6531e5b42d107a61 [file] [log] [blame]
Jakub Pawlowskif2f207a2017-09-23 14:47:20 -07001
Jack Hee2eeff42016-12-07 18:25:17 -08002// Bluetooth main HW module / shared library for target
3// ========================================================
4cc_library_shared {
5 name: "bluetooth.default",
6 defaults: ["fluoride_defaults"],
7 relative_install_path: "hw",
Jakub Pawlowskif2f207a2017-09-23 14:47:20 -07008 header_libs: ["bluetooth.default_headers"],
9 export_header_lib_headers: ["bluetooth.default_headers"],
Jack Hee2eeff42016-12-07 18:25:17 -080010 srcs: [
11 // platform specific
12 "bte_conf.cc",
13 "bte_init.cc",
14 "bte_init_cpp_logging.cc",
15 "bte_logmsg.cc",
16 "bte_main.cc",
17 "stack_config.cc",
18 ],
19 include_dirs: [
20 "system/bt",
21 "system/bt/bta/include",
22 "system/bt/bta/sys",
23 "system/bt/bta/dm",
24 "system/bt/btcore/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070025 "system/bt/internal_include",
Jack Hee2eeff42016-12-07 18:25:17 -080026 "system/bt/stack/include",
27 "system/bt/stack/l2cap",
28 "system/bt/stack/a2dp",
29 "system/bt/stack/btm",
30 "system/bt/stack/avdt",
31 "system/bt/udrv/include",
32 "system/bt/btif/include",
33 "system/bt/btif/co",
34 "system/bt/hci/include",
35 "system/bt/vnd/include",
36 "system/bt/embdrv/sbc/encoder/include",
37 "system/bt/embdrv/sbc/decoder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080038 "system/bt/utils/include",
39 ],
40 logtags: ["../EventLogTags.logtags"],
41 shared_libs: [
Andre Eisenbach796523d2016-11-10 16:11:00 -080042 "android.hardware.bluetooth@1.0",
43 "libaudioclient",
Jack Hee2eeff42016-12-07 18:25:17 -080044 "libcutils",
45 "libdl",
Andre Eisenbach796523d2016-11-10 16:11:00 -080046 "libhidlbase",
47 "libhidltransport",
48 "libhwbinder",
Jack Hee2eeff42016-12-07 18:25:17 -080049 "liblog",
Jack Hee2eeff42016-12-07 18:25:17 -080050 "libprotobuf-cpp-lite",
Jack Hee2eeff42016-12-07 18:25:17 -080051 "libutils",
52 "libtinyxml2",
Andre Eisenbach796523d2016-11-10 16:11:00 -080053 "libz",
Jack Hee2eeff42016-12-07 18:25:17 -080054 ],
55 static_libs: [
56 "libbt-sbc-decoder",
57 "libbt-sbc-encoder",
Pavlin Radoslavovd5f49602017-01-03 16:53:18 -080058 "libFraunhoferAAC",
Jack Hee2eeff42016-12-07 18:25:17 -080059 "libudrv-uipc",
60 ],
61 whole_static_libs: [
62 "libbt-bta",
63 "libbtdevice",
64 "libbtif",
65 "libbt-hci",
66 "libbt-protos",
67 "libbt-stack",
68 "libbt-utils",
69 "libbtcore",
70 "libosi",
71 ],
72 // Shared library link options.
73 // References to global symbols and functions should bind to the library
74 // itself. This is to avoid issues with some of the unit/system tests
75 // that might link statically with some of the code in the library, and
76 // also dlopen(3) the shared library.
77 ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
78 required: [
79 "bt_did.conf",
80 "bt_stack.conf",
Jack Hee2eeff42016-12-07 18:25:17 -080081 "libldacBT_enc",
Pavlin Radoslavove4f2b612017-03-28 18:40:32 -070082 "libldacBT_abr",
Jack Hee2eeff42016-12-07 18:25:17 -080083 ],
84 cflags: [
85 "-DBUILDCFG",
86 ],
87}