1// 2// Copyright (C) 2017 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 16// Derived from device/generic/goldfish/audio/Android.mk 17 18package { 19 // See: http://go/android-license-faq 20 // A large-scale-change added 'default_applicable_licenses' to import 21 // all of the 'license_kinds' from "device_generic_car_license" 22 // to get the below license kinds: 23 // SPDX-license-identifier-Apache-2.0 24 default_team: "trendy_team_aaos_framework", 25 default_applicable_licenses: ["device_generic_car_license"], 26} 27 28soong_config_module_type { 29 name: "audio_extn_cc_defaults", 30 module_type: "cc_defaults", 31 config_namespace: "audio_extn_config", 32 bool_variables: ["isHFPEnabled"], 33 properties: ["srcs", "cflags"], 34} 35 36audio_extn_cc_defaults { 37 name: "audio_extn_hfp", 38 soong_config_variables: { 39 isHFPEnabled: { 40 cflags: ["-DHFP_ENABLED"], 41 srcs: ["audio_extn/hfp.c"], 42 }, 43 }, 44} 45 46cc_library_shared { 47 48 vendor: true, 49 vintf_fragments: ["[email protected]"], 50 name: "audio.primary.caremu", 51 relative_install_path: "hw", 52 defaults: ["audio_extn_hfp"], 53 srcs: [ 54 "audio_hw.c", 55 "audio_vbuffer.c", 56 "ext_pcm.c", 57 ], 58 59 include_dirs: ["external/tinyalsa/include"], 60 local_include_dirs: ["audio_extn"], 61 export_include_dirs: [ 62 "include" 63 ], 64 shared_libs: [ 65 "libcutils", 66 "liblog", 67 "libdl", 68 "libtinyalsa", 69 ], 70 71 cflags: ["-Wno-unused-parameter"], 72 header_libs: [ 73 "libhardware_headers", 74 "libcutils_headers", 75 ], 76 77} 78