Loading android/prebuilt_build_tool.go +8 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ package android import "path/filepath" func init() { RegisterModuleType("prebuilt_build_tool", prebuiltBuildToolFactory) } Loading Loading @@ -58,13 +60,18 @@ func (t *prebuiltBuildTool) GenerateAndroidBuildActions(ctx ModuleContext) { installedPath := PathForModuleOut(ctx, t.ModuleBase.Name()) deps := PathsForModuleSrc(ctx, t.properties.Deps) var fromPath = sourcePath.String() if !filepath.IsAbs(fromPath) { fromPath = "$$PWD/" + fromPath } ctx.Build(pctx, BuildParams{ Rule: Symlink, Output: installedPath, Input: sourcePath, Implicits: deps, Args: map[string]string{ "fromPath": "$$PWD/" + sourcePath.String(), "fromPath": fromPath, }, }) Loading cc/prebuilt.go +7 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package cc import ( "android/soong/android" "path/filepath" ) func init() { Loading Loading @@ -360,13 +361,18 @@ func (p *prebuiltBinaryLinker) link(ctx ModuleContext, sharedLibPaths = append(sharedLibPaths, deps.SharedLibs...) sharedLibPaths = append(sharedLibPaths, deps.LateSharedLibs...) var fromPath = in.String() if !filepath.IsAbs(fromPath) { fromPath = "$$PWD/" + fromPath } ctx.Build(pctx, android.BuildParams{ Rule: android.Symlink, Output: outputFile, Input: in, Implicits: sharedLibPaths, Args: map[string]string{ "fromPath": "$$PWD/" + in.String(), "fromPath": fromPath, }, }) Loading Loading
android/prebuilt_build_tool.go +8 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ package android import "path/filepath" func init() { RegisterModuleType("prebuilt_build_tool", prebuiltBuildToolFactory) } Loading Loading @@ -58,13 +60,18 @@ func (t *prebuiltBuildTool) GenerateAndroidBuildActions(ctx ModuleContext) { installedPath := PathForModuleOut(ctx, t.ModuleBase.Name()) deps := PathsForModuleSrc(ctx, t.properties.Deps) var fromPath = sourcePath.String() if !filepath.IsAbs(fromPath) { fromPath = "$$PWD/" + fromPath } ctx.Build(pctx, BuildParams{ Rule: Symlink, Output: installedPath, Input: sourcePath, Implicits: deps, Args: map[string]string{ "fromPath": "$$PWD/" + sourcePath.String(), "fromPath": fromPath, }, }) Loading
cc/prebuilt.go +7 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package cc import ( "android/soong/android" "path/filepath" ) func init() { Loading Loading @@ -360,13 +361,18 @@ func (p *prebuiltBinaryLinker) link(ctx ModuleContext, sharedLibPaths = append(sharedLibPaths, deps.SharedLibs...) sharedLibPaths = append(sharedLibPaths, deps.LateSharedLibs...) var fromPath = in.String() if !filepath.IsAbs(fromPath) { fromPath = "$$PWD/" + fromPath } ctx.Build(pctx, android.BuildParams{ Rule: android.Symlink, Output: outputFile, Input: in, Implicits: sharedLibPaths, Args: map[string]string{ "fromPath": "$$PWD/" + in.String(), "fromPath": fromPath, }, }) Loading