• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: true,
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            version: "4",
82            imports: [
83                "android.hardware.graphics.common-V6",
84                "android.hardware.common-V2",
85                "android.hardware.drm.common-V1",
86            ],
87        },
88
89    ],
90
91}
92
93cc_library_headers {
94    name: "android.hardware.graphics.composer3-command-buffer",
95    defaults: ["android.hardware.graphics.composer3-ndk_shared"],
96    vendor_available: true,
97    shared_libs: [
98        "android.hardware.common-V2-ndk",
99        "libbase",
100        "libfmq",
101        "libsync",
102    ],
103    static_libs: [
104        "libaidlcommonsupport",
105    ],
106    export_shared_lib_headers: [
107        "libfmq",
108        "libsync",
109    ],
110    export_include_dirs: ["include"],
111}
112
113cc_test {
114    name: "android.hardware.graphics.composer3-hidl2aidl-asserts",
115    defaults: ["android.hardware.graphics.composer3-ndk_shared"],
116    vendor_available: true,
117    srcs: ["android/hardware/graphics/composer3/Hidl2AidlAsserts.cpp"],
118    shared_libs: [
119        "libbinder_ndk",
120        "libhidlbase",
121        "android.hardware.graphics.composer@2.1",
122        "android.hardware.graphics.composer@2.4",
123    ],
124}
125