Jakub Pawlowski | f2f207a | 2017-09-23 14:47:20 -0700 | [diff] [blame^] | 1 | |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 2 | // Bluetooth main HW module / shared library for target |
| 3 | // ======================================================== |
| 4 | cc_library_shared { |
| 5 | name: "bluetooth.default", |
| 6 | defaults: ["fluoride_defaults"], |
| 7 | relative_install_path: "hw", |
Jakub Pawlowski | f2f207a | 2017-09-23 14:47:20 -0700 | [diff] [blame^] | 8 | header_libs: ["bluetooth.default_headers"], |
| 9 | export_header_lib_headers: ["bluetooth.default_headers"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 10 | 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 Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 25 | "system/bt/internal_include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 26 | "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 He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 38 | "system/bt/utils/include", |
| 39 | ], |
| 40 | logtags: ["../EventLogTags.logtags"], |
| 41 | shared_libs: [ |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 42 | "android.hardware.bluetooth@1.0", |
| 43 | "libaudioclient", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 44 | "libcutils", |
| 45 | "libdl", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 46 | "libhidlbase", |
| 47 | "libhidltransport", |
| 48 | "libhwbinder", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 49 | "liblog", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 50 | "libprotobuf-cpp-lite", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 51 | "libutils", |
| 52 | "libtinyxml2", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 53 | "libz", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 54 | ], |
| 55 | static_libs: [ |
| 56 | "libbt-sbc-decoder", |
| 57 | "libbt-sbc-encoder", |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 58 | "libFraunhoferAAC", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 59 | "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 He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 81 | "libldacBT_enc", |
Pavlin Radoslavov | e4f2b61 | 2017-03-28 18:40:32 -0700 | [diff] [blame] | 82 | "libldacBT_abr", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 83 | ], |
| 84 | cflags: [ |
| 85 | "-DBUILDCFG", |
| 86 | ], |
| 87 | } |