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: "libmedia_helper_headers", 12 vendor_available: true, 13 min_sdk_version: "29", 14 export_include_dirs: ["include"], 15 host_supported: true, 16 target: { 17 darwin: { 18 enabled: false, 19 }, 20 }, 21 apex_available: [ 22 "//apex_available:platform", 23 "com.android.bluetooth", 24 "com.android.media", 25 "com.android.media.swcodec", 26 ], 27} 28 29cc_library { 30 name: "libmedia_helper", 31 vendor_available: true, 32 min_sdk_version: "29", 33 vndk: { 34 enabled: true, 35 }, 36 double_loadable: true, 37 srcs: [ 38 "AudioParameter.cpp", 39 "AudioValidator.cpp", 40 "TypeConverter.cpp", 41 ], 42 cflags: [ 43 "-Werror", 44 "-Wextra", 45 "-Wall", 46 ], 47 shared_libs: [ 48 "libutils", 49 "liblog", 50 ], 51 header_libs: [ 52 "libmedia_helper_headers", 53 "libaudio_system_headers", 54 ], 55 export_header_lib_headers: [ 56 "libmedia_helper_headers", 57 ], 58 59 host_supported: true, 60 target: { 61 darwin: { 62 enabled: false, 63 }, 64 }, 65 apex_available: [ 66 "//apex_available:platform", 67 "com.android.media", 68 "test_com.android.media", 69 ], 70} 71