Enable native bridge support by default for certain ndk modules

The ndk_library, ndk_prebuilt_object and ndk_prebuilt_static_stl
modules are natural targets to have native bridge support enabled,
since they build user facing object which have to be supported for
translated architectures.

Bug: http://b/77159578
Test: make
Change-Id: Ic556f4c1c41e5b3dc92f9c290b4482dee8faed33
This commit is contained in:
dimitry
2019-05-09 14:07:34 +02:00
parent ffff95bc4e
commit 03dc3f63f6
3 changed files with 7 additions and 0 deletions

View File

@@ -1299,6 +1299,10 @@ func (a *ModuleBase) MakeAsPlatform() {
a.commonProperties.Product_services_specific = boolPtr(false)
}
func (a *ModuleBase) EnableNativeBridgeSupportByDefault() {
a.commonProperties.Native_bridge_supported = boolPtr(true)
}
func (a *androidModuleContext) InstallInData() bool {
return a.module.InstallInData()
}