diff options
author | Anton Hansson <hansson@google.com> | 2021-04-12 10:38:29 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-04-12 10:38:29 +0000 |
commit | b63991e700900b8c5af8db182a7af8705f946d20 (patch) | |
tree | 2d28acb7248cca97f8fcd71bc822e9194c955054 | |
parent | 5ebb9672f2226441a2734bf87372612fe51a113e (diff) | |
parent | f2118995b2e229cbae902d412ffa5da5b644dc18 (diff) |
Merge "Compile android-non-updatable separately" am: e4d95a9e15 am: c26f163ad3 am: f2118995b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1671726
Change-Id: I7b36622e3355c1c8eb365813579958b8260c8c17
-rw-r--r-- | StubLibraries.bp | 66 |
1 files changed, 50 insertions, 16 deletions
diff --git a/StubLibraries.bp b/StubLibraries.bp index a83cb4d8db3d..5041b9e014a2 100644 --- a/StubLibraries.bp +++ b/StubLibraries.bp @@ -310,13 +310,9 @@ modules_system_stubs = [ ] java_defaults { - name: "android_defaults_stubs_current", - libs: [ "stub-annotations" ], - static_libs: [ - // License notices from art module - "art-notices-for-framework-stubs-jar", - "framework-res-package-jar", // Export package of framework-res - ], + name: "android-non-updatable_defaults_stubs_current", + libs: ["stub-annotations"], + static_libs: ["framework-res-package-jar"], // Export package of framework-res errorprone: { javacflags: [ "-XepDisableAllChecks", @@ -328,6 +324,47 @@ java_defaults { compile_dex: true, } +java_library_static { + name: "android-non-updatable.stubs", + defaults: ["android-non-updatable_defaults_stubs_current"], + srcs: [":api-stubs-docs-non-updatable"], + libs: modules_public_stubs, +} + +java_library_static { + name: "android-non-updatable.stubs.system", + defaults: ["android-non-updatable_defaults_stubs_current"], + srcs: [ ":system-api-stubs-docs-non-updatable" ], + libs: modules_system_stubs, +} + +java_library_static { + name: "android-non-updatable.stubs.module_lib", + defaults: ["android-non-updatable_defaults_stubs_current"], + srcs: [":module-lib-api-stubs-docs-non-updatable"], + libs: [ + "sdk_system_current_android", + // NOTE: The below can be removed once the prebuilt stub contains IKE. + "sdk_system_current_android.net.ipsec.ike", + ], +} + +java_library_static { + name: "android-non-updatable.stubs.test", + defaults: ["android-non-updatable_defaults_stubs_current"], + srcs: [":test-api-stubs-docs-non-updatable"], + libs: modules_system_stubs, +} + +java_defaults { + name: "android_defaults_stubs_current", + static_libs: ["art-notices-for-framework-stubs-jar"], // License notices from art module + sdk_version: "none", + system_modules: "none", + java_version: "1.8", + compile_dex: true, +} + java_defaults { name: "android_stubs_dists_default", dist: { @@ -339,8 +376,8 @@ java_defaults { java_library_static { name: "android_stubs_current", - srcs: [ ":api-stubs-docs-non-updatable" ], static_libs: modules_public_stubs + [ + "android-non-updatable.stubs", "private-stub-annotations-jar", ], defaults: ["android_defaults_stubs_current"], @@ -348,8 +385,8 @@ java_library_static { java_library_static { name: "android_system_stubs_current", - srcs: [ ":system-api-stubs-docs-non-updatable" ], static_libs: modules_system_stubs + [ + "android-non-updatable.stubs.system", "private-stub-annotations-jar", ], defaults: [ @@ -371,10 +408,10 @@ java_library_static { java_library_static { name: "android_test_stubs_current", - srcs: [ ":test-api-stubs-docs-non-updatable" ], // Modules do not have test APIs, but we want to include their SystemApis, like we include // the SystemApi of framework-non-updatable-sources. static_libs: modules_system_stubs + [ + "android-non-updatable.stubs.test", "private-stub-annotations-jar", ], defaults: [ @@ -396,17 +433,14 @@ java_library_static { java_library_static { name: "android_module_lib_stubs_current", - srcs: [ ":module-lib-api-stubs-docs-non-updatable" ], defaults: [ "android_defaults_stubs_current", "android_stubs_dists_default", ], - libs: [ - "sdk_system_current_android", - // NOTE: The below can be removed once the prebuilt stub contains IKE. - "sdk_system_current_android.net.ipsec.ike", + static_libs: [ + "android-non-updatable.stubs.module_lib", + "art.module.public.api.stubs", ], - static_libs: ["art.module.public.api.stubs"], dist: { dir: "apistubs/android/module-lib", }, |