blob: b4d8393683baeddbc70067c0c7db15014e3b330b [file] [log] [blame]
Jiyong Parke86e89a2019-11-17 13:11:19 +09001filegroup {
2 name: "services-main-sources",
3 srcs: ["java/**/*.java"],
4 path: "java",
5 visibility: ["//visibility:private"],
6}
7
8filegroup {
9 name: "services-sources",
10 srcs: [
11 ":services.core-sources",
12 ":services.accessibility-sources",
13 ":services.appprediction-sources",
14 ":services.appwidget-sources",
15 ":services.autofill-sources",
16 ":services.backup-sources",
17 ":services.companion-sources",
18 ":services.contentcapture-sources",
19 ":services.contentsuggestions-sources",
20 ":services.coverage-sources",
21 ":services.devicepolicy-sources",
22 ":services.midi-sources",
23 ":services.net-sources",
24 ":services.print-sources",
25 ":services.restrictions-sources",
26 ":services.startop.iorap-sources",
27 ":services.systemcaptions-sources",
28 ":services.usage-sources",
29 ":services.usb-sources",
30 ":services.voiceinteraction-sources",
31 ],
32 visibility: ["//visibility:private"],
33}
34
Colin Crosseb652a42017-12-05 09:46:29 -080035// merge all required services into one jar
36// ============================================================
37java_library {
38 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070039 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080040
41 dex_preopt: {
42 app_image: true,
43 profile: "art-profile",
44 },
45
Jiyong Parke86e89a2019-11-17 13:11:19 +090046 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080047
48 // The convention is to name each service module 'services.$(module_name)'
49 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080050 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080051 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080052 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080053 "services.appwidget",
54 "services.autofill",
55 "services.backup",
56 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080057 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080058 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080059 "services.coverage",
60 "services.devicepolicy",
61 "services.midi",
62 "services.net",
63 "services.print",
64 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080065 "services.startop",
Robert Berry835123d2019-03-18 16:33:42 -040066 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080067 "services.usage",
68 "services.usb",
69 "services.voiceinteraction",
70 "android.hidl.base-V1.0-java",
71 ],
72
73 libs: [
74 "android.hidl.manager-V1.0-java",
Anton Hanssoncec92662020-03-07 12:36:42 +000075 "framework-tethering-stubs-module_libs_api",
Colin Crosseb652a42017-12-05 09:46:29 -080076 ],
77
78 // Uncomment to enable output of certain warnings (deprecated, unchecked)
79 //javacflags: ["-Xlint"],
80
81}
82
Colin Cross3a7d8992017-12-05 17:33:58 -080083// native library
84// =============================================================
85
86cc_library_shared {
87 name: "libandroid_servers",
88 defaults: ["libservices.core-libs"],
89 whole_static_libs: ["libservices.core"],
90}
atrost86895aa2019-08-19 16:51:15 +010091
92platform_compat_config {
Artur Satayevdb233062020-03-25 15:36:55 +000093 name: "services-platform-compat-config",
94 src: ":services",
atrost86895aa2019-08-19 16:51:15 +010095}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +000096
97filegroup {
98 name: "art-profile",
99 srcs: ["art-profile"],
100}
Jiyong Park759a269a2019-11-17 15:17:53 +0900101
102// API stub
103// =============================================================
104
105droidstubs {
106 name: "services-stubs.sources",
107 srcs: [":services-sources"],
108 installable: false,
Makoto Onuki3d8cabd42020-02-03 10:32:52 -0800109 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Park759a269a2019-11-17 15:17:53 +0900110 " --hide-annotation android.annotation.Hide" +
Anton Hanssonac119a32020-02-19 18:29:12 +0000111 " --hide InternalClasses" + // com.android.* classes are okay in this interface
112 // TODO: remove the --hide options below
Jiyong Park759a269a2019-11-17 15:17:53 +0900113 " --hide-package com.google.android.startop.iorap" +
114 " --hide ReferencesHidden" +
115 " --hide DeprecationMismatch" +
116 " --hide HiddenTypedefConstant",
Jiyong Park759a269a2019-11-17 15:17:53 +0900117 visibility: ["//visibility:private"],
Anton Hanssonf68ef062020-03-27 15:09:26 +0000118 filter_packages: ["com.android."],
Jiyong Park1a3b9b92019-12-20 16:29:45 +0900119 check_api: {
120 current: {
121 api_file: "api/current.txt",
122 removed_api_file: "api/removed.txt",
123 },
Anton Hansson0decfb12020-02-19 11:35:09 +0000124 last_released: {
125 api_file: ":last-released-system-server-api",
126 removed_api_file: "api/removed.txt",
127 baseline_file: ":system-server-api-incompatibilities-with-last-released"
128 },
129 api_lint: {
130 enabled: true,
131 new_since: ":last-released-system-server-api",
132 baseline_file: "api/lint-baseline.txt",
133 },
Jiyong Park1a3b9b92019-12-20 16:29:45 +0900134 },
Anton Hanssonba367d32020-03-23 18:08:55 +0000135 dist: {
136 targets: ["sdk", "win_sdk"],
137 dir: "apistubs/android/system-server/api",
138 dest: "android.txt",
139 },
Jiyong Park759a269a2019-11-17 15:17:53 +0900140}
141
142java_library {
Anton Hanssonbde7d4f2020-03-19 15:23:32 +0000143 name: "android_system_server_stubs_current",
Jiyong Park759a269a2019-11-17 15:17:53 +0900144 srcs: [":services-stubs.sources"],
145 installable: false,
Anton Hanssonbde7d4f2020-03-19 15:23:32 +0000146 static_libs: ["android_module_lib_stubs_current"],
Jiyong Park759a269a2019-11-17 15:17:53 +0900147}