blob: 47cd90728a9b95a6662b12b6b266cfb1ac001c94 [file] [log] [blame]
Jack He65b2a572016-12-07 18:25:17 -08001cc_defaults {
2 name: "fluoride_bta_defaults",
3 defaults: ["fluoride_defaults"],
4 local_include_dirs: [
5 "include",
6 "sys",
7 "dm",
8 "hd",
9 "hh",
Jack He65b2a572016-12-07 18:25:17 -080010 ],
11 include_dirs: [
12 "packages/modules/Bluetooth/system",
13 "packages/modules/Bluetooth/system/bta/include",
14 "packages/modules/Bluetooth/system/btcore/include",
15 "packages/modules/Bluetooth/system/hci/include",
Jakub Pawlowski9e9eb4b2017-10-17 16:40:41 -070016 "packages/modules/Bluetooth/system/internal_include",
Jack He65b2a572016-12-07 18:25:17 -080017 "packages/modules/Bluetooth/system/stack/include",
18 "packages/modules/Bluetooth/system/stack/btm",
19 "packages/modules/Bluetooth/system/udrv/include",
20 "packages/modules/Bluetooth/system/vnd/include",
21 "packages/modules/Bluetooth/system/utils/include",
22 ],
23 shared_libs: [
24 "libcutils",
25 ],
Jakub Pawlowskia75a6542017-10-19 00:26:09 -070026 header_libs: ["libbluetooth_headers"],
Jack He65b2a572016-12-07 18:25:17 -080027 cflags: ["-DBUILDCFG"],
28}
29
30// BTA static library for target
31// ========================================================
32cc_library_static {
33 name: "libbt-bta",
34 defaults: ["fluoride_bta_defaults"],
35 srcs: [
36 "ag/bta_ag_act.cc",
37 "ag/bta_ag_api.cc",
38 "ag/bta_ag_at.cc",
39 "ag/bta_ag_cfg.cc",
Jack He65b2a572016-12-07 18:25:17 -080040 "ag/bta_ag_cmd.cc",
41 "ag/bta_ag_main.cc",
42 "ag/bta_ag_rfc.cc",
43 "ag/bta_ag_sco.cc",
44 "ag/bta_ag_sdp.cc",
45 "ar/bta_ar.cc",
46 "av/bta_av_aact.cc",
47 "av/bta_av_act.cc",
48 "av/bta_av_api.cc",
49 "av/bta_av_cfg.cc",
50 "av/bta_av_ci.cc",
51 "av/bta_av_main.cc",
52 "av/bta_av_ssm.cc",
Jack He65b2a572016-12-07 18:25:17 -080053 "dm/bta_dm_act.cc",
54 "dm/bta_dm_api.cc",
55 "dm/bta_dm_cfg.cc",
56 "dm/bta_dm_ci.cc",
57 "dm/bta_dm_main.cc",
58 "dm/bta_dm_pm.cc",
Jack He65b2a572016-12-07 18:25:17 -080059 "gatt/bta_gattc_act.cc",
60 "gatt/bta_gattc_api.cc",
61 "gatt/bta_gattc_cache.cc",
62 "gatt/bta_gattc_main.cc",
Jakub Pawlowski19d0aae2017-11-29 21:49:32 -080063 "gatt/bta_gattc_queue.cc",
Jack He65b2a572016-12-07 18:25:17 -080064 "gatt/bta_gattc_utils.cc",
65 "gatt/bta_gatts_act.cc",
66 "gatt/bta_gatts_api.cc",
67 "gatt/bta_gatts_main.cc",
68 "gatt/bta_gatts_utils.cc",
Jakub Pawlowski7d06e572018-02-28 22:44:42 -080069 "hearing_aid/hearing_aid.cc",
Jack He65b2a572016-12-07 18:25:17 -080070 "hf_client/bta_hf_client_act.cc",
71 "hf_client/bta_hf_client_api.cc",
72 "hf_client/bta_hf_client_at.cc",
73 "hf_client/bta_hf_client_main.cc",
74 "hf_client/bta_hf_client_rfc.cc",
75 "hf_client/bta_hf_client_sco.cc",
76 "hf_client/bta_hf_client_sdp.cc",
77 "hh/bta_hh_act.cc",
78 "hh/bta_hh_api.cc",
79 "hh/bta_hh_cfg.cc",
80 "hh/bta_hh_le.cc",
81 "hh/bta_hh_main.cc",
82 "hh/bta_hh_utils.cc",
83 "hl/bta_hl_act.cc",
84 "hl/bta_hl_api.cc",
85 "hl/bta_hl_ci.cc",
86 "hl/bta_hl_main.cc",
87 "hl/bta_hl_sdp.cc",
88 "hl/bta_hl_utils.cc",
89 "hd/bta_hd_act.cc",
90 "hd/bta_hd_api.cc",
91 "hd/bta_hd_main.cc",
92 "jv/bta_jv_act.cc",
93 "jv/bta_jv_api.cc",
94 "jv/bta_jv_cfg.cc",
Jack He65b2a572016-12-07 18:25:17 -080095 "mce/bta_mce_act.cc",
96 "mce/bta_mce_api.cc",
97 "mce/bta_mce_cfg.cc",
98 "mce/bta_mce_main.cc",
99 "pan/bta_pan_act.cc",
100 "pan/bta_pan_api.cc",
101 "pan/bta_pan_ci.cc",
102 "pan/bta_pan_main.cc",
103 "sdp/bta_sdp.cc",
104 "sdp/bta_sdp_act.cc",
105 "sdp/bta_sdp_api.cc",
106 "sdp/bta_sdp_cfg.cc",
107 "sys/bta_sys_conn.cc",
108 "sys/bta_sys_main.cc",
109 "sys/utl.cc",
110 ],
111}
112
113// bta unit tests for target
114// ========================================================
115cc_test {
116 name: "net_test_bta",
117 defaults: ["fluoride_bta_defaults"],
118 srcs: [
Jack He65b2a572016-12-07 18:25:17 -0800119 "test/bta_hf_client_test.cc",
Jakub Pawlowskid4426202017-12-13 10:02:32 -0800120 "test/gatt_cache_file_test.cc",
Jack He65b2a572016-12-07 18:25:17 -0800121 ],
122 shared_libs: [
Jack He65b2a572016-12-07 18:25:17 -0800123 "liblog",
124 "libprotobuf-cpp-lite",
125 ],
126 static_libs: [
127 "libbtcore",
128 "libbt-bta",
Jakub Pawlowskif9f45852017-07-03 15:39:36 -0700129 "libbluetooth-types",
Jack He65b2a572016-12-07 18:25:17 -0800130 "libosi",
131 "libbt-protos",
132 ],
133}