Connect base.zip to mixed builds am: 303978dcd2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2288162 Change-Id: Iff9e5f7cf0570b0062daf286a3ac9f85f41a3218 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
50c74643c7
3 changed files with 14 additions and 2 deletions
|
@ -1903,10 +1903,10 @@ func (a *apexBundle) ProcessBazelQueryResponse(ctx android.ModuleContext) {
|
|||
apexType := a.properties.ApexType
|
||||
switch apexType {
|
||||
case imageApex:
|
||||
|
||||
// TODO(b/190817312): Generate the notice file from the apex rule.
|
||||
a.htmlGzNotice = android.PathForBazelOut(ctx, "NOTICE.html.gz")
|
||||
// TODO(b/239081457): Generate the bazel bundle module file from the apex rule.
|
||||
a.bundleModuleFile = android.PathForBazelOut(ctx, a.Name()+apexType.suffix()+"-base.zip")
|
||||
a.bundleModuleFile = android.PathForBazelOut(ctx, outputs.BundleFile)
|
||||
a.nativeApisUsedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, outputs.SymbolsUsedByApex))
|
||||
a.nativeApisBackedByModuleFile = android.ModuleOutPath(android.PathForBazelOut(ctx, outputs.BackingLibs))
|
||||
// TODO(b/239084755): Generate the java api using.xml file from Bazel.
|
||||
|
|
|
@ -9760,6 +9760,7 @@ apex {
|
|||
ContainerKeyInfo: []string{"container_cert", "container_private"},
|
||||
SymbolsUsedByApex: "foo_using.txt",
|
||||
JavaSymbolsUsedByApex: "foo_using.xml",
|
||||
BundleFile: "apex_bundle.zip",
|
||||
|
||||
// unused
|
||||
PackageName: "pkg_name",
|
||||
|
@ -9804,4 +9805,13 @@ apex {
|
|||
if w, g := "out/bazel/execroot/__main__/foo_using.xml", ab.javaApisUsedByModuleFile.String(); w != g {
|
||||
t.Errorf("Expected output file %q, got %q", w, g)
|
||||
}
|
||||
|
||||
mkData := android.AndroidMkDataForTest(t, result.TestContext, m)
|
||||
var builder strings.Builder
|
||||
mkData.Custom(&builder, "foo", "BAZEL_TARGET_", "", mkData)
|
||||
|
||||
data := builder.String()
|
||||
if w := "ALL_MODULES.$(my_register_name).BUNDLE := out/bazel/execroot/__main__/apex_bundle.zip"; !strings.Contains(data, w) {
|
||||
t.Errorf("Expected %q in androidmk data, but did not find %q", w, data)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -221,6 +221,7 @@ return json_encode({
|
|||
"symbols_used_by_apex": info.symbols_used_by_apex.path,
|
||||
"java_symbols_used_by_apex": info.java_symbols_used_by_apex.path,
|
||||
"backing_libs": info.backing_libs.path,
|
||||
"bundle_file": info.base_with_config_zip.path,
|
||||
})`
|
||||
}
|
||||
|
||||
|
@ -235,6 +236,7 @@ type ApexInfo struct {
|
|||
SymbolsUsedByApex string `json:"symbols_used_by_apex"`
|
||||
JavaSymbolsUsedByApex string `json:"java_symbols_used_by_apex"`
|
||||
BackingLibs string `json:"backing_libs"`
|
||||
BundleFile string `json:"bundle_file"`
|
||||
}
|
||||
|
||||
// ParseResult returns a value obtained by parsing the result of the request's Starlark function.
|
||||
|
|
Loading…
Reference in a new issue