• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
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
17cc_library_static {
18    name: "chre_client",
19    vendor: true,
20    export_include_dirs: [
21        "external/flatbuffers/include",
22        "host/common/include",
23        "platform/shared/include",
24    ],
25    srcs: [
26        "host/common/socket_client.cc",
27        "host/common/host_protocol_host.cc",
28        "platform/shared/host_protocol_common.cc",
29    ],
30    shared_libs: [
31        "libcutils",
32        "liblog",
33        "libutils",
34    ],
35}
36
37cc_test {
38    name: "chre_test_client",
39    vendor: true,
40    local_include_dirs: [
41        "chre_api/include/chre_api",
42        "util/include",
43    ],
44    srcs: [
45        "host/common/test/chre_test_client.cc",
46    ],
47    shared_libs: [
48        "libcutils",
49        "liblog",
50        "libutils",
51    ],
52    static_libs: ["chre_client"],
53    tags: ["optional"],
54    gtest: false,
55}
56
57cc_library_shared {
58    name: "android.hardware.contexthub@1.0-impl.generic",
59    vendor: true,
60    relative_install_path: "hw",
61    srcs: [
62        "host/hal_generic/generic_context_hub.cc",
63    ],
64    shared_libs: [
65        "libcutils",
66        "liblog",
67        "libhidlbase",
68        "libhidltransport",
69        "libutils",
70        "android.hardware.contexthub@1.0",
71        "android.hidl.base@1.0",
72    ],
73    static_libs: ["chre_client"],
74    tags: ["optional"],
75}
76