xref: /aosp_15_r20/frameworks/native/libs/gui/aidl/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1// Copyright 2024 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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_native_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_native_license"],
22    default_team: "trendy_team_android_core_graphics_stack",
23}
24
25filegroup {
26    name: "libgui_unstructured_aidl_files",
27    srcs: [
28        ":libgui_extra_unstructured_aidl_files",
29
30        "android/gui/BitTube.aidl",
31        "android/gui/LayerMetadata.aidl",
32        "android/gui/ParcelableVsyncEventData.aidl",
33        "android/gui/ScreenCaptureResults.aidl",
34    ],
35}
36
37aidl_library {
38    name: "libgui_unstructured_aidl",
39    hdrs: [":libgui_unstructured_aidl_files"],
40}
41
42filegroup {
43    name: "libgui_interface_aidl_files",
44    srcs: [
45        ":libgui_extra_aidl_files",
46        "**/*.aidl",
47    ],
48    exclude_srcs: [":libgui_unstructured_aidl_files"],
49}
50
51aidl_interface {
52    name: "android.gui",
53    unstable: true,
54    srcs: [
55        ":libgui_interface_aidl_files",
56    ],
57    include_dirs: [
58        "frameworks/native/libs/gui",
59        "frameworks/native/libs/gui/aidl",
60    ],
61    headers: [
62        "libgui_aidl_hdrs",
63        "libgui_extra_unstructured_aidl_hdrs",
64    ],
65    backend: {
66        rust: {
67            enabled: true,
68            additional_rustlibs: [
69                "libgui_aidl_types_rs",
70            ],
71        },
72        java: {
73            enabled: false,
74        },
75        cpp: {
76            enabled: false,
77        },
78        ndk: {
79            enabled: false,
80        },
81    },
82}
83