Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 1 | filegroup { |
| 2 | name: "services-main-sources", |
| 3 | srcs: ["java/**/*.java"], |
| 4 | path: "java", |
| 5 | visibility: ["//visibility:private"], |
| 6 | } |
| 7 | |
| 8 | filegroup { |
| 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 Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 17 | ":backuplib-sources", |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 18 | ":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 Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 32 | ], |
| 33 | visibility: ["//visibility:private"], |
| 34 | } |
| 35 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 36 | // merge all required services into one jar |
| 37 | // ============================================================ |
| 38 | java_library { |
| 39 | name: "services", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 40 | installable: true, |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 41 | |
| 42 | dex_preopt: { |
| 43 | app_image: true, |
| 44 | profile: "art-profile", |
| 45 | }, |
| 46 | |
Jiyong Park | bae2e90 | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 47 | srcs: [":services-main-sources"], |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 48 | |
| 49 | // The convention is to name each service module 'services.$(module_name)' |
| 50 | static_libs: [ |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 51 | "services.core", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 52 | "services.accessibility", |
Sunny Goyal | 54e9134 | 2018-11-14 11:59:02 -0800 | [diff] [blame] | 53 | "services.appprediction", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 54 | "services.appwidget", |
| 55 | "services.autofill", |
| 56 | "services.backup", |
| 57 | "services.companion", |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 58 | "services.contentcapture", |
Winson Chung | 3fb0f25 | 2019-01-08 17:41:55 -0800 | [diff] [blame] | 59 | "services.contentsuggestions", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 60 | "services.coverage", |
| 61 | "services.devicepolicy", |
| 62 | "services.midi", |
| 63 | "services.net", |
Danning Chen | 20b32ed | 2019-12-18 16:52:03 -0800 | [diff] [blame] | 64 | "services.people", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 65 | "services.print", |
| 66 | "services.restrictions", |
Igor Murashkin | 4de1e16 | 2018-11-26 10:33:17 -0800 | [diff] [blame] | 67 | "services.startop", |
Robert Berry | e14120e | 2019-03-18 16:33:42 -0400 | [diff] [blame] | 68 | "services.systemcaptions", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 69 | "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", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 77 | "framework-tethering" |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 78 | ], |
| 79 | |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 80 | plugins: [ |
| 81 | "compat-changeid-annotation-processor", |
| 82 | ], |
| 83 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 84 | // Uncomment to enable output of certain warnings (deprecated, unchecked) |
| 85 | //javacflags: ["-Xlint"], |
| 86 | |
| 87 | } |
| 88 | |
Colin Cross | 3a7d899 | 2017-12-05 17:33:58 -0800 | [diff] [blame] | 89 | // native library |
| 90 | // ============================================================= |
| 91 | |
| 92 | cc_library_shared { |
| 93 | name: "libandroid_servers", |
| 94 | defaults: ["libservices.core-libs"], |
| 95 | whole_static_libs: ["libservices.core"], |
| 96 | } |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 97 | |
| 98 | platform_compat_config { |
| 99 | name: "services-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 100 | src: ":services", |
| 101 | } |
Ulya Trafimovich | 0d1b063d6 | 2019-12-03 11:59:51 +0000 | [diff] [blame] | 102 | |
| 103 | filegroup { |
| 104 | name: "art-profile", |
| 105 | srcs: ["art-profile"], |
| 106 | } |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 107 | |
| 108 | // API stub |
| 109 | // ============================================================= |
| 110 | |
| 111 | droidstubs { |
| 112 | name: "services-stubs.sources", |
| 113 | srcs: [":services-sources"], |
| 114 | installable: false, |
| 115 | // TODO: remove the --hide options below |
Jiyong Park | 3160c60 | 2020-01-08 10:08:03 +0900 | [diff] [blame] | 116 | args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES,process=android.annotation.SystemApi.Process.SYSTEM_SERVER\\)" + |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 117 | " --hide-annotation android.annotation.Hide" + |
| 118 | " --hide-package com.google.android.startop.iorap" + |
| 119 | " --hide ReferencesHidden" + |
| 120 | " --hide DeprecationMismatch" + |
| 121 | " --hide HiddenTypedefConstant", |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 122 | visibility: ["//visibility:private"], |
Jiyong Park | 13c923d | 2019-12-20 16:29:45 +0900 | [diff] [blame] | 123 | check_api: { |
| 124 | current: { |
| 125 | api_file: "api/current.txt", |
| 126 | removed_api_file: "api/removed.txt", |
| 127 | }, |
| 128 | }, |
Jiyong Park | abc72e4 | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | java_library { |
| 132 | name: "services-stubs", |
| 133 | srcs: [":services-stubs.sources"], |
| 134 | installable: false, |
| 135 | } |