1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "hardware_interfaces_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["hardware_interfaces_license"], 8} 9 10filegroup { 11 name: "android.hardware.audio-impl_srcs", 12 srcs: [ 13 "Device.cpp", 14 "DevicesFactory.cpp", 15 "ParametersUtil.cpp", 16 "PrimaryDevice.cpp", 17 "Stream.cpp", 18 "StreamIn.cpp", 19 "StreamOut.cpp", 20 ], 21} 22 23cc_library_headers { 24 name: "android.hardware.audio-impl_headers", 25 proprietary: true, 26 vendor: true, 27 export_include_dirs: ["include"], 28} 29 30cc_defaults { 31 name: "android.hardware.audio-impl_default", 32 relative_install_path: "hw", 33 proprietary: true, 34 vendor: true, 35 srcs: [":android.hardware.audio-impl_srcs"], 36 37 defaults: ["hidl_defaults"], 38 39 static_libs: [ 40 "libaudiofoundation", 41 ], 42 43 shared_libs: [ 44 "libbase", 45 "libcutils", 46 "libfmq", 47 "libhardware", 48 "libhidlbase", 49 "liblog", 50 "libmedia_helper", 51 "libmediautils_vendor", 52 "libmemunreachable", 53 "libutils", 54 "android.hardware.audio.common-util", 55 ], 56 57 header_libs: [ 58 "android.hardware.audio-impl_headers", 59 "android.hardware.audio.common.util@all-versions", 60 "libaudioclient_headers", 61 "libaudioutils_headers", 62 "libaudio_system_headers", 63 "libhardware_headers", 64 "libmedia_headers", 65 "libmediautils_headers", 66 ], 67 68 export_header_lib_headers: [ 69 "android.hardware.audio-impl_headers", 70 ], 71} 72 73cc_library_shared { 74 name: "android.hardware.audio@2.0-impl", 75 defaults: ["android.hardware.audio-impl_default"], 76 shared_libs: [ 77 "android.hardware.audio@2.0", 78 "android.hardware.audio@2.0-util", 79 "android.hardware.audio.common@2.0", 80 "android.hardware.audio.common@2.0-util", 81 ], 82 cflags: [ 83 "-DMAJOR_VERSION=2", 84 "-DMINOR_VERSION=0", 85 "-include common/all-versions/VersionMacro.h", 86 ], 87} 88 89cc_library_shared { 90 name: "android.hardware.audio@4.0-impl", 91 defaults: ["android.hardware.audio-impl_default"], 92 93 shared_libs: [ 94 "android.hardware.audio@4.0", 95 "android.hardware.audio@4.0-util", 96 "android.hardware.audio.common@4.0", 97 "android.hardware.audio.common@4.0-util", 98 ], 99 cflags: [ 100 "-DMAJOR_VERSION=4", 101 "-DMINOR_VERSION=0", 102 "-include common/all-versions/VersionMacro.h", 103 ], 104} 105 106cc_library_shared { 107 name: "android.hardware.audio@5.0-impl", 108 defaults: ["android.hardware.audio-impl_default"], 109 shared_libs: [ 110 "android.hardware.audio@5.0", 111 "android.hardware.audio@5.0-util", 112 "android.hardware.audio.common@5.0", 113 "android.hardware.audio.common@5.0-util", 114 ], 115 cflags: [ 116 "-DMAJOR_VERSION=5", 117 "-DMINOR_VERSION=0", 118 "-include common/all-versions/VersionMacro.h", 119 ], 120} 121 122cc_defaults { 123 name: "android.hardware.audio@6.0-impl_default", 124 defaults: ["android.hardware.audio-impl_default"], 125 shared_libs: [ 126 "android.hardware.audio@6.0", 127 "android.hardware.audio@6.0-util", 128 "android.hardware.audio.common@6.0", 129 "android.hardware.audio.common@6.0-util", 130 ], 131 cflags: [ 132 "-DMAJOR_VERSION=6", 133 "-DMINOR_VERSION=0", 134 "-include common/all-versions/VersionMacro.h", 135 ], 136} 137 138cc_library_shared { 139 name: "android.hardware.audio@6.0-impl", 140 defaults: ["android.hardware.audio@6.0-impl_default"], 141} 142 143cc_defaults { 144 name: "android.hardware.audio@7.0-impl_default", 145 defaults: ["android.hardware.audio-impl_default"], 146 shared_libs: [ 147 "android.hardware.audio@7.0", 148 "android.hardware.audio@7.0-util", 149 "android.hardware.audio.common@7.0", 150 "android.hardware.audio.common@7.0-enums", 151 "android.hardware.audio.common@7.0-util", 152 "libbase", 153 ], 154 cflags: [ 155 "-DMAJOR_VERSION=7", 156 "-DMINOR_VERSION=0", 157 "-include common/all-versions/VersionMacro.h", 158 ], 159} 160 161cc_library_shared { 162 name: "android.hardware.audio@7.0-impl", 163 defaults: ["android.hardware.audio@7.0-impl_default"], 164} 165