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 46 shared_libs: [ 47 "android.hardware.audio@6.0", 48 "android.hardware.audio.common@6.0", 49 "android.hardware.audio.effect@6.0", 50 "android.hardware.automotive.audiocontrol-V1-ndk", 51 "audiocontrol-caremu", 52 "libbase", 53 "libbinder", 54 "libbinder_ndk", 55 "libhardware", 56 "libhidlbase", 57 "liblog", 58 ], 59 60 header_libs: [ 61 "libhardware_headers", 62 ], 63} 64 65cc_library { 66 name: "audiocontrol-caremu", 67 vendor: true, 68 vintf_fragments: ["audiocontrol-caremu.xml"], 69 70 shared_libs: [ 71 "android.hardware.audio.common@7.0-enums", 72 "android.hardware.automotive.audiocontrol-V1-ndk", 73 "libbase", 74 "libbinder_ndk", 75 "libcutils", 76 "liblog", 77 "audio.primary.caremu", 78 ], 79 80 srcs: [ 81 "AudioControl.cpp", 82 ], 83 84 include_dirs: [ 85 "device/generic/car/emulator/audio/driver/include" 86 ], 87} 88