• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2023 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
16package {
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "system_chre_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["system_chre_license"],
23}
24
25cc_binary {
26    name: "android.hardware.contexthub-service.tinysys",
27    defaults: ["hidl_defaults"],
28    vendor: true,
29    relative_install_path: "hw",
30    srcs: [
31        "service.cc",
32        "tinysys_chre_connection.cc",
33        "tinysys_context_hub.cc",
34        ":st_hal_lpma_handler",
35        ":contexthub_generic_aidl_hal_core",
36    ],
37    include_dirs: [
38        "system/chre/util/include/",
39        "system/chre/host/common/include/",
40        "system/chre/host/hal_generic/aidl/",
41        "system/chre/host/hal_generic/common/",
42        "system/chre/platform/shared/include/",
43    ],
44    init_rc: ["android.hardware.contexthub-service.tinysys.rc"],
45    cflags: [
46        "-Wall",
47        "-Werror",
48        "-DCHRE_MESSAGE_TO_HOST_MAX_SIZE=4000",
49        "-DCHRE_IS_HOST_BUILD",
50        "-DCHRE_HOST_DEFAULT_FRAGMENT_SIZE=2048",
51        "-DCHRE_ST_LPMA_HANDLER_AIDL",
52    ],
53    shared_libs: [
54        "android.media.soundtrigger.types-V1-ndk",
55        "android.hardware.contexthub-V2-ndk",
56        "android.hardware.soundtrigger3-V1-ndk",
57        "libcutils",
58        "liblog",
59        "libutils",
60        "libbase",
61        "libbinder_ndk",
62        "libpower",
63        "libjsoncpp",
64    ],
65    header_libs: [
66        "chre_api",
67        "pw_span_headers",
68        "pw_polyfill_headers",
69    ],
70    static_libs: [
71        "chre_client",
72        "event_logger",
73        "pw_varint",
74        "pw_detokenizer",
75    ],
76    vintf_fragments: ["android.hardware.contexthub-service.tinysys.xml"],
77}
78