Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 1 | // |
| 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 | |
| 17 | java_library { |
| 18 | name: "SystemUI-proto", |
| 19 | |
| 20 | srcs: ["src/**/*.proto"], |
| 21 | |
| 22 | proto: { |
| 23 | type: "nano", |
| 24 | }, |
| 25 | } |
| 26 | |
| 27 | java_library { |
| 28 | name: "SystemUI-tags", |
| 29 | srcs: ["src/com/android/systemui/EventLogTags.logtags"], |
| 30 | } |
| 31 | |
| 32 | android_library { |
| 33 | name: "SystemUI-core", |
| 34 | srcs: [ |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 35 | "src/**/*.kt", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 36 | "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", |
Ying Zheng | 4fd6b78 | 2018-09-11 12:55:04 -0700 | [diff] [blame] | 69 | "android.car.user", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 70 | ], |
| 71 | |
| 72 | aaptflags: [ |
| 73 | "--extra-packages", |
| 74 | "com.android.keyguard", |
| 75 | ], |
| 76 | } |
| 77 | |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 78 | android_library { |
| 79 | name: "SystemUI-tests", |
| 80 | manifest: "tests/AndroidManifest.xml", |
| 81 | resource_dirs: [ |
| 82 | "tests/res", |
| 83 | "res-keyguard", |
| 84 | "res", |
| 85 | ], |
| 86 | srcs: [ |
| 87 | "tests/src/**/*.kt", |
| 88 | "tests/src/**/*.java", |
| 89 | "src/**/*.kt", |
| 90 | "src/**/*.java", |
| 91 | "src/**/I*.aidl", |
| 92 | ], |
| 93 | static_libs: [ |
| 94 | "SystemUIPluginLib", |
| 95 | "SystemUISharedLib", |
| 96 | "SettingsLib", |
| 97 | "androidx.car_car", |
| 98 | "androidx.legacy_legacy-support-v4", |
| 99 | "androidx.recyclerview_recyclerview", |
| 100 | "androidx.preference_preference", |
| 101 | "androidx.appcompat_appcompat", |
| 102 | "androidx.mediarouter_mediarouter", |
| 103 | "androidx.palette_palette", |
| 104 | "androidx.legacy_legacy-preference-v14", |
| 105 | "androidx.leanback_leanback", |
| 106 | "androidx.slice_slice-core", |
| 107 | "androidx.slice_slice-view", |
| 108 | "androidx.slice_slice-builders", |
| 109 | "androidx.arch.core_core-runtime", |
| 110 | "androidx.lifecycle_lifecycle-extensions", |
| 111 | "SystemUI-tags", |
| 112 | "SystemUI-proto", |
| 113 | "metrics-helper-lib", |
| 114 | "android-support-test", |
| 115 | "mockito-target-inline-minus-junit4", |
| 116 | "testables", |
| 117 | "truth-prebuilt", |
| 118 | ], |
| 119 | libs: [ |
| 120 | "android.test.runner", |
| 121 | "telephony-common", |
| 122 | "android.car", |
Ying Zheng | 4fd6b78 | 2018-09-11 12:55:04 -0700 | [diff] [blame] | 123 | "android.car.user", |
Jason Monk | ae7ced2 | 2018-08-22 16:56:58 -0400 | [diff] [blame] | 124 | "android.test.base", |
| 125 | ], |
| 126 | aaptflags: [ |
| 127 | "--extra-packages", |
| 128 | "com.android.keyguard:com.android.systemui", |
| 129 | ], |
| 130 | } |
| 131 | |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 132 | android_app { |
| 133 | name: "SystemUI", |
| 134 | static_libs: [ |
| 135 | "SystemUI-core", |
| 136 | ], |
| 137 | |
| 138 | platform_apis: true, |
| 139 | certificate: "platform", |
| 140 | privileged: true, |
| 141 | |
| 142 | optimize: { |
| 143 | proguard_flags_files: ["proguard.flags"], |
| 144 | }, |
| 145 | |
| 146 | libs: [ |
| 147 | "telephony-common", |
| 148 | "android.car", |
Ying Zheng | 4fd6b78 | 2018-09-11 12:55:04 -0700 | [diff] [blame] | 149 | "android.car.user", |
Jason Monk | a2f2d82 | 2018-08-13 11:10:48 -0400 | [diff] [blame] | 150 | ], |
| 151 | |
| 152 | dxflags: ["--multi-dex"], |
| 153 | aaptflags: [ |
| 154 | "--extra-packages", |
| 155 | "com.android.keyguard", |
| 156 | ], |
| 157 | |
| 158 | } |
Winson Chung | 2dbcf09 | 2018-10-24 13:00:41 -0700 | [diff] [blame^] | 159 | |
| 160 | // Only used for products that are shipping legacy Recents |
| 161 | android_app { |
| 162 | name: "SystemUIWithLegacyRecents", |
| 163 | overrides: [ |
| 164 | "SystemUI", |
| 165 | ], |
| 166 | |
| 167 | platform_apis: true, |
| 168 | certificate: "platform", |
| 169 | privileged: true, |
| 170 | |
| 171 | dxflags: ["--multi-dex"], |
| 172 | aaptflags: [ |
| 173 | "--extra-packages", |
| 174 | "com.android.keyguard", |
| 175 | ], |
| 176 | optimize: { |
| 177 | proguard_flags_files: ["proguard.flags", "legacy/recents/proguard.flags"], |
| 178 | }, |
| 179 | |
| 180 | static_libs: [ |
| 181 | "SystemUI-core", |
| 182 | ], |
| 183 | libs: [ |
| 184 | "telephony-common", |
| 185 | "android.car", |
| 186 | "android.car.user", |
| 187 | ], |
| 188 | |
| 189 | srcs: [ |
| 190 | "legacy/recents/src/**/*.java", |
| 191 | "legacy/recents/src/**/I*.aidl", |
| 192 | ], |
| 193 | resource_dirs: [ |
| 194 | "legacy/recents/res", |
| 195 | ], |
| 196 | |
| 197 | manifest: "legacy/recents/AndroidManifest.xml", |
| 198 | } |