Create core-lambda-stubs from .txt files
APIs to compile lambda are part of art's toolchain api surface. Generating stubs from .txt files allows us to prune the remaining sdk dependencies on libcore/ that are not api files Test: m core-lambda-stubs.from-text (On top of change containing core.current.stubs.from-text and turning enabled: true) Change-Id: I0ab8459b9317cb055a434eb635ba06d38da5b92e
This commit is contained in:
@@ -34,7 +34,7 @@ java_library {
|
||||
],
|
||||
static_libs: [
|
||||
"core.current.stubs.from-text",
|
||||
"core-lambda-stubs-for-system-modules",
|
||||
"core-lambda-stubs.from-text",
|
||||
],
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
@@ -59,7 +59,7 @@ java_library {
|
||||
],
|
||||
static_libs: [
|
||||
"core.module_lib.stubs.from-text",
|
||||
"core-lambda-stubs-for-system-modules",
|
||||
"core-lambda-stubs.from-text",
|
||||
],
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
@@ -89,7 +89,7 @@ java_system_modules {
|
||||
visibility: core_platform_visibility,
|
||||
libs: [
|
||||
"legacy.core.platform.api.no.annotations.stubs.from-text",
|
||||
"core-lambda-stubs-for-system-modules",
|
||||
"core-lambda-stubs.from-text",
|
||||
],
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
@@ -118,7 +118,7 @@ java_system_modules {
|
||||
visibility: core_platform_visibility,
|
||||
libs: [
|
||||
"stable.core.platform.api.no.annotations.stubs.from-text",
|
||||
"core-lambda-stubs-for-system-modules",
|
||||
"core-lambda-stubs.from-text",
|
||||
],
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
@@ -140,3 +140,17 @@ java_library {
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
}
|
||||
|
||||
java_api_library {
|
||||
name: "core-lambda-stubs.from-text",
|
||||
api_surface: "toolchain",
|
||||
api_contributions: [
|
||||
"art.module.toolchain.api.api.contribution",
|
||||
],
|
||||
libs: [
|
||||
// LambdaMetaFactory depends on CallSite etc. which is part of the Core API surface
|
||||
"core.current.stubs.from-text",
|
||||
],
|
||||
// TODO: Enable after stub generation from .txt file is available
|
||||
enabled: false,
|
||||
}
|
||||
|
Reference in New Issue
Block a user