| Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE | 
|  | 2 | //     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE | 
|  | 3 | //     DEPENDING ON IT IN YOUR PROJECT. *** | 
|  | 4 | package { | 
|  | 5 | default_applicable_licenses: ["frameworks_av_license"], | 
|  | 6 | } | 
|  | 7 |  | 
|  | 8 | // Added automatically by a large-scale-change that took the approach of | 
|  | 9 | // 'apply every license found to every target'. While this makes sure we respect | 
|  | 10 | // every license restriction, it may not be entirely correct. | 
|  | 11 | // | 
|  | 12 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. | 
|  | 13 | // | 
|  | 14 | // Please consider splitting the single license below into multiple licenses, | 
|  | 15 | // taking care not to lose any license_kind information, and overriding the | 
|  | 16 | // default license using the 'licenses: [...]' property on targets as needed. | 
|  | 17 | // | 
|  | 18 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" | 
|  | 19 | // to attach the license to, and including a comment whether the files may be | 
|  | 20 | // used in the current project. | 
|  | 21 | // See: http://go/android-license-faq | 
|  | 22 | license { | 
|  | 23 | name: "frameworks_av_license", | 
|  | 24 | visibility: [":__subpackages__"], | 
|  | 25 | license_kinds: [ | 
|  | 26 | "SPDX-license-identifier-Apache-2.0", | 
|  | 27 | "SPDX-license-identifier-BSD", | 
|  | 28 | "SPDX-license-identifier-MIT", | 
|  | 29 | "SPDX-license-identifier-Unicode-DFS", | 
|  | 30 | "legacy_by_exception_only", // by exception only | 
|  | 31 | ], | 
|  | 32 | license_text: [ | 
|  | 33 | "NOTICE", | 
|  | 34 | ], | 
|  | 35 | } | 
|  | 36 |  | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 37 | aidl_interface { | 
|  | 38 | name: "av-types-aidl", | 
|  | 39 | unstable: true, | 
|  | 40 | host_supported: true, | 
|  | 41 | vendor_available: true, | 
|  | 42 | double_loadable: true, | 
|  | 43 | local_include_dir: "aidl", | 
|  | 44 | srcs: [ | 
|  | 45 | "aidl/android/media/InterpolatorConfig.aidl", | 
|  | 46 | "aidl/android/media/InterpolatorType.aidl", | 
| Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 47 | "aidl/android/media/MicrophoneInfoFw.aidl", | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 48 | "aidl/android/media/VolumeShaperConfiguration.aidl", | 
|  | 49 | "aidl/android/media/VolumeShaperConfigurationOptionFlag.aidl", | 
|  | 50 | "aidl/android/media/VolumeShaperConfigurationType.aidl", | 
|  | 51 | "aidl/android/media/VolumeShaperOperation.aidl", | 
|  | 52 | "aidl/android/media/VolumeShaperOperationFlag.aidl", | 
|  | 53 | "aidl/android/media/VolumeShaperState.aidl", | 
|  | 54 | ], | 
| Shunkai Yao | 295c8f8 | 2023-10-10 19:31:10 +0000 | [diff] [blame] | 55 | defaults: [ | 
|  | 56 | "latest_android_media_audio_common_types_import_interface", | 
| Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 57 | ], | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 58 | backend: { | 
|  | 59 | cpp: { | 
|  | 60 | min_sdk_version: "29", | 
|  | 61 | apex_available: [ | 
|  | 62 | "//apex_available:platform", | 
| William Escande | 62185e8 | 2022-08-22 11:27:57 -0700 | [diff] [blame] | 63 | "com.android.btservices", | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 64 | "com.android.media", | 
|  | 65 | "com.android.media.swcodec", | 
|  | 66 | ], | 
|  | 67 | }, | 
| Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 68 | java: { | 
|  | 69 | sdk_version: "module_current", | 
|  | 70 | }, | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 71 | }, | 
|  | 72 | } | 
|  | 73 |  | 
|  | 74 | cc_library_headers { | 
|  | 75 | name: "av-headers", | 
|  | 76 | export_include_dirs: ["include"], | 
|  | 77 | static_libs: [ | 
|  | 78 | "av-types-aidl-cpp", | 
|  | 79 | ], | 
|  | 80 | export_static_lib_headers: [ | 
|  | 81 | "av-types-aidl-cpp", | 
|  | 82 | ], | 
|  | 83 | header_libs: [ | 
| Shunkai Yao | 4b574cf | 2022-12-14 04:27:19 +0000 | [diff] [blame] | 84 | "libaudio_aidl_conversion_common_util_cpp", | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 85 | ], | 
|  | 86 | export_header_lib_headers: [ | 
| Shunkai Yao | 4b574cf | 2022-12-14 04:27:19 +0000 | [diff] [blame] | 87 | "libaudio_aidl_conversion_common_util_cpp", | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 88 | ], | 
|  | 89 | host_supported: true, | 
|  | 90 | vendor_available: true, | 
|  | 91 | double_loadable: true, | 
|  | 92 | min_sdk_version: "29", | 
|  | 93 | apex_available: [ | 
|  | 94 | "//apex_available:platform", | 
| William Escande | 62185e8 | 2022-08-22 11:27:57 -0700 | [diff] [blame] | 95 | "com.android.btservices", | 
| Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 96 | "com.android.media", | 
|  | 97 | "com.android.media.swcodec", | 
|  | 98 | ], | 
|  | 99 | target: { | 
|  | 100 | darwin: { | 
|  | 101 | enabled: false, | 
|  | 102 | }, | 
|  | 103 | }, | 
|  | 104 | } | 
| Mikhail Naganov | e7a26ad | 2023-05-25 17:36:48 -0700 | [diff] [blame] | 105 |  | 
|  | 106 | aidl_interface { | 
|  | 107 | name: "av-audio-types-aidl", | 
|  | 108 | unstable: true, | 
|  | 109 | host_supported: true, | 
|  | 110 | vendor_available: true, | 
|  | 111 | double_loadable: true, | 
|  | 112 | local_include_dir: "aidl", | 
|  | 113 | srcs: [ | 
|  | 114 | "aidl/android/media/audio/IHalAdapterVendorExtension.aidl", | 
|  | 115 | ], | 
| Shunkai Yao | 295c8f8 | 2023-10-10 19:31:10 +0000 | [diff] [blame] | 116 | defaults: [ | 
|  | 117 | "latest_android_hardware_audio_core_import_interface", | 
| Mikhail Naganov | e7a26ad | 2023-05-25 17:36:48 -0700 | [diff] [blame] | 118 | ], | 
|  | 119 | backend: { | 
|  | 120 | // The C++ backend is disabled transitively due to use of FMQ by the audio core HAL. | 
|  | 121 | cpp: { | 
|  | 122 | enabled: false, | 
|  | 123 | }, | 
|  | 124 | java: { | 
|  | 125 | sdk_version: "module_current", | 
|  | 126 | }, | 
|  | 127 | }, | 
|  | 128 | } |