blob: 37f64575d7679fd10082baf68c76c7323d2fb964 [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
Bob Badour5d0b79c2021-02-25 13:53:40 -080037aidl_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 Naganov2a6a3012023-02-13 11:45:03 -080047 "aidl/android/media/MicrophoneInfoFw.aidl",
Bob Badour5d0b79c2021-02-25 13:53:40 -080048 "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 ],
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080055 imports: [
56 "android.media.audio.common.types-V2",
57 ],
Bob Badour5d0b79c2021-02-25 13:53:40 -080058 backend: {
59 cpp: {
60 min_sdk_version: "29",
61 apex_available: [
62 "//apex_available:platform",
William Escande62185e82022-08-22 11:27:57 -070063 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -080064 "com.android.media",
65 "com.android.media.swcodec",
66 ],
67 },
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080068 java: {
69 sdk_version: "module_current",
70 },
Bob Badour5d0b79c2021-02-25 13:53:40 -080071 },
72}
73
74cc_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 Yao4b574cf2022-12-14 04:27:19 +000084 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -080085 ],
86 export_header_lib_headers: [
Shunkai Yao4b574cf2022-12-14 04:27:19 +000087 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -080088 ],
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 Escande62185e82022-08-22 11:27:57 -070095 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -080096 "com.android.media",
97 "com.android.media.swcodec",
98 ],
99 target: {
100 darwin: {
101 enabled: false,
102 },
103 },
104}