xref: /aosp_15_r20/frameworks/base/packages/SystemUI/animation/lib/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 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    default_team: "trendy_team_system_ui_please_use_a_more_specific_subteam_if_possible_",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "frameworks_base_packages_SystemUI_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-Apache-2.0
22    default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
23}
24
25java_library {
26    name: "PlatformAnimationLib-server",
27    srcs: [
28        "src/com/android/systemui/animation/server/*.java",
29        ":PlatformAnimationLib-aidl",
30    ],
31    static_libs: [
32        "WindowManager-Shell-shared",
33    ],
34}
35
36// This is the core animation library written in java and can be depended by java sdk libraries.
37// Please don't introduce kotlin code in this target since kotlin is incompatible with sdk
38// libraries.
39java_library {
40    name: "PlatformAnimationLib-core",
41    srcs: [
42        "src/com/android/systemui/animation/*.java",
43        ":PlatformAnimationLib-aidl",
44    ],
45    static_libs: [
46        "WindowManager-Shell-shared",
47    ],
48}
49
50filegroup {
51    name: "PlatformAnimationLib-client-srcs",
52    srcs: [
53        "src/com/android/systemui/animation/OriginRemoteTransition.java",
54        "src/com/android/systemui/animation/OriginTransitionSession.java",
55        "src/com/android/systemui/animation/SurfaceUIComponent.java",
56        "src/com/android/systemui/animation/Transactions.java",
57        "src/com/android/systemui/animation/UIComponent.java",
58        "src/com/android/systemui/animation/ViewUIComponent.java",
59        ":PlatformAnimationLib-aidl",
60    ],
61}
62
63filegroup {
64    name: "PlatformAnimationLib-aidl",
65    srcs: [
66        "src/**/*.aidl",
67    ],
68}
69