xref: /aosp_15_r20/system/chre/host/tinysys/hal/Android.bp (revision 84e339476a462649f82315436d70fd732297a399)
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    default_team: "trendy_team_context_hub",
18    default_applicable_licenses: ["system_chre_license"],
19}
20
21// The rc and xml files are removed from the definition of
22// android.hardware.contexthub-service.tinysys to accommodate the various
23// needs of tinysys platform setup scenarios. These files can be installed
24// back by adding items below:
25//
26//   init_rc: ["android.hardware.contexthub-service.tinysys.rc"],
27//   vintf_fragments: ["android.hardware.contexthub-service.tinysys.xml"],
28cc_binary {
29    name: "android.hardware.contexthub-service.tinysys",
30    cpp_std: "c++20",
31    defaults: [
32        "contexthub_hal_defaults",
33        "hidl_defaults",
34    ],
35    vendor: true,
36    relative_install_path: "hw",
37    srcs: [
38        ":contexthub_hal_core",
39        ":st_hal_lpma_handler",
40        "service.cc",
41        "tinysys_chre_connection.cc",
42        "tinysys_context_hub.cc",
43    ],
44    cflags: ["-DCHRE_ST_LPMA_HANDLER_AIDL"],
45    shared_libs: [
46        "android.hardware.soundtrigger3-V1-ndk",
47        "android.media.soundtrigger.types-V1-ndk",
48        "libpower",
49    ],
50    static_libs: [
51        "pw_detokenizer",
52        "pw_polyfill",
53        "pw_span",
54        "pw_varint",
55    ],
56}
57