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 "frameworks_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10cc_library_headers { 11 name: "libaudiofoundation_headers", 12 vendor_available: true, 13 min_sdk_version: "29", 14 apex_available: [ 15 "//apex_available:platform", 16 "com.android.media", 17 ], 18 19 export_include_dirs: ["include"], 20 header_libs: [ 21 "libaudioclient_aidl_conversion_util", 22 "libaudio_system_headers", 23 "libmedia_helper_headers", 24 ], 25 export_header_lib_headers: [ 26 "libaudioclient_aidl_conversion_util", 27 "libaudio_system_headers", 28 "libmedia_helper_headers", 29 ], 30 static_libs: [ 31 "android.media.audio.common.types-V1-cpp", 32 "audioclient-types-aidl-cpp", 33 ], 34 export_static_lib_headers: [ 35 "android.media.audio.common.types-V1-cpp", 36 "audioclient-types-aidl-cpp", 37 ], 38 host_supported: true, 39 target: { 40 darwin: { 41 enabled: false, 42 }, 43 }, 44} 45 46cc_library { 47 name: "libaudiofoundation", 48 vendor_available: true, 49 double_loadable: true, 50 51 srcs: [ 52 "AudioContainers.cpp", 53 "AudioDeviceTypeAddr.cpp", 54 "AudioGain.cpp", 55 "AudioPort.cpp", 56 "AudioProfile.cpp", 57 "DeviceDescriptorBase.cpp", 58 ], 59 60 shared_libs: [ 61 "android.media.audio.common.types-V1-cpp", 62 "audioclient-types-aidl-cpp", 63 "libaudioclient_aidl_conversion", 64 "libaudioutils", 65 "libbase", 66 "libbinder", 67 "liblog", 68 "libmedia_helper", 69 "libutils", 70 ], 71 72 export_shared_lib_headers: [ 73 "android.media.audio.common.types-V1-cpp", 74 "audioclient-types-aidl-cpp", 75 "libaudioclient_aidl_conversion", 76 ], 77 78 header_libs: [ 79 "libaudiofoundation_headers", 80 ], 81 82 export_header_lib_headers: [ 83 "libaudiofoundation_headers", 84 ], 85 86 cflags: [ 87 "-Werror", 88 "-Wall", 89 ], 90} 91