1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
| cc_defaults {
| name: "fluoride_bta_defaults",
| defaults: ["fluoride_defaults"],
| local_include_dirs: [
| "include",
| "sys",
| "dm",
| "hd",
| "hh",
| ],
| include_dirs: [
| "system/bt",
| "system/bt/bta/include",
| "system/bt/btcore/include",
| "system/bt/btif/avrcp",
| "system/bt/btif/include",
| "system/bt/hci/include",
| "system/bt/internal_include",
| "system/bt/stack/include",
| "system/bt/stack/btm",
| "system/bt/udrv/include",
| "system/bt/vnd/include",
| "system/bt/utils/include",
| ],
| shared_libs: [
| "libcutils",
| ],
| header_libs: ["libbluetooth_headers"],
| cflags: ["-DBUILDCFG"],
| }
|
| // BTA static library for target
| // ========================================================
| cc_library_static {
| name: "libbt-bta",
| defaults: ["fluoride_bta_defaults"],
| cflags: ["-Wno-implicit-fallthrough"],
| srcs: [
| "ag/bta_ag_act.cc",
| "ag/bta_ag_api.cc",
| "ag/bta_ag_at.cc",
| "ag/bta_ag_cfg.cc",
| "ag/bta_ag_cmd.cc",
| "ag/bta_ag_main.cc",
| "ag/bta_ag_rfc.cc",
| "ag/bta_ag_sco.cc",
| "ag/bta_ag_sdp.cc",
| "ar/bta_ar.cc",
| "av/bta_av_aact.cc",
| "av/bta_av_act.cc",
| "av/bta_av_api.cc",
| "av/bta_av_cfg.cc",
| "av/bta_av_ci.cc",
| "av/bta_av_main.cc",
| "av/bta_av_ssm.cc",
| "dm/bta_dm_act.cc",
| "dm/bta_dm_api.cc",
| "dm/bta_dm_cfg.cc",
| "dm/bta_dm_ci.cc",
| "dm/bta_dm_main.cc",
| "dm/bta_dm_pm.cc",
| "gatt/bta_gattc_act.cc",
| "gatt/bta_gattc_api.cc",
| "gatt/bta_gattc_cache.cc",
| "gatt/bta_gattc_main.cc",
| "gatt/bta_gattc_queue.cc",
| "gatt/bta_gattc_utils.cc",
| "gatt/bta_gatts_act.cc",
| "gatt/bta_gatts_api.cc",
| "gatt/bta_gatts_main.cc",
| "gatt/bta_gatts_utils.cc",
| "gatt/database.cc",
| "gatt/database_builder.cc",
| "hearing_aid/hearing_aid.cc",
| "hearing_aid/hearing_aid_audio_source.cc",
| "hf_client/bta_hf_client_act.cc",
| "hf_client/bta_hf_client_api.cc",
| "hf_client/bta_hf_client_at.cc",
| "hf_client/bta_hf_client_main.cc",
| "hf_client/bta_hf_client_rfc.cc",
| "hf_client/bta_hf_client_sco.cc",
| "hf_client/bta_hf_client_sdp.cc",
| "hh/bta_hh_act.cc",
| "hh/bta_hh_api.cc",
| "hh/bta_hh_cfg.cc",
| "hh/bta_hh_le.cc",
| "hh/bta_hh_main.cc",
| "hh/bta_hh_utils.cc",
| "hd/bta_hd_act.cc",
| "hd/bta_hd_api.cc",
| "hd/bta_hd_main.cc",
| "jv/bta_jv_act.cc",
| "jv/bta_jv_api.cc",
| "jv/bta_jv_cfg.cc",
| "mce/bta_mce_act.cc",
| "mce/bta_mce_api.cc",
| "mce/bta_mce_cfg.cc",
| "mce/bta_mce_main.cc",
| "pan/bta_pan_act.cc",
| "pan/bta_pan_api.cc",
| "pan/bta_pan_ci.cc",
| "pan/bta_pan_main.cc",
| "sdp/bta_sdp.cc",
| "sdp/bta_sdp_act.cc",
| "sdp/bta_sdp_api.cc",
| "sdp/bta_sdp_cfg.cc",
| "sys/bta_sys_conn.cc",
| "sys/bta_sys_main.cc",
| "sys/utl.cc",
| ],
| static_libs: [
| "avrcp-target-service",
| "lib-bt-packets",
| ],
| whole_static_libs: [
| "libaudio-hearing-aid-hw-utils",
| ],
| }
|
| // bta unit tests for target
| // ========================================================
| cc_test {
| name: "net_test_bta",
| defaults: ["fluoride_bta_defaults"],
| srcs: [
| "test/bta_hf_client_test.cc",
| "test/gatt/database_builder_test.cc",
| "test/gatt/database_builder_sample_device_test.cc",
| "test/gatt/database_test.cc",
| ],
| shared_libs: [
| "libcrypto",
| "liblog",
| "libprotobuf-cpp-lite",
| ],
| static_libs: [
| "libbtcore",
| "libbt-bta",
| "libbt-audio-hal-interface",
| "libbluetooth-types",
| "libbt-protos-lite",
| "libosi",
| "libbt-common",
| ],
| }
|
|