blob: f787e9e6e76a1d3efe0a649ca21dd725ad586229 [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 {
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -07005 name: "libbluetooth",
Jack Hee2eeff42016-12-07 18:25:17 -08006 defaults: ["fluoride_defaults"],
Jakub Pawlowskie56fabc2017-10-19 00:26:09 -07007 header_libs: ["libbluetooth_headers"],
8 export_header_lib_headers: ["libbluetooth_headers"],
Jack Hee2eeff42016-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 "system/bt",
20 "system/bt/bta/include",
21 "system/bt/bta/sys",
22 "system/bt/bta/dm",
23 "system/bt/btcore/include",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070024 "system/bt/internal_include",
Jack Hee2eeff42016-12-07 18:25:17 -080025 "system/bt/stack/include",
26 "system/bt/stack/l2cap",
27 "system/bt/stack/a2dp",
28 "system/bt/stack/btm",
29 "system/bt/stack/avdt",
30 "system/bt/udrv/include",
31 "system/bt/btif/include",
32 "system/bt/btif/co",
33 "system/bt/hci/include",
34 "system/bt/vnd/include",
35 "system/bt/embdrv/sbc/encoder/include",
36 "system/bt/embdrv/sbc/decoder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080037 "system/bt/utils/include",
Martin Brabham9a3f38b2019-02-01 13:42:58 -080038 "system/security/keystore/include",
39 "hardware/interfaces/keymaster/4.0/support/include",
Jack Hee2eeff42016-12-07 18:25:17 -080040 ],
41 logtags: ["../EventLogTags.logtags"],
42 shared_libs: [
Andre Eisenbach796523d2016-11-10 16:11:00 -080043 "android.hardware.bluetooth@1.0",
Sunny Kapdid66d9542018-02-12 21:52:50 -080044 "android.hardware.bluetooth.a2dp@1.0",
Cheney Niad05f3e2018-11-08 16:41:02 +080045 "android.hardware.bluetooth.audio@2.0",
Andre Eisenbach796523d2016-11-10 16:11:00 -080046 "libaudioclient",
Jack Hee2eeff42016-12-07 18:25:17 -080047 "libcutils",
48 "libdl",
Cheney Niad05f3e2018-11-08 16:41:02 +080049 "libfmq",
Andre Eisenbach796523d2016-11-10 16:11:00 -080050 "libhidlbase",
51 "libhidltransport",
52 "libhwbinder",
Jack Hee2eeff42016-12-07 18:25:17 -080053 "liblog",
Suren Baghdasaryan08bea742018-12-19 17:36:37 -080054 "libprocessgroup",
Jack Hee2eeff42016-12-07 18:25:17 -080055 "libprotobuf-cpp-lite",
Jack Hee2eeff42016-12-07 18:25:17 -080056 "libutils",
57 "libtinyxml2",
Andre Eisenbach796523d2016-11-10 16:11:00 -080058 "libz",
Jack He78b69d92018-11-16 02:59:43 -080059 "libcrypto",
Martin Brabham9a3f38b2019-02-01 13:42:58 -080060 "android.hardware.keymaster@4.0",
61 "android.hardware.keymaster@3.0",
62 "libkeymaster4support",
63 "libkeystore_aidl",
64 "libkeystore_binder",
65 "libkeystore_parcelables",
Jack Hee2eeff42016-12-07 18:25:17 -080066 ],
67 static_libs: [
68 "libbt-sbc-decoder",
69 "libbt-sbc-encoder",
Pavlin Radoslavovd5f49602017-01-03 16:53:18 -080070 "libFraunhoferAAC",
Jakub Pawlowski2fd870e2017-11-24 15:19:54 -080071 "libg722codec",
Jack Hee2eeff42016-12-07 18:25:17 -080072 "libudrv-uipc",
73 ],
74 whole_static_libs: [
75 "libbt-bta",
Jack He6d110522018-07-25 21:43:01 -070076 "libbt-common",
Jack Hee2eeff42016-12-07 18:25:17 -080077 "libbtdevice",
78 "libbtif",
79 "libbt-hci",
Jack Hee2eeff42016-12-07 18:25:17 -080080 "libbt-stack",
81 "libbt-utils",
82 "libbtcore",
83 "libosi",
Jack Head18de02018-03-03 00:03:25 -080084 "libbt-protos-lite",
Jack Hee2eeff42016-12-07 18:25:17 -080085 ],
86 // Shared library link options.
87 // References to global symbols and functions should bind to the library
88 // itself. This is to avoid issues with some of the unit/system tests
89 // that might link statically with some of the code in the library, and
90 // also dlopen(3) the shared library.
91 ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
92 required: [
93 "bt_did.conf",
94 "bt_stack.conf",
Jack Hee2eeff42016-12-07 18:25:17 -080095 "libldacBT_enc",
Pavlin Radoslavove4f2b612017-03-28 18:40:32 -070096 "libldacBT_abr",
Jack Hee2eeff42016-12-07 18:25:17 -080097 ],
98 cflags: [
99 "-DBUILDCFG",
100 ],
Peter Collingbourne6fe96ce2018-12-06 17:04:43 -0800101 sanitize: {
102 scs: true,
103 },
Jack Hee2eeff42016-12-07 18:25:17 -0800104}
Pavlin Radoslavov4aecb892017-11-02 14:27:09 -0700105
106cc_library_static {
107 name: "libbluetooth-for-tests",
108 defaults: ["fluoride_defaults"],
109
110 srcs: [
Pavlin Radoslavovd7522292017-11-24 19:12:11 -0800111 "bte_conf.cc",
112 "bte_init.cc",
Pavlin Radoslavov4aecb892017-11-02 14:27:09 -0700113 "bte_init_cpp_logging.cc",
114 "bte_logmsg.cc",
115 "bte_main.cc",
116 "stack_config.cc",
117 ],
118 include_dirs: [
119 "system/bt",
120 "system/bt/bta/include",
121 "system/bt/btcore/include",
122 "system/bt/btif/include",
123 "system/bt/hci/include",
124 "system/bt/internal_include",
125 "system/bt/stack/include",
126 "system/bt/utils/include",
127 ],
128 cflags: [
129 "-DBUILDCFG",
130 ],
131}