blob: 073fccc8d1c04576b449f4ad90e849b862d30525 [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",
markchien6d06f6d2019-12-16 20:15:20 +080075 "framework-tethering"
Colin Crosseb652a42017-12-05 09:46:29 -080076 ],
77
atrost86895aa2019-08-19 16:51:15 +010078 plugins: [
79 "compat-changeid-annotation-processor",
80 ],
81
Colin Crosseb652a42017-12-05 09:46:29 -080082 // Uncomment to enable output of certain warnings (deprecated, unchecked)
83 //javacflags: ["-Xlint"],
84
85}
86
Colin Cross3a7d8992017-12-05 17:33:58 -080087// native library
88// =============================================================
89
90cc_library_shared {
91 name: "libandroid_servers",
92 defaults: ["libservices.core-libs"],
93 whole_static_libs: ["libservices.core"],
94}
atrost86895aa2019-08-19 16:51:15 +010095
96platform_compat_config {
97 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +010098 src: ":services",
99}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000100
101filegroup {
102 name: "art-profile",
103 srcs: ["art-profile"],
104}
Jiyong Park759a269a2019-11-17 15:17:53 +0900105
106// API stub
107// =============================================================
108
109droidstubs {
110 name: "services-stubs.sources",
111 srcs: [":services-sources"],
112 installable: false,
113 // TODO: remove the --hide options below
Makoto Onuki3d8cabd42020-02-03 10:32:52 -0800114 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Park759a269a2019-11-17 15:17:53 +0900115 " --hide-annotation android.annotation.Hide" +
116 " --hide-package com.google.android.startop.iorap" +
117 " --hide ReferencesHidden" +
118 " --hide DeprecationMismatch" +
119 " --hide HiddenTypedefConstant",
120 libs: [
121 "framework-all",
122 ],
123 visibility: ["//visibility:private"],
Jiyong Park1a3b9b92019-12-20 16:29:45 +0900124 check_api: {
125 current: {
126 api_file: "api/current.txt",
127 removed_api_file: "api/removed.txt",
128 },
129 },
Jiyong Park759a269a2019-11-17 15:17:53 +0900130}
131
132java_library {
133 name: "services-stubs",
134 srcs: [":services-stubs.sources"],
135 installable: false,
136}