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", |
| 47 | "aidl/android/media/MicrophoneInfoData.aidl", |
| 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 | ], |
| 55 | backend: { |
| 56 | cpp: { |
| 57 | min_sdk_version: "29", |
| 58 | apex_available: [ |
| 59 | "//apex_available:platform", |
| 60 | "com.android.bluetooth.updatable", |
| 61 | "com.android.media", |
| 62 | "com.android.media.swcodec", |
| 63 | ], |
| 64 | }, |
| 65 | }, |
| 66 | } |
| 67 | |
| 68 | cc_library_headers { |
| 69 | name: "av-headers", |
| 70 | export_include_dirs: ["include"], |
| 71 | static_libs: [ |
| 72 | "av-types-aidl-cpp", |
| 73 | ], |
| 74 | export_static_lib_headers: [ |
| 75 | "av-types-aidl-cpp", |
| 76 | ], |
| 77 | header_libs: [ |
| 78 | "libaudioclient_aidl_conversion_util", |
| 79 | ], |
| 80 | export_header_lib_headers: [ |
| 81 | "libaudioclient_aidl_conversion_util", |
| 82 | ], |
| 83 | host_supported: true, |
| 84 | vendor_available: true, |
| 85 | double_loadable: true, |
| 86 | min_sdk_version: "29", |
| 87 | apex_available: [ |
| 88 | "//apex_available:platform", |
| 89 | "com.android.bluetooth.updatable", |
| 90 | "com.android.media", |
| 91 | "com.android.media.swcodec", |
| 92 | ], |
| 93 | target: { |
| 94 | darwin: { |
| 95 | enabled: false, |
| 96 | }, |
| 97 | }, |
| 98 | } |