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