blob: 914ea2859fb1033cafafd43c161fac911e830f37 [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 {
Hai Zhang76f0def2020-01-16 01:42:58 -08009 name: "services-stub-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",
Jiyong Parkbae2e902019-11-17 13:11:19 +090033 ],
34 visibility: ["//visibility:private"],
35}
36
Colin Crosseb652a42017-12-05 09:46:29 -080037// merge all required services into one jar
38// ============================================================
39java_library {
40 name: "services",
Colin Crossa12c0f52018-06-27 11:00:11 -070041 installable: true,
Colin Crosseb652a42017-12-05 09:46:29 -080042
43 dex_preopt: {
44 app_image: true,
45 profile: "art-profile",
46 },
47
Jiyong Parkbae2e902019-11-17 13:11:19 +090048 srcs: [":services-main-sources"],
Colin Crosseb652a42017-12-05 09:46:29 -080049
50 // The convention is to name each service module 'services.$(module_name)'
51 static_libs: [
Colin Cross4c0b06b2017-12-12 19:43:04 -080052 "services.core",
Colin Crosseb652a42017-12-05 09:46:29 -080053 "services.accessibility",
Sunny Goyal54e91342018-11-14 11:59:02 -080054 "services.appprediction",
Colin Crosseb652a42017-12-05 09:46:29 -080055 "services.appwidget",
56 "services.autofill",
57 "services.backup",
58 "services.companion",
Felipe Leme749b8892018-12-03 16:30:30 -080059 "services.contentcapture",
Winson Chung3fb0f252019-01-08 17:41:55 -080060 "services.contentsuggestions",
Colin Crosseb652a42017-12-05 09:46:29 -080061 "services.coverage",
62 "services.devicepolicy",
63 "services.midi",
64 "services.net",
Danning Chen20b32ed2019-12-18 16:52:03 -080065 "services.people",
Colin Crosseb652a42017-12-05 09:46:29 -080066 "services.print",
67 "services.restrictions",
Igor Murashkin4de1e162018-11-26 10:33:17 -080068 "services.startop",
Robert Berrye14120e2019-03-18 16:33:42 -040069 "services.systemcaptions",
Colin Crosseb652a42017-12-05 09:46:29 -080070 "services.usage",
71 "services.usb",
72 "services.voiceinteraction",
73 "android.hidl.base-V1.0-java",
74 ],
75
76 libs: [
77 "android.hidl.manager-V1.0-java",
markchienae8aa642019-12-16 20:15:20 +080078 "framework-tethering"
Colin Crosseb652a42017-12-05 09:46:29 -080079 ],
80
atrost86895aa2019-08-19 16:51:15 +010081 plugins: [
82 "compat-changeid-annotation-processor",
83 ],
84
Colin Crosseb652a42017-12-05 09:46:29 -080085 // Uncomment to enable output of certain warnings (deprecated, unchecked)
86 //javacflags: ["-Xlint"],
87
88}
89
Colin Cross3a7d8992017-12-05 17:33:58 -080090// native library
91// =============================================================
92
93cc_library_shared {
94 name: "libandroid_servers",
95 defaults: ["libservices.core-libs"],
96 whole_static_libs: ["libservices.core"],
97}
atrost86895aa2019-08-19 16:51:15 +010098
99platform_compat_config {
100 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100101 src: ":services",
102}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +0000103
104filegroup {
105 name: "art-profile",
106 srcs: ["art-profile"],
107}
Jiyong Parkabc72e42019-11-17 15:17:53 +0900108
109// API stub
110// =============================================================
111
112droidstubs {
113 name: "services-stubs.sources",
Hai Zhang76f0def2020-01-16 01:42:58 -0800114 srcs: [":services-stub-sources"],
Jiyong Parkabc72e42019-11-17 15:17:53 +0900115 installable: false,
116 // TODO: remove the --hide options below
Jiyong Park3160c602020-01-08 10:08:03 +0900117 args: " --show-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 +0900118 " --hide-annotation android.annotation.Hide" +
119 " --hide-package com.google.android.startop.iorap" +
120 " --hide ReferencesHidden" +
121 " --hide DeprecationMismatch" +
122 " --hide HiddenTypedefConstant",
Jiyong Parkabc72e42019-11-17 15:17:53 +0900123 visibility: ["//visibility:private"],
Jiyong Park13c923d2019-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 Parkabc72e42019-11-17 15:17:53 +0900130}
131
132java_library {
133 name: "services-stubs",
134 srcs: [":services-stubs.sources"],
135 installable: false,
136}