aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorJiyong Park <jiyong@google.com>2020-03-09 16:24:11 +0900
committerJiyong Park <jiyong@google.com>2020-04-20 16:23:46 +0900
commit24eec07f47145c1fbc7696a899726a8b2e3cebe1 (patch)
tree83c4834a12d446f3676b34008affbcd27f35adb7 /cc
parent2416c2903efdfef56ee20f67a6fe4e098d426825 (diff)
downloadbuild_soong-24eec07f47145c1fbc7696a899726a8b2e3cebe1.tar.gz
build_soong-24eec07f47145c1fbc7696a899726a8b2e3cebe1.tar.bz2
build_soong-24eec07f47145c1fbc7696a899726a8b2e3cebe1.zip
Make ndk_prebuilt_* be available to any apex
The NDK prebuilts are implicitly used when building with sdk_version set. Make the module types be available to any apex so that we don't need to manually add apex_available property to the module definitions manually. Exempt-From-Owner-Approval: cherry-pick from AOSP Bug: 150999716 Test: m Merged-In: I0870afa4c74b4a06ab1273dff84615778561ecc9 (cherry picked from commit e01e228270dff753c7eaf06d3315dac8230b39d3) Change-Id: I0870afa4c74b4a06ab1273dff84615778561ecc9
Diffstat (limited to 'cc')
-rw-r--r--cc/ndk_prebuilt.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cc/ndk_prebuilt.go b/cc/ndk_prebuilt.go
index e849aeea..3a630d2c 100644
--- a/cc/ndk_prebuilt.go
+++ b/cc/ndk_prebuilt.go
@@ -90,6 +90,11 @@ func (c *ndkPrebuiltObjectLinker) link(ctx ModuleContext, flags Flags,
return ndkPrebuiltModuleToPath(ctx, flags.Toolchain, objectExtension, ctx.sdkVersion())
}
+func (*ndkPrebuiltObjectLinker) availableFor(what string) bool {
+ // ndk prebuilt objects are available to everywhere
+ return true
+}
+
type ndkPrebuiltStlLinker struct {
*libraryDecorator
}
@@ -103,6 +108,11 @@ func (*ndkPrebuiltStlLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
return deps
}
+func (*ndkPrebuiltStlLinker) availableFor(what string) bool {
+ // ndk prebuilt objects are available to everywhere
+ return true
+}
+
// ndk_prebuilt_shared_stl exports a precompiled ndk shared standard template
// library (stl) library for linking operation. The soong's module name format
// is ndk_<NAME>.so where the library is located under