• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Common variables
2// ========================================================
3btifCommonIncludes = [
4    "system/bt",
5    "system/bt/bta/include",
6    "system/bt/bta/sys",
7    "system/bt/bta/dm",
8    "system/bt/btcore/include",
9    "system/bt/device/include",
10    "system/bt/include",
11    "system/bt/stack/include",
12    "system/bt/stack/l2cap",
13    "system/bt/stack/a2dp",
14    "system/bt/stack/btm",
15    "system/bt/stack/avdt",
16    "system/bt/udrv/include",
17    "system/bt/btif/include",
18    "system/bt/btif/co",
19    "system/bt/hci/include",
20    "system/bt/vnd/include",
21    "system/bt/embdrv/sbc/encoder/include",
22    "system/bt/embdrv/sbc/decoder/include",
23    "system/bt/utils/include",
24]
25
26// libbtif static library for target
27// ========================================================
28cc_library_static {
29    name: "libbtif",
30    defaults: ["fluoride_defaults"],
31    include_dirs: btifCommonIncludes,
32    srcs: [
33        // HAL layer
34        "src/bluetooth.cc",
35        // BTIF implementation
36        "src/btif_a2dp.cc",
37        "src/btif_a2dp_control.cc",
38        "src/btif_a2dp_sink.cc",
39        "src/btif_a2dp_source.cc",
40        "src/btif_av.cc",
41        "src/btif_avrcp_audio_track.cc",
42        "src/btif_ble_advertiser.cc",
43        "src/btif_ble_scanner.cc",
44        "src/btif_config.cc",
45        "src/btif_config_transcode.cc",
46        "src/btif_core.cc",
47        "src/btif_debug.cc",
48        "src/btif_debug_btsnoop.cc",
49        "src/btif_debug_conn.cc",
50        "src/btif_dm.cc",
51        "src/btif_gatt.cc",
52        "src/btif_gatt_client.cc",
53        "src/btif_gatt_server.cc",
54        "src/btif_gatt_test.cc",
55        "src/btif_gatt_util.cc",
56        "src/btif_hf.cc",
57        "src/btif_hf_client.cc",
58        "src/btif_hh.cc",
59        "src/btif_hd.cc",
60        "src/btif_hl.cc",
61        "src/btif_mce.cc",
62        "src/btif_pan.cc",
63        "src/btif_profile_queue.cc",
64        "src/btif_rc.cc",
65        "src/btif_sdp.cc",
66        "src/btif_sdp_server.cc",
67        "src/btif_sm.cc",
68        "src/btif_sock.cc",
69        "src/btif_sock_rfc.cc",
70        "src/btif_sock_l2cap.cc",
71        "src/btif_sock_sco.cc",
72        "src/btif_sock_sdp.cc",
73        "src/btif_sock_thread.cc",
74        "src/btif_sock_util.cc",
75        "src/btif_storage.cc",
76        "src/btif_uid.cc",
77        "src/btif_util.cc",
78        "src/stack_manager.cc",
79        // Callouts
80        "co/bta_ag_co.cc",
81        "co/bta_dm_co.cc",
82        "co/bta_av_co.cc",
83        "co/bta_hh_co.cc",
84        "co/bta_hl_co.cc",
85        "co/bta_pan_co.cc",
86        "co/bta_gatts_co.cc",
87    ],
88    shared_libs: [
89        "libaudioclient",
90        "libcutils",
91        "liblog",
92        "libz",
93        "libtinyxml2",
94    ],
95    whole_static_libs: [
96        "libaudio-a2dp-hw-utils",
97    ],
98    cflags: ["-DBUILDCFG"],
99
100}
101
102// btif unit tests for target
103// ========================================================
104cc_test {
105    name: "net_test_btif",
106    defaults: ["fluoride_defaults"],
107    include_dirs: btifCommonIncludes,
108    srcs: ["test/btif_storage_test.cc"],
109    shared_libs: [
110        "liblog",
111        "libhardware",
112        "libcutils",
113    ],
114    static_libs: [
115        "libbtcore",
116        "libbtif",
117        "libbt-stack",
118        "libosi",
119    ],
120    cflags: ["-DBUILDCFG"],
121}
122