blob: 18bd6b42386a3f531e5801b4b0c49b35aec86990 [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001// Copyright (C) 2017 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
Bob Badour8a6a2bc2021-02-12 17:07:05 -080015package {
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_base_packages_SystemUI_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_packages_SystemUI_license"],
22}
23
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080024genrule {
25 name: "statslog-SystemUI-java-gen",
26 tools: ["stats-log-api-gen"],
27 cmd: "$(location stats-log-api-gen) --java $(out) --module sysui --javaPackage com.android.systemui.shared.system --javaClass SysUiStatsLog",
28 out: ["com/android/systemui/shared/system/SysUiStatsLog.java"],
29}
Jason Monka2f2d822018-08-13 11:10:48 -040030
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080031java_library {
32 name: "SystemUI-statsd",
33
34 srcs: [
35 ":statslog-SystemUI-java-gen",
36 ],
37}
38
39android_library {
Jason Monka2f2d822018-08-13 11:10:48 -040040 name: "SystemUISharedLib",
41 srcs: [
42 "src/**/*.java",
Josh Tsuji2da469f2021-05-10 11:52:06 -040043 "src/**/*.kt",
44 "src/**/*.aidl",
Winson Chung2b72add2021-02-02 23:27:07 -080045 ":wm_shell-aidls",
Evan Rosky14ea8c62021-09-30 17:28:35 -070046 ":wm_shell_util-sources",
Jason Monka2f2d822018-08-13 11:10:48 -040047 ],
Tony Wickham023cb192018-09-13 15:23:04 -070048 static_libs: [
Muhammad Qureshi9bced7d2020-01-16 15:22:12 -080049 "PluginCoreLib",
Hawkwood Glazier8485dc12022-05-21 18:35:22 +000050 "SystemUIAnimationLib",
Hawkwood Glazier44fa7422022-06-07 17:28:09 +000051 "SystemUIPluginLib",
Nick Chameyev0f3c4e52022-05-11 14:49:35 +010052 "SystemUIUnfoldLib",
Nick Chameyevdc994802021-06-28 19:10:08 +010053 "androidx.dynamicanimation_dynamicanimation",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040054 "androidx.concurrent_concurrent-futures",
Hawkwood Glazier81d56df2022-05-10 20:16:21 +000055 "gson-prebuilt-jar",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010056 "dagger2",
57 "jsr330",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040058 ],
Hawkwood Glazier9158a602022-05-27 15:48:40 +000059 resource_dirs: [
60 "res",
61 ],
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040062 java_version: "1.8",
63 min_sdk_version: "current",
Nicolo' Mazzucato6fb25a62022-01-10 19:56:02 +010064 plugins: ["dagger2-compiler"],
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040065}
66
67java_library {
68 name: "SystemUI-flag-types",
69 srcs: [
70 "src/com/android/systemui/flags/Flag.kt",
71 ],
Dave Mankoffd1d48862021-11-05 14:26:41 -040072 include_srcs: true,
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040073 static_kotlin_stdlib: false,
74 java_version: "1.8",
75 min_sdk_version: "current",
76}
77
78java_library {
79 name: "SystemUIFlagsLib",
80 srcs: [
81 "src/com/android/systemui/flags/**/*.kt",
82 ],
83 static_kotlin_stdlib: false,
84 libs: [
85 "androidx.concurrent_concurrent-futures",
Dave Mankoff93c9d9d2021-10-20 10:14:04 -040086 ],
87 static_libs: [
88 "SystemUI-flag-types",
Tony Wickham023cb192018-09-13 15:23:04 -070089 ],
Sunny Goyal226849f2020-05-01 15:45:09 -070090 java_version: "1.8",
Evan Rosky14ea8c62021-09-30 17:28:35 -070091 min_sdk_version: "current",
Jason Monka2f2d822018-08-13 11:10:48 -040092}