bp2build java_libraries depend on Android SDK
Soong adds an implicit dependency on the Android SDK for all java_libraries (and related modules). This feature becomes apparent after converting arch-variant srcs for android_apps, so we should suport this for now. Eventually, we will want to replace this forced dependency with a Bazel toolchain workaround. Test: build/bazel/ci/bp2build.sh Change-Id: Ic28e8c7690f69294b4bdcb9bb78a6f1f031fe97e
This commit is contained in:
@@ -51,6 +51,7 @@ android_app {
|
||||
"srcs": `["app.java"]`,
|
||||
"manifest": `"AndroidManifest.xml"`,
|
||||
"resource_files": `["res/res.png"]`,
|
||||
"deps": `["//prebuilts/sdk:public_current_android_sdk_java_import"]`,
|
||||
}),
|
||||
}})
|
||||
}
|
||||
@@ -86,7 +87,10 @@ android_app {
|
||||
"resb/res.png",
|
||||
]`,
|
||||
"custom_package": `"com.google"`,
|
||||
"deps": `[":static_lib_dep"]`,
|
||||
"deps": `[
|
||||
"//prebuilts/sdk:public_current_android_sdk_java_import",
|
||||
":static_lib_dep",
|
||||
]`,
|
||||
}),
|
||||
}})
|
||||
}
|
||||
|
Reference in New Issue
Block a user