Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 1 | // Bluetooth main HW module / shared library for target |
| 2 | // ======================================================== |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 3 | filegroup { |
| 4 | name: "LibBluetoothSources", |
| 5 | srcs: [ |
| 6 | "bte_conf.cc", |
| 7 | "bte_init.cc", |
| 8 | "bte_init_cpp_logging.cc", |
| 9 | "bte_logmsg.cc", |
| 10 | "bte_main.cc", |
Chris Manton | faedfe2 | 2019-10-01 11:26:49 -0700 | [diff] [blame] | 11 | "shim/btm.cc", |
| 12 | "shim/btm_api.cc", |
Chris Manton | 229de74 | 2019-09-10 11:23:13 -0700 | [diff] [blame] | 13 | "shim/controller.cc", |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 14 | "shim/entry.cc", |
Chris Manton | 2f7e160 | 2019-09-30 10:52:55 -0700 | [diff] [blame] | 15 | "shim/hci_layer.cc", |
| 16 | "shim/l2c_api.cc", |
| 17 | "shim/l2cap.cc", |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 18 | "shim/shim.cc", |
| 19 | "stack_config.cc", |
| 20 | ] |
| 21 | } |
| 22 | |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 23 | cc_library_shared { |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 24 | name: "libbluetooth", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 25 | defaults: ["fluoride_defaults"], |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 26 | header_libs: ["libbluetooth_headers"], |
| 27 | export_header_lib_headers: ["libbluetooth_headers"], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 28 | srcs: [ |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 29 | ":LibBluetoothSources", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 30 | ], |
| 31 | include_dirs: [ |
| 32 | "system/bt", |
| 33 | "system/bt/bta/include", |
| 34 | "system/bt/bta/sys", |
| 35 | "system/bt/bta/dm", |
| 36 | "system/bt/btcore/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 37 | "system/bt/internal_include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 38 | "system/bt/stack/include", |
| 39 | "system/bt/stack/l2cap", |
| 40 | "system/bt/stack/a2dp", |
| 41 | "system/bt/stack/btm", |
| 42 | "system/bt/stack/avdt", |
| 43 | "system/bt/udrv/include", |
| 44 | "system/bt/btif/include", |
| 45 | "system/bt/btif/co", |
| 46 | "system/bt/hci/include", |
| 47 | "system/bt/vnd/include", |
| 48 | "system/bt/embdrv/sbc/encoder/include", |
| 49 | "system/bt/embdrv/sbc/decoder/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 50 | "system/bt/utils/include", |
Martin Brabham | 9a3f38b | 2019-02-01 13:42:58 -0800 | [diff] [blame] | 51 | "system/security/keystore/include", |
| 52 | "hardware/interfaces/keymaster/4.0/support/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 53 | ], |
| 54 | logtags: ["../EventLogTags.logtags"], |
| 55 | shared_libs: [ |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 56 | "android.hardware.bluetooth@1.0", |
Sunny Kapdi | d66d954 | 2018-02-12 21:52:50 -0800 | [diff] [blame] | 57 | "android.hardware.bluetooth.a2dp@1.0", |
Cheney Ni | ad05f3e | 2018-11-08 16:41:02 +0800 | [diff] [blame] | 58 | "android.hardware.bluetooth.audio@2.0", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 59 | "libaudioclient", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 60 | "libcutils", |
| 61 | "libdl", |
Cheney Ni | ad05f3e | 2018-11-08 16:41:02 +0800 | [diff] [blame] | 62 | "libfmq", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 63 | "libhidlbase", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 64 | "liblog", |
Suren Baghdasaryan | 08bea74 | 2018-12-19 17:36:37 -0800 | [diff] [blame] | 65 | "libprocessgroup", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 66 | "libprotobuf-cpp-lite", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 67 | "libutils", |
| 68 | "libtinyxml2", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 69 | "libz", |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 70 | "libcrypto", |
Martin Brabham | 9a3f38b | 2019-02-01 13:42:58 -0800 | [diff] [blame] | 71 | "android.hardware.keymaster@4.0", |
| 72 | "android.hardware.keymaster@3.0", |
| 73 | "libkeymaster4support", |
| 74 | "libkeystore_aidl", |
| 75 | "libkeystore_binder", |
| 76 | "libkeystore_parcelables", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 77 | ], |
| 78 | static_libs: [ |
| 79 | "libbt-sbc-decoder", |
| 80 | "libbt-sbc-encoder", |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 81 | "libFraunhoferAAC", |
Jakub Pawlowski | 2fd870e | 2017-11-24 15:19:54 -0800 | [diff] [blame] | 82 | "libg722codec", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 83 | "libudrv-uipc", |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 84 | "libbluetooth_gd", // Gabeldorsche |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 85 | ], |
| 86 | whole_static_libs: [ |
| 87 | "libbt-bta", |
Jack He | 6d11052 | 2018-07-25 21:43:01 -0700 | [diff] [blame] | 88 | "libbt-common", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 89 | "libbtdevice", |
| 90 | "libbtif", |
| 91 | "libbt-hci", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 92 | "libbt-stack", |
| 93 | "libbt-utils", |
| 94 | "libbtcore", |
| 95 | "libosi", |
Jack He | ad18de0 | 2018-03-03 00:03:25 -0800 | [diff] [blame] | 96 | "libbt-protos-lite", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 97 | ], |
| 98 | // Shared library link options. |
| 99 | // References to global symbols and functions should bind to the library |
| 100 | // itself. This is to avoid issues with some of the unit/system tests |
| 101 | // that might link statically with some of the code in the library, and |
| 102 | // also dlopen(3) the shared library. |
| 103 | ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"], |
| 104 | required: [ |
| 105 | "bt_did.conf", |
| 106 | "bt_stack.conf", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 107 | "libldacBT_enc", |
Pavlin Radoslavov | e4f2b61 | 2017-03-28 18:40:32 -0700 | [diff] [blame] | 108 | "libldacBT_abr", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 109 | ], |
| 110 | cflags: [ |
| 111 | "-DBUILDCFG", |
| 112 | ], |
Peter Collingbourne | 6fe96ce | 2018-12-06 17:04:43 -0800 | [diff] [blame] | 113 | sanitize: { |
| 114 | scs: true, |
| 115 | }, |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 116 | } |
Pavlin Radoslavov | 4aecb89 | 2017-11-02 14:27:09 -0700 | [diff] [blame] | 117 | |
| 118 | cc_library_static { |
| 119 | name: "libbluetooth-for-tests", |
| 120 | defaults: ["fluoride_defaults"], |
| 121 | |
| 122 | srcs: [ |
Chris Manton | 1bb0e51 | 2019-09-09 21:11:59 -0700 | [diff] [blame] | 123 | ":LibBluetoothSources", |
| 124 | "shim/entry_for_test.cc", |
Pavlin Radoslavov | 4aecb89 | 2017-11-02 14:27:09 -0700 | [diff] [blame] | 125 | ], |
| 126 | include_dirs: [ |
| 127 | "system/bt", |
| 128 | "system/bt/bta/include", |
| 129 | "system/bt/btcore/include", |
| 130 | "system/bt/btif/include", |
| 131 | "system/bt/hci/include", |
| 132 | "system/bt/internal_include", |
| 133 | "system/bt/stack/include", |
| 134 | "system/bt/utils/include", |
| 135 | ], |
| 136 | cflags: [ |
| 137 | "-DBUILDCFG", |
| 138 | ], |
| 139 | } |