diff options
author | Jooyung Han <jooyung@google.com> | 2019-08-23 11:17:39 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2019-09-10 11:22:59 +0900 |
commit | 344d5439c145baddbe85297a5c435da28ee6fcff (patch) | |
tree | 9ef578c0a70e0ca86a90a2ebeefee601cae4dcb1 /cc/prebuilt.go | |
parent | 7390ea3d793763f254b49e77a36af7354dd3c1e8 (diff) | |
download | build_soong-344d5439c145baddbe85297a5c435da28ee6fcff.tar.gz build_soong-344d5439c145baddbe85297a5c435da28ee6fcff.tar.bz2 build_soong-344d5439c145baddbe85297a5c435da28ee6fcff.zip |
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
Diffstat (limited to 'cc/prebuilt.go')
-rw-r--r-- | cc/prebuilt.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go index dc6c43a7..34556919 100644 --- a/cc/prebuilt.go +++ b/cc/prebuilt.go @@ -19,8 +19,8 @@ import ( ) func init() { - android.RegisterModuleType("cc_prebuilt_library_shared", prebuiltSharedLibraryFactory) - android.RegisterModuleType("cc_prebuilt_library_static", prebuiltStaticLibraryFactory) + android.RegisterModuleType("cc_prebuilt_library_shared", PrebuiltSharedLibraryFactory) + android.RegisterModuleType("cc_prebuilt_library_static", PrebuiltStaticLibraryFactory) android.RegisterModuleType("cc_prebuilt_binary", prebuiltBinaryFactory) } @@ -131,7 +131,7 @@ func (p *prebuiltLibraryLinker) disablePrebuilt() { // cc_prebuilt_library_shared installs a precompiled shared library that are // listed in the srcs property in the device's directory. -func prebuiltSharedLibraryFactory() android.Module { +func PrebuiltSharedLibraryFactory() android.Module { module, _ := NewPrebuiltSharedLibrary(android.HostAndDeviceSupported) return module.Init() } @@ -158,7 +158,7 @@ func NewPrebuiltSharedLibrary(hod android.HostOrDeviceSupported) (*Module, *libr // cc_prebuilt_library_static installs a precompiled static library that are // listed in the srcs property in the device's directory. -func prebuiltStaticLibraryFactory() android.Module { +func PrebuiltStaticLibraryFactory() android.Module { module, _ := NewPrebuiltStaticLibrary(android.HostAndDeviceSupported) return module.Init() } |