blob: c716a0672ee87b80a39e3611c2682856fad27409 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
2// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3// DEPENDING ON IT IN YOUR PROJECT. ***
4package {
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
22license {
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 Nairdd104a02024-05-09 16:22:26 -070037aidl_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 Badour5d0b79c2021-02-25 13:53:40 -080055aidl_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 Naganov2a6a3012023-02-13 11:45:03 -080065 "aidl/android/media/MicrophoneInfoFw.aidl",
Bob Badour5d0b79c2021-02-25 13:53:40 -080066 "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 Yao49bc61f2023-10-10 19:31:10 +000073 defaults: [
74 "latest_android_media_audio_common_types_import_interface",
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080075 ],
Bob Badour5d0b79c2021-02-25 13:53:40 -080076 backend: {
77 cpp: {
78 min_sdk_version: "29",
79 apex_available: [
80 "//apex_available:platform",
William Escande62185e82022-08-22 11:27:57 -070081 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -080082 "com.android.media",
83 "com.android.media.swcodec",
84 ],
85 },
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080086 java: {
87 sdk_version: "module_current",
88 },
Bob Badour5d0b79c2021-02-25 13:53:40 -080089 },
90}
91
Atneya Nairdd104a02024-05-09 16:22:26 -070092aidl_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 Badour5d0b79c2021-02-25 13:53:40 -0800104cc_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 Yao4b574cf2022-12-14 04:27:19 +0000114 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800115 ],
116 export_header_lib_headers: [
Shunkai Yao4b574cf2022-12-14 04:27:19 +0000117 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800118 ],
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 Escande62185e82022-08-22 11:27:57 -0700125 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800126 "com.android.media",
127 "com.android.media.swcodec",
128 ],
129 target: {
130 darwin: {
131 enabled: false,
132 },
133 },
134}
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700135
136aidl_interface {
137 name: "av-audio-types-aidl",
Mikhail Naganove0540ea2024-11-15 16:39:26 -0800138 unstable: true,
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700139 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 Yao49bc61f2023-10-10 19:31:10 +0000146 defaults: [
147 "latest_android_hardware_audio_core_import_interface",
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700148 ],
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 Naganovdd1b47f2024-05-16 19:36:20 -0700158}