xref: /aosp_15_r20/hardware/interfaces/graphics/composer/aidl/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1/**
2 * Copyright (c) 2021, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    default_team: "trendy_team_android_core_graphics_stack",
19    // See: http://go/android-license-faq
20    // A large-scale-change added 'default_applicable_licenses' to import
21    // all of the 'license_kinds' from "hardware_interfaces_license"
22    // to get the below license kinds:
23    //   SPDX-license-identifier-Apache-2.0
24    default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27aidl_interface {
28    name: "android.hardware.graphics.composer3",
29    host_supported: true,
30    vendor_available: true,
31    double_loadable: true,
32    frozen: false,
33    srcs: [
34        "android/hardware/graphics/composer3/*.aidl",
35    ],
36    stability: "vintf",
37    defaults: [
38        "android.hardware.graphics.common-latest",
39    ],
40    imports: [
41        "android.hardware.common-V2",
42        "android.hardware.drm.common-V1",
43    ],
44    backend: {
45        cpp: {
46            enabled: false,
47        },
48        java: {
49            sdk_version: "module_current",
50            enabled: false,
51        },
52        ndk: {
53        },
54        rust: {
55            enabled: true,
56        },
57    },
58    versions_with_info: [
59        {
60            version: "1",
61            imports: [
62                "android.hardware.graphics.common-V6",
63                "android.hardware.common-V2",
64            ],
65        },
66        {
67            version: "2",
68            imports: [
69                "android.hardware.graphics.common-V6",
70                "android.hardware.common-V2",
71            ],
72        },
73        {
74            version: "3",
75            imports: [
76                "android.hardware.graphics.common-V6",
77                "android.hardware.common-V2",
78            ],
79        },
80    ],
81
82}
83
84cc_library_headers {
85    name: "android.hardware.graphics.composer3-command-buffer",
86    defaults: ["android.hardware.graphics.composer3-ndk_shared"],
87    vendor_available: true,
88    shared_libs: [
89        "android.hardware.common-V2-ndk",
90        "libbase",
91        "libfmq",
92        "libsync",
93    ],
94    static_libs: [
95        "libaidlcommonsupport",
96    ],
97    export_shared_lib_headers: [
98        "libfmq",
99        "libsync",
100    ],
101    export_include_dirs: ["include"],
102}
103
104cc_test {
105    name: "android.hardware.graphics.composer3-hidl2aidl-asserts",
106    defaults: ["android.hardware.graphics.composer3-ndk_shared"],
107    vendor_available: true,
108    srcs: ["android/hardware/graphics/composer3/Hidl2AidlAsserts.cpp"],
109    shared_libs: [
110        "libbinder_ndk",
111        "libhidlbase",
112        "[email protected]",
113        "[email protected]",
114    ],
115}
116