summaryrefslogtreecommitdiff
path: root/python/installer.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-10-01 22:05:35 -0700
committer Colin Cross <ccross@android.com> 2019-10-03 10:07:53 -0700
commit70dda7e3da7eed09c1c7e0a3ab8b2ed3c9934035 (patch)
treebf5617ddbc63bf321eb134399893f8844ccf95ef /python/installer.go
parent90ba5f4e98a29c5ed3e6c1c9bb39118b9454e97b (diff)
Separate InstallPath from OutputPath
Create a new type InstallPath that is similar to OutputPath to differentiate intermediates output paths from installed output paths. RelPathString is a poorly defined, undocumented function that is primarily used to get an install path relative to out/soong to generate an equivalent install path for Make relative to $(OUT_DIR). Move it to InstallPath for now, and fix the one remaining user on OutputPath. Add a method to create an NDK install path so that ndk_sysroot.go doesn't have to do it manually with PathForOutput. Bug: 141877526 Test: m checkbuild Change-Id: I83c5a0bd1fd6c3dba8d3b6d20d039f64f353ddd5
Diffstat (limited to 'python/installer.go')
-rw-r--r--python/installer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/installer.go b/python/installer.go
index 62f36f4b5..b0a25b9b7 100644
--- a/python/installer.go
+++ b/python/installer.go
@@ -33,7 +33,7 @@ type pythonInstaller struct {
dir64 string
relative string
- path android.OutputPath
+ path android.InstallPath
androidMkSharedLibs []string
}
@@ -47,7 +47,7 @@ func NewPythonInstaller(dir, dir64 string) *pythonInstaller {
var _ installer = (*pythonInstaller)(nil)
-func (installer *pythonInstaller) installDir(ctx android.ModuleContext) android.OutputPath {
+func (installer *pythonInstaller) installDir(ctx android.ModuleContext) android.InstallPath {
dir := installer.dir
if ctx.Arch().ArchType.Multilib == "lib64" && installer.dir64 != "" {
dir = installer.dir64