-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAndroid.bp
123 lines (108 loc) · 2.89 KB
/
Android.bp
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
bootstrap_go_package {
name: "soong-frameworkBluetooth",
pkgPath: "android/soong/frameworkBluetooth",
deps: [
"soong-android",
"soong-cc",
],
srcs: [
"frameworkBluetooth.go",
],
pluginFor: ["soong_build"],
}
frameworkBluetooth_cc_library {
name : "libbt-framework-client",
min_sdk_version: "33",
srcs : [
"framework/common/*.c",
"framework/socket/*.c",
"service/common/index_allocator.c",
"service/ipc/socket/src/bt_socket_client.c",
"service/ipc/socket/src/bt_socket_adapter.c",
"service/ipc/socket/src/bt_socket_advertiser.c",
"service/ipc/socket/src/bt_socket_scan.c",
"service/ipc/socket/src/bt_socket_gattc.c",
"service/ipc/socket/src/bt_socket_gatts.c",
"service/ipc/socket/src/bt_socket_a2dp_sink.c",
"service/ipc/socket/src/bt_socket_a2dp_source.c",
"service/ipc/socket/src/bt_socket_avrcp_target.c",
"service/ipc/socket/src/bt_socket_hfp_ag.c",
"service/ipc/socket/src/bt_socket_hfp_hf.c",
"service/ipc/socket/src/bt_socket_hid_device.c",
"service/ipc/socket/src/bt_socket_spp.c",
"service/src/manager_service.c",
],
include_dirs : [
"vendor/vela/apps/system/libuv/libuv/include",
"vendor/vela/apps/system/libuv/libuv/src",
],
local_include_dirs : [
"framework/include",
"service",
"service/common",
"service/ipc",
"service/ipc/socket/include",
"service/profiles",
"service/profiles/include",
"service/src",
],
static_libs : [
"libuv",
],
shared_libs : [
"liblog",
],
cflags : [
//"-DANDROID",
"-Werror",
"-Wno-unused-parameter",
"-Wno-unused-function",
"-Wno-unused-variable",
"-Wno-typedef-redefinition",
],
apex_available : [
"//apex_available:platform",
"com.android.btservices",
],
}
cc_binary {
name : "bttool",
srcs : [
"tools/bt_tools.c",
"tools/adv.c",
"tools/scan.c",
"tools/gatt_client.c",
"tools/gatt_server.c",
"tools/a2dp_sink.c",
"tools/a2dp_source.c",
"tools/hfp_ag.c",
"tools/hfp_hf.c",
"tools/hid_device.c",
"tools/spp.c",
"tools/log.c",
"tools/utils.c",
],
include_dirs : [
"vendor/vela/apps/system/libuv/libuv/include",
"vendor/vela/apps/system/libuv/libuv/src",
],
local_include_dirs : [
"framework/include",
"service",
"service/utils",
],
static_libs : [
"libuv",
],
shared_libs : [
"liblog",
"libbt-framework-client",
],
cflags : [
//"-DANDROID",
"-Werror",
"-Wno-unused-parameter",
"-Wno-unused-function",
"-Wno-unused-variable",
],
}