blob: 1faf03303cb35cb085cb5c90cf52d3842ac3ca8d [file] [log] [blame]
Jakub Pawlowski776fb3d2017-09-23 14:47:20 -07001
Jack He65b2a572016-12-07 18:25:17 -08002// Bluetooth main HW module / shared library for target
3// ========================================================
4cc_library_shared {
Jakub Pawlowskia75a6542017-10-19 00:26:09 -07005 name: "libbluetooth",
Jack He65b2a572016-12-07 18:25:17 -08006 defaults: ["fluoride_defaults"],
Jakub Pawlowskia75a6542017-10-19 00:26:09 -07007 header_libs: ["libbluetooth_headers"],
8 export_header_lib_headers: ["libbluetooth_headers"],
Jack He65b2a572016-12-07 18:25:17 -08009 srcs: [
10 // platform specific
11 "bte_conf.cc",
12 "bte_init.cc",
13 "bte_init_cpp_logging.cc",
14 "bte_logmsg.cc",
15 "bte_main.cc",
16 "stack_config.cc",
17 ],
18 include_dirs: [
19 "packages/modules/Bluetooth/system",
20 "packages/modules/Bluetooth/system/bta/include",
21 "packages/modules/Bluetooth/system/bta/sys",
22 "packages/modules/Bluetooth/system/bta/dm",
23 "packages/modules/Bluetooth/system/btcore/include",
Jakub Pawlowski9e9eb4b2017-10-17 16:40:41 -070024 "packages/modules/Bluetooth/system/internal_include",
Jack He65b2a572016-12-07 18:25:17 -080025 "packages/modules/Bluetooth/system/stack/include",
26 "packages/modules/Bluetooth/system/stack/l2cap",
27 "packages/modules/Bluetooth/system/stack/a2dp",
28 "packages/modules/Bluetooth/system/stack/btm",
29 "packages/modules/Bluetooth/system/stack/avdt",
30 "packages/modules/Bluetooth/system/udrv/include",
31 "packages/modules/Bluetooth/system/btif/include",
32 "packages/modules/Bluetooth/system/btif/co",
33 "packages/modules/Bluetooth/system/hci/include",
34 "packages/modules/Bluetooth/system/vnd/include",
35 "packages/modules/Bluetooth/system/embdrv/sbc/encoder/include",
36 "packages/modules/Bluetooth/system/embdrv/sbc/decoder/include",
Jack He65b2a572016-12-07 18:25:17 -080037 "packages/modules/Bluetooth/system/utils/include",
38 ],
39 logtags: ["../../EventLogTags.logtags"],
40 shared_libs: [
Andre Eisenbachb76bbdc2016-11-10 16:11:00 -080041 "android.hardware.bluetooth@1.0",
42 "libaudioclient",
Jack He65b2a572016-12-07 18:25:17 -080043 "libcutils",
44 "libdl",
Andre Eisenbachb76bbdc2016-11-10 16:11:00 -080045 "libhidlbase",
46 "libhidltransport",
47 "libhwbinder",
Jack He65b2a572016-12-07 18:25:17 -080048 "liblog",
Jack He65b2a572016-12-07 18:25:17 -080049 "libprotobuf-cpp-lite",
Jack He65b2a572016-12-07 18:25:17 -080050 "libutils",
51 "libtinyxml2",
Andre Eisenbachb76bbdc2016-11-10 16:11:00 -080052 "libz",
Jack He65b2a572016-12-07 18:25:17 -080053 ],
54 static_libs: [
55 "libbt-sbc-decoder",
56 "libbt-sbc-encoder",
Pavlin Radoslavov262b15d2017-01-03 16:53:18 -080057 "libFraunhoferAAC",
Jakub Pawlowskif9a0e632017-11-24 15:19:54 -080058 "libg722codec",
Jack He65b2a572016-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 He65b2a572016-12-07 18:25:17 -080081 "libldacBT_enc",
Pavlin Radoslavovc7d2d872017-03-28 18:40:32 -070082 "libldacBT_abr",
Jack He65b2a572016-12-07 18:25:17 -080083 ],
84 cflags: [
85 "-DBUILDCFG",
86 ],
87}
Pavlin Radoslavov96e9e342017-11-02 14:27:09 -070088
89cc_library_static {
90 name: "libbluetooth-for-tests",
91 defaults: ["fluoride_defaults"],
92
93 srcs: [
94 "bte_init_cpp_logging.cc",
95 "bte_logmsg.cc",
96 "bte_main.cc",
97 "stack_config.cc",
98 ],
99 include_dirs: [
100 "packages/modules/Bluetooth/system",
101 "packages/modules/Bluetooth/system/bta/include",
102 "packages/modules/Bluetooth/system/btcore/include",
103 "packages/modules/Bluetooth/system/btif/include",
104 "packages/modules/Bluetooth/system/hci/include",
105 "packages/modules/Bluetooth/system/internal_include",
106 "packages/modules/Bluetooth/system/stack/include",
107 "packages/modules/Bluetooth/system/utils/include",
108 ],
109 cflags: [
110 "-DBUILDCFG",
111 ],
112}