blob: 1e119363f5458b98e3f28cce956050f9204c4c02 [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",
Danning Chen20b32ed2019-12-18 16:52:03 -080064 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080065 "services.print",
66 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080067 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040068 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080069 "services.usage",
70 "services.usb",
71 "services.voiceinteraction",
72 "android.hidl.base-V1.0-java",
73 ],
74
75 libs: [
76 "android.hidl.manager-V1.0-java",
markchienae8aa642019-12-16 20:15:20 +080077 "framework-tethering"
Colin Crosseb652a42017-12-05 09:46:29 -080078 ],
79
atrost86895aa2019-08-19 16:51:15 +010080 plugins: [
81 "compat-changeid-annotation-processor",
82 ],
83
Colin Crosseb652a42017-12-05 09:46:29 -080084 // Uncomment to enable output of certain warnings (deprecated, unchecked)
85 //javacflags: ["-Xlint"],
86
87}
88
Colin Cross3a7d8992017-12-05 17:33:58 -080089// native library
90// =============================================================
91
92cc_library_shared {
93 name: "libandroid_servers",
94 defaults: ["libservices.core-libs"],
95 whole_static_libs: ["libservices.core"],
96}
atrost86895aa2019-08-19 16:51:15 +010097
98platform_compat_config {
99 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100100 src: ":services",
101}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000102
103filegroup {
104 name: "art-profile",
105 srcs: ["art-profile"],
106}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900107
108// API stub
109// =============================================================
110
111droidstubs {
112 name: "services-stubs.sources",
113 srcs: [":services-sources"],
114 installable: false,
115 // TODO: remove the --hide options below
Jiyong Park88d5e492019-12-13 14:53:14 +0900116 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 +0900117 " --hide-annotation android.annotation.Hide" +
118 " --hide-package com.google.android.startop.iorap" +
119 " --hide ReferencesHidden" +
120 " --hide DeprecationMismatch" +
121 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900122 visibility: ["//visibility:private"],
Jiyong Park13c923d2019-12-20 16:29:45 +0900123 check_api: {
124 current: {
125 api_file: "api/current.txt",
126 removed_api_file: "api/removed.txt",
127 },
128 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900129}
130
131java_library {
132 name: "services-stubs",
133 srcs: [":services-stubs.sources"],
134 installable: false,
135}