Fix breakage: bad path join using '/' literal am: 2a5c090c31
am: cf96d25b3d
am: ec84245e25
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2052015 Change-Id: I5e8ea66626e0cde29a7c24f370b85548ae6b5d4a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
c64d309ce2
2 changed files with 2 additions and 2 deletions
|
@ -617,7 +617,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a NOTICE file, and embed it as an asset file in the APEX.
|
// Create a NOTICE file, and embed it as an asset file in the APEX.
|
||||||
a.htmlGzNotice = android.PathForModuleOut(ctx, "NOTICE/NOTICES.html.gz")
|
a.htmlGzNotice = android.PathForModuleOut(ctx, "NOTICE", "NOTICE.html.gz")
|
||||||
android.BuildNoticeHtmlOutputFromLicenseMetadata(ctx, a.htmlGzNotice)
|
android.BuildNoticeHtmlOutputFromLicenseMetadata(ctx, a.htmlGzNotice)
|
||||||
implicitInputs = append(implicitInputs, a.htmlGzNotice)
|
implicitInputs = append(implicitInputs, a.htmlGzNotice)
|
||||||
optFlags = append(optFlags, "--assets_dir "+filepath.Dir(a.htmlGzNotice.String()))
|
optFlags = append(optFlags, "--assets_dir "+filepath.Dir(a.htmlGzNotice.String()))
|
||||||
|
|
|
@ -589,7 +589,7 @@ func (a *AndroidApp) generateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
}
|
}
|
||||||
a.onDeviceDir = android.InstallPathToOnDevicePath(ctx, a.installDir)
|
a.onDeviceDir = android.InstallPathToOnDevicePath(ctx, a.installDir)
|
||||||
|
|
||||||
noticeFile := android.PathForModuleOut(ctx, "NOTICES.html.gz")
|
noticeFile := android.PathForModuleOut(ctx, "NOTICE", "NOTICE.html.gz")
|
||||||
android.BuildNoticeHtmlOutputFromLicenseMetadata(ctx, noticeFile)
|
android.BuildNoticeHtmlOutputFromLicenseMetadata(ctx, noticeFile)
|
||||||
if Bool(a.appProperties.Embed_notices) || ctx.Config().IsEnvTrue("ALWAYS_EMBED_NOTICES") {
|
if Bool(a.appProperties.Embed_notices) || ctx.Config().IsEnvTrue("ALWAYS_EMBED_NOTICES") {
|
||||||
a.aapt.noticeFile = android.OptionalPathForPath(noticeFile)
|
a.aapt.noticeFile = android.OptionalPathForPath(noticeFile)
|
||||||
|
|
Loading…
Reference in a new issue