blob: ede4c3e7a6beb275d826b6daeaf39a8b9dd71ef7 [file] [log] [blame]
Jiyong Parkbae2e902019-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",
Jiyong Parkabc72e42019-11-17 15:17:53 +090017 ":backuplib-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090018 ":services.companion-sources",
19 ":services.contentcapture-sources",
20 ":services.contentsuggestions-sources",
21 ":services.coverage-sources",
22 ":services.devicepolicy-sources",
23 ":services.midi-sources",
24 ":services.net-sources",
25 ":services.print-sources",
26 ":services.restrictions-sources",
27 ":services.startop.iorap-sources",
28 ":services.systemcaptions-sources",
29 ":services.usage-sources",
30 ":services.usb-sources",
31 ":services.voiceinteraction-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090032 ],
33 visibility: ["//visibility:private"],
34}
35
Colin Crosseb652a42017-12-05 09:46:29 -080036// merge all required services into one jar
37// ============================================================
38java_library {
39 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070040 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080041
42 dex_preopt: {
43 app_image: true,
44 profile: "art-profile",
45 },
46
Jiyong Parkbae2e902019-11-17 13:11:19 +090047 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080048
49 // The convention is to name each service module 'services.$(module_name)'
50 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080051 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080052 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080053 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080054 "services.appwidget",
55 "services.autofill",
56 "services.backup",
57 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080058 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080059 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080060 "services.coverage",
61 "services.devicepolicy",
62 "services.midi",
63 "services.net",
64 "services.print",
65 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080066 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040067 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080068 "services.usage",
69 "services.usb",
70 "services.voiceinteraction",
71 "android.hidl.base-V1.0-java",
72 ],
73
74 libs: [
75 "android.hidl.manager-V1.0-java",
markchienae8aa642019-12-16 20:15:20 +080076 "framework-tethering"
Colin Crosseb652a42017-12-05 09:46:29 -080077 ],
78
atrost86895aa2019-08-19 16:51:15 +010079 plugins: [
80 "compat-changeid-annotation-processor",
81 ],
82
Colin Crosseb652a42017-12-05 09:46:29 -080083 // Uncomment to enable output of certain warnings (deprecated, unchecked)
84 //javacflags: ["-Xlint"],
85
86}
87
Colin Cross3a7d8992017-12-05 17:33:58 -080088// native library
89// =============================================================
90
91cc_library_shared {
92 name: "libandroid_servers",
93 defaults: ["libservices.core-libs"],
94 whole_static_libs: ["libservices.core"],
95}
atrost86895aa2019-08-19 16:51:15 +010096
97platform_compat_config {
98 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +010099 src: ":services",
100}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000101
102filegroup {
103 name: "art-profile",
104 srcs: ["art-profile"],
105}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900106
107// API stub
108// =============================================================
109
110droidstubs {
111 name: "services-stubs.sources",
112 srcs: [":services-sources"],
113 installable: false,
114 // TODO: remove the --hide options below
Jiyong Park88d5e492019-12-13 14:53:14 +0900115 args: " --show-single-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900116 " --hide-annotation android.annotation.Hide" +
117 " --hide-package com.google.android.startop.iorap" +
118 " --hide ReferencesHidden" +
119 " --hide DeprecationMismatch" +
120 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900121 visibility: ["//visibility:private"],
Jiyong Park13c923d2019-12-20 16:29:45 +0900122 check_api: {
123 current: {
124 api_file: "api/current.txt",
125 removed_api_file: "api/removed.txt",
126 },
127 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900128}
129
130java_library {
131 name: "services-stubs",
132 srcs: [":services-stubs.sources"],
133 installable: false,
134}