Most jars don't need to be installed on the device. Instead of using java_library and java_library_static to distinguish between them make java_library and java_library_static identical and use installable: true to identify the few jars that need to be dexed and installed on the device. Bug: 110885583 Test: m checkbuild Change-Id: I579da7c1a712ec4fb49e288e7f3ab369cb75baf4
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
// merge all required services into one jar
|
|
// ============================================================
|
|
java_library {
|
|
name: "services",
|
|
installable: true,
|
|
|
|
dex_preopt: {
|
|
app_image: true,
|
|
profile: "art-profile",
|
|
},
|
|
|
|
srcs: [
|
|
"java/**/*.java",
|
|
],
|
|
|
|
// The convention is to name each service module 'services.$(module_name)'
|
|
static_libs: [
|
|
"services.core",
|
|
"services.accessibility",
|
|
"services.appwidget",
|
|
"services.autofill",
|
|
"services.backup",
|
|
"services.companion",
|
|
"services.coverage",
|
|
"services.devicepolicy",
|
|
"services.midi",
|
|
"services.net",
|
|
"services.print",
|
|
"services.restrictions",
|
|
"services.usage",
|
|
"services.usb",
|
|
"services.voiceinteraction",
|
|
"android.hidl.base-V1.0-java",
|
|
],
|
|
|
|
libs: [
|
|
"android.hidl.manager-V1.0-java",
|
|
],
|
|
|
|
// Uncomment to enable output of certain warnings (deprecated, unchecked)
|
|
//javacflags: ["-Xlint"],
|
|
|
|
}
|
|
|
|
// native library
|
|
// =============================================================
|
|
|
|
cc_library_shared {
|
|
name: "libandroid_servers",
|
|
defaults: ["libservices.core-libs"],
|
|
whole_static_libs: ["libservices.core"],
|
|
}
|