xref: /aosp_15_r20/frameworks/base/packages/SystemUI/animation/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1// Copyright (C) 2021 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
25android_library {
26
27    name: "PlatformAnimationLib",
28    use_resource_processor: true,
29
30    srcs: [
31        "src/**/*.java",
32        "src/**/*.kt",
33    ],
34    exclude_srcs: [
35        "src/com/android/systemui/surfaceeffects/**/*.java",
36        "src/com/android/systemui/surfaceeffects/**/*.kt",
37    ],
38
39    resource_dirs: [
40        "res",
41    ],
42
43    static_libs: [
44        "androidx.core_core-animation",
45        "androidx.core_core-ktx",
46        "androidx.annotation_annotation",
47        "com_android_systemui_flags_lib",
48        "SystemUIShaderLib",
49        "WindowManager-Shell-shared",
50        "//frameworks/libs/systemui:animationlib",
51        "//frameworks/libs/systemui:com_android_systemui_shared_flags_lib",
52    ],
53
54    manifest: "AndroidManifest.xml",
55    kotlincflags: ["-Xjvm-default=all"],
56}
57
58android_library {
59    name: "SystemUIShaderLib",
60    use_resource_processor: true,
61
62    srcs: [
63        "src/com/android/systemui/surfaceeffects/**/*.java",
64        "src/com/android/systemui/surfaceeffects/**/*.kt",
65    ],
66
67    static_libs: [
68        "androidx.core_core-animation",
69        "androidx.core_core-ktx",
70        "androidx.annotation_annotation",
71    ],
72
73    manifest: "AndroidManifest.xml",
74    kotlincflags: ["-Xjvm-default=all"],
75
76    // sdk_version must be specified, otherwise it compiles against private APIs.
77    min_sdk_version: "33",
78    sdk_version: "current",
79}
80