Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 1 | // This is the expected build file, but it may not be right in all cases |
| 2 | |
Bob Badour | c22b35b | 2021-02-23 14:26:20 -0800 | [diff] [blame] | 3 | package { |
| 4 | // See: http://go/android-license-faq |
| 5 | // A large-scale-change added 'default_applicable_licenses' to import |
| 6 | // all of the 'license_kinds' from "hardware_interfaces_license" |
| 7 | // to get the below license kinds: |
| 8 | // SPDX-license-identifier-Apache-2.0 |
| 9 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 10 | } |
| 11 | |
Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 12 | aidl_interface { |
| 13 | name: "android.hardware.automotive.audiocontrol", |
| 14 | vendor_available: true, |
| 15 | srcs: ["android/hardware/automotive/audiocontrol/*.aidl"], |
Shunkai Yao | 0d52309 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 16 | defaults: [ |
| 17 | "latest_android_hardware_audio_common_import_interface", |
| 18 | "latest_android_media_audio_common_types_import_interface", |
Francois Gaffie | 5d7af1e | 2022-02-02 11:12:08 +0100 | [diff] [blame] | 19 | ], |
Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 20 | stability: "vintf", |
| 21 | backend: { |
| 22 | java: { |
| 23 | sdk_version: "module_current", |
Keun young Park | 8791c7e | 2021-10-05 16:11:07 -0700 | [diff] [blame] | 24 | min_sdk_version: "31", |
| 25 | apex_available: [ |
| 26 | "//apex_available:platform", |
| 27 | "com.android.car.framework", |
| 28 | ], |
Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 29 | }, |
Weilin Xu | 90af84e | 2024-04-16 11:56:00 -0700 | [diff] [blame] | 30 | rust: { |
| 31 | enabled: true, |
| 32 | }, |
Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 33 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 34 | versions_with_info: [ |
| 35 | { |
| 36 | version: "1", |
| 37 | imports: [ |
| 38 | "android.hardware.audio.common-V1", |
Lorena Torres-Huerta | 8296aa8 | 2022-08-29 21:48:01 +0000 | [diff] [blame] | 39 | "android.media.audio.common.types-V2", |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 40 | ], |
| 41 | }, |
| 42 | { |
| 43 | version: "2", |
| 44 | imports: [ |
| 45 | "android.hardware.audio.common-V1", |
Lorena Torres-Huerta | 8296aa8 | 2022-08-29 21:48:01 +0000 | [diff] [blame] | 46 | "android.media.audio.common.types-V2", |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 47 | ], |
| 48 | }, |
Alex Buynytskyy | ec1198d | 2023-04-04 19:52:27 +0000 | [diff] [blame] | 49 | { |
| 50 | version: "3", |
| 51 | imports: [ |
| 52 | "android.hardware.audio.common-V1", |
| 53 | "android.media.audio.common.types-V2", |
| 54 | ], |
| 55 | }, |
Devin Moore | a8efdb1 | 2024-02-20 17:31:40 +0000 | [diff] [blame] | 56 | { |
| 57 | version: "4", |
| 58 | imports: [ |
| 59 | "android.media.audio.common.types-V3", |
| 60 | "android.hardware.audio.common-V3", |
| 61 | ], |
| 62 | }, |
Devin Moore | 9df0245 | 2025-01-08 21:21:06 +0000 | [diff] [blame] | 63 | { |
| 64 | version: "5", |
| 65 | imports: [ |
| 66 | "android.media.audio.common.types-V4", |
| 67 | "android.hardware.audio.common-V4", |
| 68 | ], |
| 69 | }, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 70 | |
Francois Gaffie | 5d7af1e | 2022-02-02 11:12:08 +0100 | [diff] [blame] | 71 | ], |
Devin Moore | 9df0245 | 2025-01-08 21:21:06 +0000 | [diff] [blame] | 72 | frozen: true, |
Jiyong Park | 703e979 | 2022-03-22 14:18:48 +0900 | [diff] [blame] | 73 | |
Hayden Gomes | 49c845f | 2020-10-27 13:01:33 -0700 | [diff] [blame] | 74 | } |
Shunkai Yao | 0d52309 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 75 | |
| 76 | // Note: This should always be one version ahead of the last frozen version |
François Gaffie | 25aff25 | 2024-04-15 13:33:51 +0200 | [diff] [blame] | 77 | latest_android_hardware_automotive_audiocontrol = "android.hardware.automotive.audiocontrol-V5" |
Shunkai Yao | 0d52309 | 2023-10-10 19:26:07 +0000 | [diff] [blame] | 78 | |
| 79 | cc_defaults { |
| 80 | name: "latest_android_hardware_automotive_audiocontrol_cpp_static", |
| 81 | static_libs: [ |
| 82 | latest_android_hardware_automotive_audiocontrol + "-cpp", |
| 83 | ], |
| 84 | } |
| 85 | |
| 86 | cc_defaults { |
| 87 | name: "latest_android_hardware_automotive_audiocontrol_cpp_shared", |
| 88 | shared_libs: [ |
| 89 | latest_android_hardware_automotive_audiocontrol + "-cpp", |
| 90 | ], |
| 91 | } |
| 92 | |
| 93 | cc_defaults { |
| 94 | name: "latest_android_hardware_automotive_audiocontrol_ndk_static", |
| 95 | static_libs: [ |
| 96 | latest_android_hardware_automotive_audiocontrol + "-ndk", |
| 97 | ], |
| 98 | } |
| 99 | |
| 100 | cc_defaults { |
| 101 | name: "latest_android_hardware_automotive_audiocontrol_ndk_shared", |
| 102 | shared_libs: [ |
| 103 | latest_android_hardware_automotive_audiocontrol + "-ndk", |
| 104 | ], |
| 105 | } |
Weilin Xu | 7d2ac2b | 2024-04-02 14:56:40 -0700 | [diff] [blame] | 106 | |
| 107 | java_defaults { |
| 108 | name: "latest_android_hardware_automotive_audiocontrol_java_static", |
| 109 | static_libs: [ |
| 110 | latest_android_hardware_automotive_audiocontrol + "-java", |
| 111 | ], |
| 112 | } |
Weilin Xu | 90af84e | 2024-04-16 11:56:00 -0700 | [diff] [blame] | 113 | |
| 114 | rust_defaults { |
| 115 | name: "latest_android_hardware_automotive_audiocontrol_rust", |
| 116 | rustlibs: [ |
| 117 | latest_android_hardware_automotive_audiocontrol + "-rust", |
| 118 | ], |
| 119 | } |