blob: 3b566078bd51a3d5a5041a775e6219b895ea92dc [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",
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",
Jiyong Parkbae2e902019-11-17 13:11:19 +090031 ],
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 Parkbae2e902019-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 Berrye14120e2019-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",
75 ],
76
atrost86895aa2019-08-19 16:51:15 +010077 plugins: [
78 "compat-changeid-annotation-processor",
79 ],
80
Colin Crosseb652a42017-12-05 09:46:29 -080081 // Uncomment to enable output of certain warnings (deprecated, unchecked)
82 //javacflags: ["-Xlint"],
83
84}
85
Colin Cross3a7d8992017-12-05 17:33:58 -080086// native library
87// =============================================================
88
89cc_library_shared {
90 name: "libandroid_servers",
91 defaults: ["libservices.core-libs"],
92 whole_static_libs: ["libservices.core"],
93}
atrost86895aa2019-08-19 16:51:15 +010094
95platform_compat_config {
96 name: "services-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +010097 src: ":services",
98}
Ulya Trafimovich0d1b063d62019-12-03 11:59:51 +000099
100filegroup {
101 name: "art-profile",
102 srcs: ["art-profile"],
103}