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 | |
Atneya Nair | dd104a0 | 2024-05-09 16:22:26 -0700 | [diff] [blame] | 37 | aidl_interface_defaults { |
| 38 | name: "audio-aidl-defaults", |
| 39 | unstable: true, |
| 40 | host_supported: true, |
| 41 | backend: { |
| 42 | cpp: { |
| 43 | enabled: true, |
| 44 | }, |
| 45 | java: { |
| 46 | enabled: true, |
| 47 | }, |
| 48 | rust: { |
| 49 | enabled: true, |
| 50 | }, |
| 51 | }, |
| 52 | |
| 53 | } |
| 54 | |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 55 | aidl_interface { |
| 56 | name: "av-types-aidl", |
| 57 | unstable: true, |
| 58 | host_supported: true, |
| 59 | vendor_available: true, |
| 60 | double_loadable: true, |
| 61 | local_include_dir: "aidl", |
| 62 | srcs: [ |
| 63 | "aidl/android/media/InterpolatorConfig.aidl", |
| 64 | "aidl/android/media/InterpolatorType.aidl", |
Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 65 | "aidl/android/media/MicrophoneInfoFw.aidl", |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 66 | "aidl/android/media/VolumeShaperConfiguration.aidl", |
| 67 | "aidl/android/media/VolumeShaperConfigurationOptionFlag.aidl", |
| 68 | "aidl/android/media/VolumeShaperConfigurationType.aidl", |
| 69 | "aidl/android/media/VolumeShaperOperation.aidl", |
| 70 | "aidl/android/media/VolumeShaperOperationFlag.aidl", |
| 71 | "aidl/android/media/VolumeShaperState.aidl", |
| 72 | ], |
Shunkai Yao | 49bc61f | 2023-10-10 19:31:10 +0000 | [diff] [blame] | 73 | defaults: [ |
| 74 | "latest_android_media_audio_common_types_import_interface", |
Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 75 | ], |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 76 | backend: { |
| 77 | cpp: { |
| 78 | min_sdk_version: "29", |
| 79 | apex_available: [ |
| 80 | "//apex_available:platform", |
William Escande | 62185e8 | 2022-08-22 11:27:57 -0700 | [diff] [blame] | 81 | "com.android.btservices", |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 82 | "com.android.media", |
| 83 | "com.android.media.swcodec", |
| 84 | ], |
| 85 | }, |
Mikhail Naganov | 2a6a301 | 2023-02-13 11:45:03 -0800 | [diff] [blame] | 86 | java: { |
| 87 | sdk_version: "module_current", |
| 88 | }, |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 89 | }, |
| 90 | } |
| 91 | |
Atneya Nair | dd104a0 | 2024-05-09 16:22:26 -0700 | [diff] [blame] | 92 | aidl_interface { |
| 93 | name: "audio-permission-aidl", |
| 94 | // TODO remove |
| 95 | vendor_available: true, |
| 96 | double_loadable: true, |
| 97 | defaults: ["audio-aidl-defaults"], |
| 98 | local_include_dir: "aidl", |
| 99 | srcs: [ |
| 100 | "aidl/com/android/media/permission/*", |
| 101 | ], |
| 102 | } |
| 103 | |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 104 | cc_library_headers { |
| 105 | name: "av-headers", |
| 106 | export_include_dirs: ["include"], |
| 107 | static_libs: [ |
| 108 | "av-types-aidl-cpp", |
| 109 | ], |
| 110 | export_static_lib_headers: [ |
| 111 | "av-types-aidl-cpp", |
| 112 | ], |
| 113 | header_libs: [ |
Shunkai Yao | 4b574cf | 2022-12-14 04:27:19 +0000 | [diff] [blame] | 114 | "libaudio_aidl_conversion_common_util_cpp", |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 115 | ], |
| 116 | export_header_lib_headers: [ |
Shunkai Yao | 4b574cf | 2022-12-14 04:27:19 +0000 | [diff] [blame] | 117 | "libaudio_aidl_conversion_common_util_cpp", |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 118 | ], |
| 119 | host_supported: true, |
| 120 | vendor_available: true, |
| 121 | double_loadable: true, |
| 122 | min_sdk_version: "29", |
| 123 | apex_available: [ |
| 124 | "//apex_available:platform", |
William Escande | 62185e8 | 2022-08-22 11:27:57 -0700 | [diff] [blame] | 125 | "com.android.btservices", |
Bob Badour | 5d0b79c | 2021-02-25 13:53:40 -0800 | [diff] [blame] | 126 | "com.android.media", |
| 127 | "com.android.media.swcodec", |
| 128 | ], |
| 129 | target: { |
| 130 | darwin: { |
| 131 | enabled: false, |
| 132 | }, |
| 133 | }, |
| 134 | } |
Mikhail Naganov | e7a26ad | 2023-05-25 17:36:48 -0700 | [diff] [blame] | 135 | |
| 136 | aidl_interface { |
| 137 | name: "av-audio-types-aidl", |
Mikhail Naganov | e0540ea | 2024-11-15 16:39:26 -0800 | [diff] [blame^] | 138 | unstable: true, |
Mikhail Naganov | e7a26ad | 2023-05-25 17:36:48 -0700 | [diff] [blame] | 139 | host_supported: true, |
| 140 | vendor_available: true, |
| 141 | double_loadable: true, |
| 142 | local_include_dir: "aidl", |
| 143 | srcs: [ |
| 144 | "aidl/android/media/audio/IHalAdapterVendorExtension.aidl", |
| 145 | ], |
Shunkai Yao | 49bc61f | 2023-10-10 19:31:10 +0000 | [diff] [blame] | 146 | defaults: [ |
| 147 | "latest_android_hardware_audio_core_import_interface", |
Mikhail Naganov | e7a26ad | 2023-05-25 17:36:48 -0700 | [diff] [blame] | 148 | ], |
| 149 | backend: { |
| 150 | // The C++ backend is disabled transitively due to use of FMQ by the audio core HAL. |
| 151 | cpp: { |
| 152 | enabled: false, |
| 153 | }, |
| 154 | java: { |
| 155 | sdk_version: "module_current", |
| 156 | }, |
| 157 | }, |
Mikhail Naganov | dd1b47f | 2024-05-16 19:36:20 -0700 | [diff] [blame] | 158 | } |