blob: 416f448a965f6b20f46b2175f38f6676c7811934 [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 {
Jiyong Park5ba39df2020-01-19 19:08:37 +09009 name: "services-all-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090010 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",
Hai Zhang76f0def2020-01-16 01:42:58 -080032 ":service-permission-sources",
Muhammad Qureshi8ea733e2020-02-07 09:30:28 -080033 ":service-statsd-sources",
Jiyong Parkbae2e902019-11-17 13:11:19 +090034 ],
35 visibility: ["//visibility:private"],
36}
37
Colin Crosseb652a42017-12-05 09:46:29 -080038// merge all required services into one jar
39// ============================================================
40java_library {
41 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070042 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080043
44 dex_preopt: {
45 app_image: true,
46 profile: "art-profile",
47 },
48
Jiyong Parkbae2e902019-11-17 13:11:19 +090049 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080050
51 // The convention is to name each service module 'services.$(module_name)'
52 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080053 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080054 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080055 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080056 "services.appwidget",
57 "services.autofill",
58 "services.backup",
59 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080060 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080061 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080062 "services.coverage",
63 "services.devicepolicy",
64 "services.midi",
65 "services.net",
Danning Chen20b32ed2019-12-18 16:52:03 -080066 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080067 "services.print",
68 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080069 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040070 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080071 "services.usage",
72 "services.usb",
73 "services.voiceinteraction",
74 "android.hidl.base-V1.0-java",
75 ],
76
77 libs: [
78 "android.hidl.manager-V1.0-java",
markchien2c153702020-02-06 19:23:26 +080079 "framework-tethering-stubs",
Colin Crosseb652a42017-12-05 09:46:29 -080080 ],
81
atrost86895aa2019-08-19 16:51:15 +010082 plugins: [
83 "compat-changeid-annotation-processor",
84 ],
85
Colin Crosseb652a42017-12-05 09:46:29 -080086 // Uncomment to enable output of certain warnings (deprecated, unchecked)
87 //javacflags: ["-Xlint"],
88
89}
90
Colin Cross3a7d8992017-12-05 17:33:58 -080091// native library
92// =============================================================
93
94cc_library_shared {
95 name: "libandroid_servers",
96 defaults: ["libservices.core-libs"],
97 whole_static_libs: ["libservices.core"],
98}
atrost86895aa2019-08-19 16:51:15 +010099
100platform_compat_config {
101 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100102 src: ":services",
103}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000104
105filegroup {
106 name: "art-profile",
107 srcs: ["art-profile"],
108}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900109
110// API stub
111// =============================================================
112
113droidstubs {
114 name: "services-stubs.sources",
Jiyong Park5ba39df2020-01-19 19:08:37 +0900115 srcs: [":services-all-sources"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900116 installable: false,
117 // TODO: remove the --hide options below
Makoto Onukiaf97aef2020-02-03 10:32:52 -0800118 args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" +
Jiyong Parkabc72e42019-11-17 15:17:53 +0900119 " --hide-annotation android.annotation.Hide" +
120 " --hide-package com.google.android.startop.iorap" +
121 " --hide ReferencesHidden" +
122 " --hide DeprecationMismatch" +
123 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900124 visibility: ["//visibility:private"],
Jiyong Park13c923d2019-12-20 16:29:45 +0900125 check_api: {
126 current: {
127 api_file: "api/current.txt",
128 removed_api_file: "api/removed.txt",
129 },
130 },
Jiyong Parkabc72e42019-11-17 15:17:53 +0900131}
132
133java_library {
134 name: "services-stubs",
135 srcs: [":services-stubs.sources"],
136 installable: false,
137}