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 { |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 5 | name: "libbluetooth", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 6 | defaults: ["fluoride_defaults"], |
Jakub Pawlowski | e56fabc | 2017-10-19 00:26:09 -0700 | [diff] [blame] | 7 | header_libs: ["libbluetooth_headers"], |
| 8 | export_header_lib_headers: ["libbluetooth_headers"], |
Jack He | e2eeff4 | 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 | "system/bt", |
| 20 | "system/bt/bta/include", |
| 21 | "system/bt/bta/sys", |
| 22 | "system/bt/bta/dm", |
| 23 | "system/bt/btcore/include", |
Jakub Pawlowski | ecace46 | 2017-10-17 16:40:41 -0700 | [diff] [blame] | 24 | "system/bt/internal_include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 25 | "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 He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 37 | "system/bt/utils/include", |
Martin Brabham | 9a3f38b | 2019-02-01 13:42:58 -0800 | [diff] [blame] | 38 | "system/security/keystore/include", |
| 39 | "hardware/interfaces/keymaster/4.0/support/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 40 | ], |
| 41 | logtags: ["../EventLogTags.logtags"], |
| 42 | shared_libs: [ |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 43 | "android.hardware.bluetooth@1.0", |
Sunny Kapdi | d66d954 | 2018-02-12 21:52:50 -0800 | [diff] [blame] | 44 | "android.hardware.bluetooth.a2dp@1.0", |
Cheney Ni | ad05f3e | 2018-11-08 16:41:02 +0800 | [diff] [blame] | 45 | "android.hardware.bluetooth.audio@2.0", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 46 | "libaudioclient", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 47 | "libcutils", |
| 48 | "libdl", |
Cheney Ni | ad05f3e | 2018-11-08 16:41:02 +0800 | [diff] [blame] | 49 | "libfmq", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 50 | "libhidlbase", |
| 51 | "libhidltransport", |
| 52 | "libhwbinder", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 53 | "liblog", |
Suren Baghdasaryan | 08bea74 | 2018-12-19 17:36:37 -0800 | [diff] [blame] | 54 | "libprocessgroup", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 55 | "libprotobuf-cpp-lite", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 56 | "libutils", |
| 57 | "libtinyxml2", |
Andre Eisenbach | 796523d | 2016-11-10 16:11:00 -0800 | [diff] [blame] | 58 | "libz", |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 59 | "libcrypto", |
Martin Brabham | 9a3f38b | 2019-02-01 13:42:58 -0800 | [diff] [blame] | 60 | "android.hardware.keymaster@4.0", |
| 61 | "android.hardware.keymaster@3.0", |
| 62 | "libkeymaster4support", |
| 63 | "libkeystore_aidl", |
| 64 | "libkeystore_binder", |
| 65 | "libkeystore_parcelables", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 66 | ], |
| 67 | static_libs: [ |
| 68 | "libbt-sbc-decoder", |
| 69 | "libbt-sbc-encoder", |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 70 | "libFraunhoferAAC", |
Jakub Pawlowski | 2fd870e | 2017-11-24 15:19:54 -0800 | [diff] [blame] | 71 | "libg722codec", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 72 | "libudrv-uipc", |
| 73 | ], |
| 74 | whole_static_libs: [ |
| 75 | "libbt-bta", |
Jack He | 6d11052 | 2018-07-25 21:43:01 -0700 | [diff] [blame] | 76 | "libbt-common", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 77 | "libbtdevice", |
| 78 | "libbtif", |
| 79 | "libbt-hci", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 80 | "libbt-stack", |
| 81 | "libbt-utils", |
| 82 | "libbtcore", |
| 83 | "libosi", |
Jack He | ad18de0 | 2018-03-03 00:03:25 -0800 | [diff] [blame] | 84 | "libbt-protos-lite", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 85 | ], |
| 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 He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 95 | "libldacBT_enc", |
Pavlin Radoslavov | e4f2b61 | 2017-03-28 18:40:32 -0700 | [diff] [blame] | 96 | "libldacBT_abr", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 97 | ], |
| 98 | cflags: [ |
| 99 | "-DBUILDCFG", |
| 100 | ], |
Peter Collingbourne | 6fe96ce | 2018-12-06 17:04:43 -0800 | [diff] [blame] | 101 | sanitize: { |
| 102 | scs: true, |
| 103 | }, |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 104 | } |
Pavlin Radoslavov | 4aecb89 | 2017-11-02 14:27:09 -0700 | [diff] [blame] | 105 | |
| 106 | cc_library_static { |
| 107 | name: "libbluetooth-for-tests", |
| 108 | defaults: ["fluoride_defaults"], |
| 109 | |
| 110 | srcs: [ |
Pavlin Radoslavov | d752229 | 2017-11-24 19:12:11 -0800 | [diff] [blame] | 111 | "bte_conf.cc", |
| 112 | "bte_init.cc", |
Pavlin Radoslavov | 4aecb89 | 2017-11-02 14:27:09 -0700 | [diff] [blame] | 113 | "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 | } |