blob: a26a724e7af8dc37abc51ab41c7bba1ea4e3ccea [file] [log] [blame]
Brian Duddie72833b22017-03-16 13:00:21 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Brian Duddie7621b322017-03-18 19:35:18 -070017cc_library_static {
18 name: "chre_client",
Steven Moreland9e280e72017-04-11 13:01:17 -070019 vendor: true,
Brian Duddie7621b322017-03-18 19:35:18 -070020 export_include_dirs: [
Brian Duddie7621b322017-03-18 19:35:18 -070021 "host/common/include",
22 "platform/shared/include",
Brian Duddie56944d82017-03-29 16:51:47 -070023 "util/include",
Brian Duddie72833b22017-03-16 13:00:21 -070024 ],
Brian Duddie72833b22017-03-16 13:00:21 -070025 srcs: [
Arthur Ishiguroabe6dd62018-03-08 15:37:07 -080026 "host/common/fragmented_load_transaction.cc",
Brian Duddie7621b322017-03-18 19:35:18 -070027 "host/common/host_protocol_host.cc",
Arthur Ishiguroabe6dd62018-03-08 15:37:07 -080028 "host/common/socket_client.cc",
Brian Duddie7621b322017-03-18 19:35:18 -070029 "platform/shared/host_protocol_common.cc",
Brian Duddie72833b22017-03-16 13:00:21 -070030 ],
Brian Duddie24ca58c2017-08-16 16:27:00 -070031 header_libs: ["chre_flatbuffers"],
32 export_header_lib_headers: ["chre_flatbuffers"],
Brian Duddie72833b22017-03-16 13:00:21 -070033 shared_libs: [
34 "libcutils",
35 "liblog",
36 "libutils",
37 ],
Chih-Hung Hsieh872df742017-10-02 15:34:31 -070038 cflags: ["-Wall", "-Werror"],
Brian Duddie7621b322017-03-18 19:35:18 -070039}
40
Harpreet "Eli" Sangha5309a1a2019-05-01 17:55:25 +090041cc_binary {
Brian Duddie7621b322017-03-18 19:35:18 -070042 name: "chre_test_client",
Steven Moreland9e280e72017-04-11 13:01:17 -070043 vendor: true,
Brian Duddie9d5b5002017-03-22 16:13:24 -070044 local_include_dirs: [
45 "chre_api/include/chre_api",
46 "util/include",
47 ],
Brian Duddie7621b322017-03-18 19:35:18 -070048 srcs: [
49 "host/common/test/chre_test_client.cc",
50 ],
Chih-Hung Hsieh872df742017-10-02 15:34:31 -070051 cflags: ["-Wall", "-Werror"],
Brian Duddie7621b322017-03-18 19:35:18 -070052 shared_libs: [
53 "libcutils",
54 "liblog",
55 "libutils",
56 ],
57 static_libs: ["chre_client"],
Brian Duddie72833b22017-03-16 13:00:21 -070058}
Brian Duddie3d891e32017-03-19 10:14:53 -070059
chaoyangfdcebfb02019-07-17 16:35:00 -070060cc_binary {
61 name: "chre_power_test_client",
62 vendor: true,
63 local_include_dirs: [
64 "chre_api/include/chre_api",
65 "util/include",
chaoyangf518632d2019-08-09 18:15:41 -070066 "apps/power_test/common/include",
chaoyangfdcebfb02019-07-17 16:35:00 -070067 ],
68 srcs: [
69 "host/common/test/power_test/chre_power_test_client.cc",
70 ],
71 cflags: ["-Wall", "-Werror"],
72 shared_libs: [
73 "libcutils",
74 "liblog",
75 "libutils",
76 ],
77 static_libs: ["chre_client"],
78}
79
Andrew Rossignol0d57e452018-07-24 11:40:30 -070080cc_test {
81 name: "audio_stress_test",
82 vendor: true,
83 local_include_dirs: [
84 "chre_api/include/chre_api",
85 "util/include",
86 ],
87 srcs: [
88 "host/common/audio_stress_test/audio_stress_test.cc",
89 ],
90 cflags: ["-Wall", "-Werror"],
91 shared_libs: [
92 "libcutils",
93 "liblog",
94 "libutils",
95 ],
96 static_libs: ["chre_client"],
97 gtest: false,
98}
99
Anthony Stange1b95c2f2020-02-13 13:55:41 -0500100cc_library_headers {
101 name: "android.hardware.contexthub@1.X-shared-impl",
Steven Moreland9e280e72017-04-11 13:01:17 -0700102 vendor: true,
Anthony Stange1b95c2f2020-02-13 13:55:41 -0500103 export_include_dirs: ["host/hal_generic/common/"],
Chih-Hung Hsieh872df742017-10-02 15:34:31 -0700104 cflags: ["-Wall", "-Werror"],
Brian Duddie3d891e32017-03-19 10:14:53 -0700105 shared_libs: [
106 "libcutils",
107 "liblog",
108 "libhidlbase",
Brian Duddie3d891e32017-03-19 10:14:53 -0700109 "libutils",
110 "android.hardware.contexthub@1.0",
Brian Duddie3d891e32017-03-19 10:14:53 -0700111 ],
112 static_libs: ["chre_client"],
Brian Duddie3d891e32017-03-19 10:14:53 -0700113}
Brian Duddie24ca58c2017-08-16 16:27:00 -0700114
Anthony Stange1b95c2f2020-02-13 13:55:41 -0500115cc_library_shared {
116 name: "android.hardware.contexthub@1.0-impl.generic",
117 vendor: true,
118 relative_install_path: "hw",
119 srcs: [
120 "host/hal_generic/V1_0/generic_context_hub_v1_0.cc",
121 ],
122 cflags: ["-Wall", "-Werror"],
123 header_libs: [
124 "android.hardware.contexthub@1.X-shared-impl",
125 ],
126 shared_libs: [
127 "libcutils",
128 "liblog",
129 "libhidlbase",
130 "libutils",
131 "android.hardware.contexthub@1.0",
132 ],
133 static_libs: ["chre_client"],
134}
135
136cc_binary {
137 name: "android.hardware.contexthub@1.1-service.generic",
138 defaults: ["hidl_defaults"],
139 vendor: true,
140 relative_install_path: "hw",
141 srcs: [
142 "host/hal_generic/V1_1/generic_context_hub_v1_1.cc",
143 "host/hal_generic/V1_1/service.cc",
144 ],
145 init_rc: ["host/hal_generic/V1_1/android.hardware.contexthub@1.1-service-generic.rc"],
146 cflags: ["-Wall", "-Werror"],
147 header_libs: [
148 "android.hardware.contexthub@1.X-shared-impl",
149 ],
150 shared_libs: [
151 "libcutils",
152 "liblog",
153 "libhidlbase",
154 "libutils",
155 "android.hardware.contexthub@1.0",
156 "android.hardware.contexthub@1.1",
157 ],
158 static_libs: ["chre_client"],
159 vintf_fragments: ["host/hal_generic/V1_1/android.hardware.contexthub@1.1-generic.xml"],
160}
161
Brian Duddie24ca58c2017-08-16 16:27:00 -0700162cc_library_headers {
Brian Duddie7ab2df12017-08-16 16:40:14 -0700163 name: "chre_api",
Brian Duddie303fed02017-08-18 10:16:19 -0700164 vendor: true,
Brian Duddie7ab2df12017-08-16 16:40:14 -0700165 export_include_dirs: [
166 "chre_api/include/chre_api",
167 ]
168}
169
170cc_library_headers {
Brian Duddie24ca58c2017-08-16 16:27:00 -0700171 name: "chre_flatbuffers",
172 vendor: true,
173 export_include_dirs: [
174 "external/flatbuffers/include",
Mike Cailean2833f652018-03-12 13:33:43 -0700175 "host/common/include",
176 "platform/shared/include",
177 "util/include",
Brian Duddie24ca58c2017-08-16 16:27:00 -0700178 ],
179}
Mehdi Alizadehd2c8b6d2017-08-15 16:06:36 -0700180
181subdirs = [
182 "apps/wifi_offload",
183]