blob: bab894c7670fd871c549f71e160fa98602f67f01 [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
Andrew Rossignol0d57e452018-07-24 11:40:30 -070060cc_test {
61 name: "audio_stress_test",
62 vendor: true,
63 local_include_dirs: [
64 "chre_api/include/chre_api",
65 "util/include",
66 ],
67 srcs: [
68 "host/common/audio_stress_test/audio_stress_test.cc",
69 ],
70 cflags: ["-Wall", "-Werror"],
71 shared_libs: [
72 "libcutils",
73 "liblog",
74 "libutils",
75 ],
76 static_libs: ["chre_client"],
77 gtest: false,
78}
79
Brian Duddie3d891e32017-03-19 10:14:53 -070080cc_library_shared {
81 name: "android.hardware.contexthub@1.0-impl.generic",
Steven Moreland9e280e72017-04-11 13:01:17 -070082 vendor: true,
Brian Duddie3d891e32017-03-19 10:14:53 -070083 relative_install_path: "hw",
84 srcs: [
85 "host/hal_generic/generic_context_hub.cc",
86 ],
Chih-Hung Hsieh872df742017-10-02 15:34:31 -070087 cflags: ["-Wall", "-Werror"],
Brian Duddie3d891e32017-03-19 10:14:53 -070088 shared_libs: [
89 "libcutils",
90 "liblog",
91 "libhidlbase",
92 "libhidltransport",
93 "libutils",
94 "android.hardware.contexthub@1.0",
Brian Duddie3d891e32017-03-19 10:14:53 -070095 ],
96 static_libs: ["chre_client"],
Brian Duddie3d891e32017-03-19 10:14:53 -070097}
Brian Duddie24ca58c2017-08-16 16:27:00 -070098
99cc_library_headers {
Brian Duddie7ab2df12017-08-16 16:40:14 -0700100 name: "chre_api",
Brian Duddie303fed02017-08-18 10:16:19 -0700101 vendor: true,
Brian Duddie7ab2df12017-08-16 16:40:14 -0700102 export_include_dirs: [
103 "chre_api/include/chre_api",
104 ]
105}
106
107cc_library_headers {
Brian Duddie24ca58c2017-08-16 16:27:00 -0700108 name: "chre_flatbuffers",
109 vendor: true,
110 export_include_dirs: [
111 "external/flatbuffers/include",
112 ],
113}
Mehdi Alizadehd2c8b6d2017-08-15 16:06:36 -0700114
115subdirs = [
116 "apps/wifi_offload",
117]