Jiyong Park | e86e89a | 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", |
| 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", |
| 31 | ], |
| 32 | visibility: ["//visibility:private"], |
| 33 | } |
| 34 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 35 | // merge all required services into one jar |
| 36 | // ============================================================ |
| 37 | java_library { |
| 38 | name: "services", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 39 | installable: true, |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 40 | |
| 41 | dex_preopt: { |
| 42 | app_image: true, |
| 43 | profile: "art-profile", |
| 44 | }, |
| 45 | |
Jiyong Park | e86e89a | 2019-11-17 13:11:19 +0900 | [diff] [blame] | 46 | srcs: [":services-main-sources"], |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 47 | |
| 48 | // The convention is to name each service module 'services.$(module_name)' |
| 49 | static_libs: [ |
Colin Cross | 4c0b06b | 2017-12-12 19:43:04 -0800 | [diff] [blame] | 50 | "services.core", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 51 | "services.accessibility", |
Sunny Goyal | 54e9134 | 2018-11-14 11:59:02 -0800 | [diff] [blame] | 52 | "services.appprediction", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 53 | "services.appwidget", |
| 54 | "services.autofill", |
| 55 | "services.backup", |
| 56 | "services.companion", |
Felipe Leme | 749b889 | 2018-12-03 16:30:30 -0800 | [diff] [blame] | 57 | "services.contentcapture", |
Winson Chung | 3fb0f25 | 2019-01-08 17:41:55 -0800 | [diff] [blame] | 58 | "services.contentsuggestions", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 59 | "services.coverage", |
| 60 | "services.devicepolicy", |
| 61 | "services.midi", |
| 62 | "services.net", |
| 63 | "services.print", |
| 64 | "services.restrictions", |
Igor Murashkin | 4de1e16 | 2018-11-26 10:33:17 -0800 | [diff] [blame] | 65 | "services.startop", |
Robert Berry | 835123d | 2019-03-18 16:33:42 -0400 | [diff] [blame] | 66 | "services.systemcaptions", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 67 | "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", |
Anton Hansson | cec9266 | 2020-03-07 12:36:42 +0000 | [diff] [blame] | 75 | "framework-tethering-stubs-module_libs_api", |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 76 | ], |
| 77 | |
| 78 | // Uncomment to enable output of certain warnings (deprecated, unchecked) |
| 79 | //javacflags: ["-Xlint"], |
| 80 | |
| 81 | } |
| 82 | |
Colin Cross | 3a7d899 | 2017-12-05 17:33:58 -0800 | [diff] [blame] | 83 | // native library |
| 84 | // ============================================================= |
| 85 | |
| 86 | cc_library_shared { |
| 87 | name: "libandroid_servers", |
| 88 | defaults: ["libservices.core-libs"], |
| 89 | whole_static_libs: ["libservices.core"], |
| 90 | } |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 91 | |
| 92 | platform_compat_config { |
Artur Satayev | db23306 | 2020-03-25 15:36:55 +0000 | [diff] [blame] | 93 | name: "services-platform-compat-config", |
| 94 | src: ":services", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 95 | } |
Ulya Trafimovich | 0d1b063d6 | 2019-12-03 11:59:51 +0000 | [diff] [blame] | 96 | |
| 97 | filegroup { |
| 98 | name: "art-profile", |
| 99 | srcs: ["art-profile"], |
| 100 | } |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 101 | |
| 102 | // API stub |
| 103 | // ============================================================= |
| 104 | |
| 105 | droidstubs { |
| 106 | name: "services-stubs.sources", |
| 107 | srcs: [":services-sources"], |
| 108 | installable: false, |
Makoto Onuki | 3d8cabd4 | 2020-02-03 10:32:52 -0800 | [diff] [blame] | 109 | args: " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\)" + |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 110 | " --hide-annotation android.annotation.Hide" + |
Anton Hansson | ac119a3 | 2020-02-19 18:29:12 +0000 | [diff] [blame] | 111 | " --hide InternalClasses" + // com.android.* classes are okay in this interface |
| 112 | // TODO: remove the --hide options below |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 113 | " --hide-package com.google.android.startop.iorap" + |
| 114 | " --hide ReferencesHidden" + |
| 115 | " --hide DeprecationMismatch" + |
| 116 | " --hide HiddenTypedefConstant", |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 117 | visibility: ["//visibility:private"], |
Anton Hansson | f68ef06 | 2020-03-27 15:09:26 +0000 | [diff] [blame] | 118 | filter_packages: ["com.android."], |
Jiyong Park | 1a3b9b9 | 2019-12-20 16:29:45 +0900 | [diff] [blame] | 119 | check_api: { |
| 120 | current: { |
| 121 | api_file: "api/current.txt", |
| 122 | removed_api_file: "api/removed.txt", |
| 123 | }, |
Anton Hansson | 0decfb1 | 2020-02-19 11:35:09 +0000 | [diff] [blame] | 124 | last_released: { |
| 125 | api_file: ":last-released-system-server-api", |
| 126 | removed_api_file: "api/removed.txt", |
| 127 | baseline_file: ":system-server-api-incompatibilities-with-last-released" |
| 128 | }, |
| 129 | api_lint: { |
| 130 | enabled: true, |
| 131 | new_since: ":last-released-system-server-api", |
| 132 | baseline_file: "api/lint-baseline.txt", |
| 133 | }, |
Jiyong Park | 1a3b9b9 | 2019-12-20 16:29:45 +0900 | [diff] [blame] | 134 | }, |
Anton Hansson | ba367d3 | 2020-03-23 18:08:55 +0000 | [diff] [blame] | 135 | dist: { |
| 136 | targets: ["sdk", "win_sdk"], |
| 137 | dir: "apistubs/android/system-server/api", |
| 138 | dest: "android.txt", |
| 139 | }, |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | java_library { |
Anton Hansson | bde7d4f | 2020-03-19 15:23:32 +0000 | [diff] [blame] | 143 | name: "android_system_server_stubs_current", |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 144 | srcs: [":services-stubs.sources"], |
| 145 | installable: false, |
Anton Hansson | bde7d4f | 2020-03-19 15:23:32 +0000 | [diff] [blame] | 146 | static_libs: ["android_module_lib_stubs_current"], |
Jiyong Park | 759a269a | 2019-11-17 15:17:53 +0900 | [diff] [blame] | 147 | } |