Jakub Pawlowski | 776fb3d | 2017-09-23 14:47:20 -0700 | [diff] [blame] | 1 | |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 2 | // Bluetooth main HW module / shared library for target |
| 3 | // ======================================================== |
| 4 | cc_library_shared { |
Jakub Pawlowski | a75a654 | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 5 | name: "libbluetooth", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 6 | defaults: ["fluoride_defaults"], |
Jakub Pawlowski | a75a654 | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 7 | header_libs: ["libbluetooth_headers"], |
| 8 | export_header_lib_headers: ["libbluetooth_headers"], |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 9 | 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 Pawlowski | 9e9eb4b | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 24 | "packages/modules/Bluetooth/system/internal_include", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 25 | "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 He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 37 | "packages/modules/Bluetooth/system/utils/include", |
| 38 | ], |
| 39 | logtags: ["../../EventLogTags.logtags"], |
| 40 | shared_libs: [ |
Andre Eisenbach | b76bbdc | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 41 | "android.hardware.bluetooth@1.0", |
| 42 | "libaudioclient", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 43 | "libcutils", |
| 44 | "libdl", |
Andre Eisenbach | b76bbdc | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 45 | "libhidlbase", |
| 46 | "libhidltransport", |
| 47 | "libhwbinder", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 48 | "liblog", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 49 | "libprotobuf-cpp-lite", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 50 | "libutils", |
| 51 | "libtinyxml2", |
Andre Eisenbach | b76bbdc | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 52 | "libz", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 53 | ], |
| 54 | static_libs: [ |
| 55 | "libbt-sbc-decoder", |
| 56 | "libbt-sbc-encoder", |
Pavlin Radoslavov | 262b15d | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 57 | "libFraunhoferAAC", |
Jakub Pawlowski | f9a0e63 | 2017-11-24 15:19:54 -0800 | [diff] [blame^] | 58 | "libg722codec", |
Jack He | 65b2a57 | 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 | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 81 | "libldacBT_enc", |
Pavlin Radoslavov | c7d2d87 | 2017-03-28 18:40:32 -0700 | [diff] [blame] | 82 | "libldacBT_abr", |
Jack He | 65b2a57 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 83 | ], |
| 84 | cflags: [ |
| 85 | "-DBUILDCFG", |
| 86 | ], |
| 87 | } |
Pavlin Radoslavov | 96e9e34 | 2017-11-02 14:27:09 -0700 | [diff] [blame] | 88 | |
| 89 | cc_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 | } |