Export cc module types and mutators needed for JNI testing

JNI testing will need to create basic native shared library
modules, export the minimum mutators and module types for
the required dependencies of a native shared library.

Bug: 80095087
Test: cc_test.go
Change-Id: Ibe7bc88b69cb0851291cb09a4c0c6cdb421b8651
This commit is contained in:
Colin Cross
2018-10-02 22:25:58 -07:00
parent ee0bc3b290
commit e40b4eaeb0
6 changed files with 13 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ import (
//
func init() {
android.RegisterModuleType("toolchain_library", toolchainLibraryFactory)
android.RegisterModuleType("toolchain_library", ToolchainLibraryFactory)
}
type toolchainLibraryProperties struct {
@@ -48,7 +48,7 @@ func (library *toolchainLibraryDecorator) linkerProps() []interface{} {
return append(props, &library.Properties)
}
func toolchainLibraryFactory() android.Module {
func ToolchainLibraryFactory() android.Module {
module, library := NewLibrary(android.HostAndDeviceSupported)
library.BuildOnlyStatic()
toolchainLibrary := &toolchainLibraryDecorator{