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", |
| 75 | ], |
| 76 | |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 77 | plugins: [ |
| 78 | "compat-changeid-annotation-processor", |
| 79 | ], |
| 80 | |
Colin Cross | eb652a4 | 2017-12-05 09:46:29 -0800 | [diff] [blame] | 81 | // Uncomment to enable output of certain warnings (deprecated, unchecked) |
| 82 | //javacflags: ["-Xlint"], |
| 83 | |
| 84 | } |
| 85 | |
Colin Cross | 3a7d899 | 2017-12-05 17:33:58 -0800 | [diff] [blame] | 86 | // native library |
| 87 | // ============================================================= |
| 88 | |
| 89 | cc_library_shared { |
| 90 | name: "libandroid_servers", |
| 91 | defaults: ["libservices.core-libs"], |
| 92 | whole_static_libs: ["libservices.core"], |
| 93 | } |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 94 | |
| 95 | platform_compat_config { |
| 96 | name: "services-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 97 | src: ":services", |
| 98 | } |
Ulya Trafimovich | 0d1b063d6 | 2019-12-03 11:59:51 +0000 | [diff] [blame] | 99 | |
| 100 | filegroup { |
| 101 | name: "art-profile", |
| 102 | srcs: ["art-profile"], |
| 103 | } |