1// Copyright (C) 2021 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14package { 15 // See: http://go/android-license-faq 16 // A large-scale-change added 'default_applicable_licenses' to import 17 // all of the 'license_kinds' from "device_generic_car_license" 18 // to get the below license kinds: 19 // SPDX-license-identifier-Apache-2.0 20 default_team: "trendy_team_aaos_framework", 21 default_applicable_licenses: ["device_generic_car_license"], 22} 23 24cc_binary { 25 name: "android.hardware.audio.service-caremu", 26 27 init_rc: ["android.hardware.audio.service-caremu.rc"], 28 29 relative_install_path: "hw", 30 vendor: true, 31 // Prefer 32 bit as the binary must always be installed at the same 32 // location for init to start it and the build system does not support 33 // having two binaries installable to the same location even if they are 34 // not installed in the same build. 35 compile_multilib: "prefer32", 36 srcs: [ 37 "service.cpp", 38 ], 39 40 cflags: [ 41 "-Wall", 42 "-Wextra", 43 "-Werror", 44 ], 45 defaults: [ 46 "latest_android_hardware_audio_common_ndk_shared", 47 "latest_android_hardware_automotive_audiocontrol_ndk_shared", 48 ], 49 shared_libs: [ 50 "[email protected]", 51 "[email protected]", 52 "[email protected]", 53 "audiocontrol-caremu", 54 "libbase", 55 "libbinder", 56 "libbinder_ndk", 57 "libhardware", 58 "libhidlbase", 59 "liblog", 60 ], 61 62 header_libs: [ 63 "libhardware_headers", 64 ], 65} 66 67cc_library { 68 name: "audiocontrol-caremu", 69 vendor: true, 70 vintf_fragments: ["audiocontrol-caremu.xml"], 71 defaults: [ 72 "latest_android_hardware_audio_common_ndk_shared", 73 "latest_android_hardware_automotive_audiocontrol_ndk_shared", 74 "car.audio.configuration.xsd.default", 75 "car.fade.configuration.xsd.default", 76 ], 77 shared_libs: [ 78 "[email protected]", 79 "android.hardware.audiocontrol.internal", 80 "libaudio_aidl_conversion_common_ndk", 81 "libbase", 82 "libbinder_ndk", 83 "libcutils", 84 "liblog", 85 "libxml2", 86 "audio.primary.caremu", 87 ], 88 89 srcs: [ 90 "AudioControl.cpp", 91 ], 92 93 include_dirs: [ 94 "device/generic/car/emulator/audio/driver/include", 95 ], 96} 97