xref: /aosp_15_r20/hardware/interfaces/graphics/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
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
15package {
16    default_applicable_licenses: ["hardware_interfaces_license"],
17}
18
19aidl_interface_defaults {
20    name: "android.hardware.graphics.allocator-latest",
21    imports: [
22        "android.hardware.graphics.allocator-V2",
23    ],
24}
25
26rust_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
36cc_defaults {
37    name: "android.hardware.graphics.allocator-ndk_static",
38    target: {
39        linux: {
40            static_libs: [
41                "android.hardware.graphics.allocator-V2-ndk",
42            ],
43        },
44    },
45    defaults: [
46        "android.hardware.graphics.common-ndk_static",
47    ],
48}
49
50cc_defaults {
51    name: "android.hardware.graphics.allocator-ndk_shared",
52    target: {
53        linux: {
54            shared_libs: [
55                "android.hardware.graphics.allocator-V2-ndk",
56            ],
57        },
58    },
59    defaults: [
60        "android.hardware.graphics.common-ndk_shared",
61    ],
62}
63
64aidl_interface_defaults {
65    name: "android.hardware.graphics.common-latest",
66    imports: [
67        "android.hardware.graphics.common-V6",
68    ],
69}
70
71rust_defaults {
72    name: "android.hardware.graphics.common-latest-rust",
73    rustlibs: [
74        "android.hardware.graphics.common-V6-rust",
75    ],
76}
77
78cc_defaults {
79    name: "android.hardware.graphics.common-ndk_static",
80    target: {
81        linux: {
82            static_libs: [
83                "android.hardware.graphics.common-V6-ndk",
84            ],
85        },
86    },
87}
88
89cc_defaults {
90    name: "android.hardware.graphics.common-ndk_shared",
91    target: {
92        linux: {
93            shared_libs: [
94                "android.hardware.graphics.common-V6-ndk",
95            ],
96        },
97    },
98}
99
100aidl_interface_defaults {
101    name: "android.hardware.graphics.composer3-latest",
102    imports: [
103        "android.hardware.graphics.composer3-V4",
104    ],
105}
106
107cc_defaults {
108    name: "android.hardware.graphics.composer3-ndk_static",
109    target: {
110        linux: {
111            static_libs: [
112                "android.hardware.drm.common-V1-ndk",
113                "android.hardware.graphics.composer3-V4-ndk",
114            ],
115        },
116    },
117}
118
119cc_defaults {
120    name: "android.hardware.graphics.composer3-ndk_shared",
121    target: {
122        linux: {
123            shared_libs: [
124                "android.hardware.drm.common-V1-ndk",
125                "android.hardware.graphics.composer3-V4-ndk",
126            ],
127        },
128    },
129}
130