aboutsummaryrefslogtreecommitdiffstats
path: root/cc/ndk_prebuilt.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-07-29 13:44:28 -0700
committerColin Cross <ccross@android.com>2016-08-01 13:37:01 -0700
commitb98c8b05954dd78d3c4bb87b0bceeb03ef4b362c (patch)
tree3b96a5ed94f7061ab1303dd0d9189468b66d488a /cc/ndk_prebuilt.go
parentf0cfc7b9e4d57a7c8a07186140f2cb333a6a9425 (diff)
downloadbuild_soong-b98c8b05954dd78d3c4bb87b0bceeb03ef4b362c.tar.gz
build_soong-b98c8b05954dd78d3c4bb87b0bceeb03ef4b362c.tar.bz2
build_soong-b98c8b05954dd78d3c4bb87b0bceeb03ef4b362c.zip
Move toolchain and global variables into separate package
Move all of the configuration into a cc/config package Change-Id: If56fc7242062ed1ce3cb297f78a1e0ef7537373c
Diffstat (limited to 'cc/ndk_prebuilt.go')
-rw-r--r--cc/ndk_prebuilt.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/ndk_prebuilt.go b/cc/ndk_prebuilt.go
index f66f5b5b..40cd2072 100644
--- a/cc/ndk_prebuilt.go
+++ b/cc/ndk_prebuilt.go
@@ -22,6 +22,7 @@ import (
"android/soong"
"android/soong/android"
+ "android/soong/cc/config"
)
func init() {
@@ -37,7 +38,7 @@ func init() {
// either (with the exception of the shared STLs, which are installed to the app's directory rather
// than to the system image).
-func getNdkLibDir(ctx android.ModuleContext, toolchain Toolchain, version string) android.SourcePath {
+func getNdkLibDir(ctx android.ModuleContext, toolchain config.Toolchain, version string) android.SourcePath {
suffix := ""
// Most 64-bit NDK prebuilts store libraries in "lib64", except for arm64 which is not a
// multilib toolchain and stores the libraries in "lib".
@@ -48,7 +49,7 @@ func getNdkLibDir(ctx android.ModuleContext, toolchain Toolchain, version string
version, toolchain.Name(), suffix))
}
-func ndkPrebuiltModuleToPath(ctx android.ModuleContext, toolchain Toolchain,
+func ndkPrebuiltModuleToPath(ctx android.ModuleContext, toolchain config.Toolchain,
ext string, version string) android.Path {
// NDK prebuilts are named like: ndk_NAME.EXT.SDK_VERSION.
@@ -144,7 +145,7 @@ func ndkPrebuiltStaticStlFactory() (blueprint.Module, []interface{}) {
return module.Init()
}
-func getNdkStlLibDir(ctx android.ModuleContext, toolchain Toolchain, stl string) android.SourcePath {
+func getNdkStlLibDir(ctx android.ModuleContext, toolchain config.Toolchain, stl string) android.SourcePath {
gccVersion := toolchain.GccVersion()
var libDir string
switch stl {