From 344d5439c145baddbe85297a5c435da28ee6fcff Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Fri, 23 Aug 2019 11:17:39 +0900 Subject: Add "apex_vndk" module type "apex_vndk" is a variant of "apex" module. apex_vndk { name: "com.android.vndk", .. } This rule is used to produce a VNDK APEX per vndk version. It supports automatic inclusion of vndk libs. If "vndk_version" property is set, the prebuilt vndk libs of the version will be included in the apex bundle. apex_vndk { name: "com.android.vndk.v29" vndk_version: "29", ... } Otherwise, platform's vndk version is used. This will replace /system/{lib}/vndk-{ver} and vndk-sp-{ver}. Bug: 134357236 Bug: 139772411 Test: m com.android.vndk Change-Id: Ib5c86e625839389670d13c683a7427198ef6852f --- android/module.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'android/module.go') diff --git a/android/module.go b/android/module.go index dda526f09..8076a99ff 100644 --- a/android/module.go +++ b/android/module.go @@ -1495,6 +1495,11 @@ func (m *ModuleBase) EnableNativeBridgeSupportByDefault() { m.commonProperties.Native_bridge_supported = boolPtr(true) } +// IsNativeBridgeSupported returns true if "native_bridge_supported" is explicitly set as "true" +func (m *ModuleBase) IsNativeBridgeSupported() bool { + return proptools.Bool(m.commonProperties.Native_bridge_supported) +} + func (m *moduleContext) InstallInData() bool { return m.module.InstallInData() } -- cgit v1.2.3-59-g8ed1b