1*84e33947SAndroid Build Coastguard Worker// 2*84e33947SAndroid Build Coastguard Worker// Copyright (C) 2023 The Android Open Source Project 3*84e33947SAndroid Build Coastguard Worker// 4*84e33947SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 5*84e33947SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 6*84e33947SAndroid Build Coastguard Worker// You may obtain a copy of the License at 7*84e33947SAndroid Build Coastguard Worker// 8*84e33947SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 9*84e33947SAndroid Build Coastguard Worker// 10*84e33947SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 11*84e33947SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 12*84e33947SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*84e33947SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 14*84e33947SAndroid Build Coastguard Worker// limitations under the License. 15*84e33947SAndroid Build Coastguard Worker 16*84e33947SAndroid Build Coastguard Workerpackage { 17*84e33947SAndroid Build Coastguard Worker default_team: "trendy_team_context_hub", 18*84e33947SAndroid Build Coastguard Worker default_applicable_licenses: ["system_chre_license"], 19*84e33947SAndroid Build Coastguard Worker} 20*84e33947SAndroid Build Coastguard Worker 21*84e33947SAndroid Build Coastguard Worker// The rc and xml files are removed from the definition of 22*84e33947SAndroid Build Coastguard Worker// android.hardware.contexthub-service.tinysys to accommodate the various 23*84e33947SAndroid Build Coastguard Worker// needs of tinysys platform setup scenarios. These files can be installed 24*84e33947SAndroid Build Coastguard Worker// back by adding items below: 25*84e33947SAndroid Build Coastguard Worker// 26*84e33947SAndroid Build Coastguard Worker// init_rc: ["android.hardware.contexthub-service.tinysys.rc"], 27*84e33947SAndroid Build Coastguard Worker// vintf_fragments: ["android.hardware.contexthub-service.tinysys.xml"], 28*84e33947SAndroid Build Coastguard Workercc_binary { 29*84e33947SAndroid Build Coastguard Worker name: "android.hardware.contexthub-service.tinysys", 30*84e33947SAndroid Build Coastguard Worker cpp_std: "c++20", 31*84e33947SAndroid Build Coastguard Worker defaults: [ 32*84e33947SAndroid Build Coastguard Worker "contexthub_hal_defaults", 33*84e33947SAndroid Build Coastguard Worker "hidl_defaults", 34*84e33947SAndroid Build Coastguard Worker ], 35*84e33947SAndroid Build Coastguard Worker vendor: true, 36*84e33947SAndroid Build Coastguard Worker relative_install_path: "hw", 37*84e33947SAndroid Build Coastguard Worker srcs: [ 38*84e33947SAndroid Build Coastguard Worker ":contexthub_hal_core", 39*84e33947SAndroid Build Coastguard Worker ":st_hal_lpma_handler", 40*84e33947SAndroid Build Coastguard Worker "service.cc", 41*84e33947SAndroid Build Coastguard Worker "tinysys_chre_connection.cc", 42*84e33947SAndroid Build Coastguard Worker "tinysys_context_hub.cc", 43*84e33947SAndroid Build Coastguard Worker ], 44*84e33947SAndroid Build Coastguard Worker cflags: ["-DCHRE_ST_LPMA_HANDLER_AIDL"], 45*84e33947SAndroid Build Coastguard Worker shared_libs: [ 46*84e33947SAndroid Build Coastguard Worker "android.hardware.soundtrigger3-V1-ndk", 47*84e33947SAndroid Build Coastguard Worker "android.media.soundtrigger.types-V1-ndk", 48*84e33947SAndroid Build Coastguard Worker "libpower", 49*84e33947SAndroid Build Coastguard Worker ], 50*84e33947SAndroid Build Coastguard Worker static_libs: [ 51*84e33947SAndroid Build Coastguard Worker "pw_detokenizer", 52*84e33947SAndroid Build Coastguard Worker "pw_polyfill", 53*84e33947SAndroid Build Coastguard Worker "pw_span", 54*84e33947SAndroid Build Coastguard Worker "pw_varint", 55*84e33947SAndroid Build Coastguard Worker ], 56*84e33947SAndroid Build Coastguard Worker} 57