• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/CaptureArgs.aidl",
32        "android/gui/DisplayCaptureArgs.aidl",
33        "android/gui/LayerCaptureArgs.aidl",
34        "android/gui/LayerMetadata.aidl",
35        "android/gui/ParcelableVsyncEventData.aidl",
36        "android/gui/ScreenCaptureResults.aidl",
37    ],
38}
39
40aidl_library {
41    name: "libgui_unstructured_aidl",
42    hdrs: [":libgui_unstructured_aidl_files"],
43}
44
45filegroup {
46    name: "libgui_interface_aidl_files",
47    srcs: [
48        ":libgui_extra_aidl_files",
49        "**/*.aidl",
50    ],
51    exclude_srcs: [":libgui_unstructured_aidl_files"],
52}
53
54aidl_interface {
55    name: "android.gui",
56    unstable: true,
57    srcs: [
58        ":libgui_interface_aidl_files",
59    ],
60    include_dirs: [
61        "frameworks/native/libs/gui",
62        "frameworks/native/libs/gui/aidl",
63    ],
64    headers: [
65        "libgui_aidl_hdrs",
66        "libgui_extra_unstructured_aidl_hdrs",
67    ],
68    backend: {
69        rust: {
70            enabled: true,
71            additional_rustlibs: [
72                "libgui_aidl_types_rs",
73            ],
74        },
75        java: {
76            enabled: false,
77        },
78        cpp: {
79            enabled: false,
80        },
81        ndk: {
82            enabled: false,
83        },
84    },
85}
86