Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 1 | // Copyright (C) 2022 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package { |
| 16 | default_applicable_licenses: ["hardware_interfaces_license"], |
| 17 | } |
| 18 | |
Eino-Ville Talvala | 50b9157 | 2024-10-16 17:48:22 -0700 | [diff] [blame] | 19 | aidl_interface_defaults { |
| 20 | name: "android.hardware.graphics.allocator-latest", |
| 21 | imports: [ |
| 22 | "android.hardware.graphics.allocator-V2", |
| 23 | ], |
| 24 | } |
| 25 | |
| 26 | rust_defaults { |
| 27 | name: "android.hardware.graphics.allocator-latest-rust", |
| 28 | rustlibs: [ |
| 29 | "android.hardware.graphics.allocator-V2-rust", |
| 30 | ], |
| 31 | defaults: [ |
| 32 | "android.hardware.graphics.common-latest-rust", |
| 33 | ], |
| 34 | } |
| 35 | |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 36 | cc_defaults { |
Sally Qi | 0435c6b | 2022-08-30 15:13:10 -0700 | [diff] [blame] | 37 | name: "android.hardware.graphics.allocator-ndk_static", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 38 | target: { |
| 39 | linux: { |
| 40 | static_libs: [ |
| 41 | "android.hardware.graphics.allocator-V2-ndk", |
| 42 | ], |
| 43 | }, |
| 44 | }, |
John Reck | cf8d8bc | 2022-12-19 16:35:22 -0500 | [diff] [blame] | 45 | defaults: [ |
| 46 | "android.hardware.graphics.common-ndk_static", |
| 47 | ], |
Sally Qi | 0435c6b | 2022-08-30 15:13:10 -0700 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | cc_defaults { |
| 51 | name: "android.hardware.graphics.allocator-ndk_shared", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 52 | target: { |
| 53 | linux: { |
| 54 | shared_libs: [ |
| 55 | "android.hardware.graphics.allocator-V2-ndk", |
| 56 | ], |
| 57 | }, |
| 58 | }, |
John Reck | cf8d8bc | 2022-12-19 16:35:22 -0500 | [diff] [blame] | 59 | defaults: [ |
| 60 | "android.hardware.graphics.common-ndk_shared", |
| 61 | ], |
Sally Qi | 0435c6b | 2022-08-30 15:13:10 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Eino-Ville Talvala | 50b9157 | 2024-10-16 17:48:22 -0700 | [diff] [blame] | 64 | aidl_interface_defaults { |
| 65 | name: "android.hardware.graphics.common-latest", |
| 66 | imports: [ |
Eino-Ville Talvala | 12a9575 | 2024-10-16 17:50:42 -0700 | [diff] [blame] | 67 | "android.hardware.graphics.common-V6", |
Eino-Ville Talvala | 50b9157 | 2024-10-16 17:48:22 -0700 | [diff] [blame] | 68 | ], |
| 69 | } |
| 70 | |
| 71 | rust_defaults { |
| 72 | name: "android.hardware.graphics.common-latest-rust", |
| 73 | rustlibs: [ |
Eino-Ville Talvala | 12a9575 | 2024-10-16 17:50:42 -0700 | [diff] [blame] | 74 | "android.hardware.graphics.common-V6-rust", |
Eino-Ville Talvala | 50b9157 | 2024-10-16 17:48:22 -0700 | [diff] [blame] | 75 | ], |
| 76 | } |
| 77 | |
Sally Qi | 0435c6b | 2022-08-30 15:13:10 -0700 | [diff] [blame] | 78 | cc_defaults { |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 79 | name: "android.hardware.graphics.common-ndk_static", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 80 | target: { |
| 81 | linux: { |
| 82 | static_libs: [ |
Eino-Ville Talvala | 12a9575 | 2024-10-16 17:50:42 -0700 | [diff] [blame] | 83 | "android.hardware.graphics.common-V6-ndk", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 84 | ], |
| 85 | }, |
| 86 | }, |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 87 | } |
| 88 | |
| 89 | cc_defaults { |
| 90 | name: "android.hardware.graphics.common-ndk_shared", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 91 | target: { |
| 92 | linux: { |
| 93 | shared_libs: [ |
Eino-Ville Talvala | 12a9575 | 2024-10-16 17:50:42 -0700 | [diff] [blame] | 94 | "android.hardware.graphics.common-V6-ndk", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 95 | ], |
| 96 | }, |
| 97 | }, |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 98 | } |
| 99 | |
Eino-Ville Talvala | 50b9157 | 2024-10-16 17:48:22 -0700 | [diff] [blame] | 100 | aidl_interface_defaults { |
| 101 | name: "android.hardware.graphics.composer3-latest", |
| 102 | imports: [ |
| 103 | "android.hardware.graphics.composer3-V4", |
| 104 | ], |
| 105 | } |
| 106 | |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 107 | cc_defaults { |
| 108 | name: "android.hardware.graphics.composer3-ndk_static", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 109 | target: { |
| 110 | linux: { |
| 111 | static_libs: [ |
| 112 | "android.hardware.drm.common-V1-ndk", |
| 113 | "android.hardware.graphics.composer3-V4-ndk", |
| 114 | ], |
| 115 | }, |
| 116 | }, |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 117 | } |
| 118 | |
| 119 | cc_defaults { |
| 120 | name: "android.hardware.graphics.composer3-ndk_shared", |
Jerome Gaillard | 9c50f3b | 2024-09-19 17:25:45 +0100 | [diff] [blame] | 121 | target: { |
| 122 | linux: { |
| 123 | shared_libs: [ |
| 124 | "android.hardware.drm.common-V1-ndk", |
| 125 | "android.hardware.graphics.composer3-V4-ndk", |
| 126 | ], |
| 127 | }, |
| 128 | }, |
Sally Qi | 784c253 | 2022-08-22 13:50:32 -0700 | [diff] [blame] | 129 | } |