Make outputApexFile relative to module dir in mixed builds
Otherwise when other modules use the apex as data (for example, in tests) they get the full path from the root of the workspace to the apex. Fixes: 276416485 Test: atest timezone_data_e2e_tests:com.android.tests.apex.TimezoneDataHostTest#testStageActivateUninstallApexPackage -- --abi x86_64 then tree out/host/linux-x86/testcases/timezone_data_e2e_tests Change-Id: Id740856794770df2edc55dfff5f6f938fc31d0c5
This commit is contained in:
parent
d61ea3580d
commit
b0bfa07919
1 changed files with 2 additions and 2 deletions
|
@ -1986,9 +1986,9 @@ func (a *apexBundle) ProcessBazelQueryResponse(ctx android.ModuleContext) {
|
|||
// Set the output file to .apex or .capex depending on the compression configuration.
|
||||
a.setCompression(ctx)
|
||||
if a.isCompressed {
|
||||
a.outputApexFile = android.PathForBazelOut(ctx, outputs.SignedCompressedOutput)
|
||||
a.outputApexFile = android.PathForBazelOutRelative(ctx, ctx.ModuleDir(), outputs.SignedCompressedOutput)
|
||||
} else {
|
||||
a.outputApexFile = android.PathForBazelOut(ctx, outputs.SignedOutput)
|
||||
a.outputApexFile = android.PathForBazelOutRelative(ctx, ctx.ModuleDir(), outputs.SignedOutput)
|
||||
}
|
||||
a.outputFile = a.outputApexFile
|
||||
|
||||
|
|
Loading…
Reference in a new issue