blob: 0913503348355ad9c3f994fc23538955e337776d [file] [log] [blame]
Jason Monka2f2d822018-08-13 11:10:48 -04001//
2// Copyright (C) 2018 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17java_library {
18 name: "SystemUI-proto",
19
20 srcs: ["src/**/*.proto"],
21
22 proto: {
23 type: "nano",
24 },
25}
26
27java_library {
28 name: "SystemUI-tags",
29 srcs: ["src/com/android/systemui/EventLogTags.logtags"],
30}
31
32android_library {
33 name: "SystemUI-core",
34 srcs: [
Jason Monkae7ced22018-08-22 16:56:58 -040035 "src/**/*.kt",
Jason Monka2f2d822018-08-13 11:10:48 -040036 "src/**/*.java",
37 "src/**/I*.aidl",
38 ],
39 resource_dirs: [
40 "res-keyguard",
41 "res",
42 ],
43 static_libs: [
44 "SystemUIPluginLib",
45 "SystemUISharedLib",
46 "SettingsLib",
47 "androidx.car_car",
48 "androidx.legacy_legacy-support-v4",
49 "androidx.recyclerview_recyclerview",
50 "androidx.preference_preference",
51 "androidx.appcompat_appcompat",
52 "androidx.mediarouter_mediarouter",
53 "androidx.palette_palette",
54 "androidx.legacy_legacy-preference-v14",
55 "androidx.leanback_leanback",
56 "androidx.slice_slice-core",
57 "androidx.slice_slice-view",
58 "androidx.slice_slice-builders",
59 "androidx.arch.core_core-runtime",
60 "androidx.lifecycle_lifecycle-extensions",
61 "SystemUI-tags",
62 "SystemUI-proto",
63 ],
64 manifest: "AndroidManifest.xml",
65
66 libs: [
67 "telephony-common",
68 "android.car",
69 ],
70
71 aaptflags: [
72 "--extra-packages",
73 "com.android.keyguard",
74 ],
75}
76
Jason Monkae7ced22018-08-22 16:56:58 -040077android_library {
78 name: "SystemUI-tests",
79 manifest: "tests/AndroidManifest.xml",
80 resource_dirs: [
81 "tests/res",
82 "res-keyguard",
83 "res",
84 ],
85 srcs: [
86 "tests/src/**/*.kt",
87 "tests/src/**/*.java",
88 "src/**/*.kt",
89 "src/**/*.java",
90 "src/**/I*.aidl",
91 ],
92 static_libs: [
93 "SystemUIPluginLib",
94 "SystemUISharedLib",
95 "SettingsLib",
96 "androidx.car_car",
97 "androidx.legacy_legacy-support-v4",
98 "androidx.recyclerview_recyclerview",
99 "androidx.preference_preference",
100 "androidx.appcompat_appcompat",
101 "androidx.mediarouter_mediarouter",
102 "androidx.palette_palette",
103 "androidx.legacy_legacy-preference-v14",
104 "androidx.leanback_leanback",
105 "androidx.slice_slice-core",
106 "androidx.slice_slice-view",
107 "androidx.slice_slice-builders",
108 "androidx.arch.core_core-runtime",
109 "androidx.lifecycle_lifecycle-extensions",
110 "SystemUI-tags",
111 "SystemUI-proto",
112 "metrics-helper-lib",
113 "android-support-test",
114 "mockito-target-inline-minus-junit4",
115 "testables",
116 "truth-prebuilt",
117 ],
118 libs: [
119 "android.test.runner",
120 "telephony-common",
121 "android.car",
122 "android.test.base",
123 ],
124 aaptflags: [
125 "--extra-packages",
126 "com.android.keyguard:com.android.systemui",
127 ],
128}
129
Jason Monka2f2d822018-08-13 11:10:48 -0400130android_app {
131 name: "SystemUI",
132 static_libs: [
133 "SystemUI-core",
134 ],
135
136 platform_apis: true,
137 certificate: "platform",
138 privileged: true,
139
140 optimize: {
141 proguard_flags_files: ["proguard.flags"],
142 },
143
144 libs: [
145 "telephony-common",
146 "android.car",
147 ],
148
149 dxflags: ["--multi-dex"],
150 aaptflags: [
151 "--extra-packages",
152 "com.android.keyguard",
153 ],
154
155}