Merge "Expose some factories for aidl_test.go"

This commit is contained in:
Treehugger Robot
2019-12-13 05:51:38 +00:00
committed by Gerrit Code Review
5 changed files with 9 additions and 8 deletions

View File

@@ -228,7 +228,7 @@ func generateStubApiVariants(mctx android.BottomUpMutatorContext, c *stubDecorat
}
}
func ndkApiMutator(mctx android.BottomUpMutatorContext) {
func NdkApiMutator(mctx android.BottomUpMutatorContext) {
if m, ok := mctx.Module().(*Module); ok {
if m.Enabled() {
if compiler, ok := m.compiler.(*stubDecorator); ok {
@@ -389,7 +389,7 @@ func newStubLibrary() *Module {
// ndk_library creates a stub library that exposes dummy implementation
// of functions and variables for use at build time only.
func ndkLibraryFactory() android.Module {
func NdkLibraryFactory() android.Module {
module := newStubLibrary()
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibBoth)
module.ModuleBase.EnableNativeBridgeSupportByDefault()