From e40b4eaeb0d336d4904ac7d6c40e0093660943d7 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 2 Oct 2018 22:25:58 -0700 Subject: 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 --- cc/object.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cc/object.go') diff --git a/cc/object.go b/cc/object.go index 7c134ac3..25771951 100644 --- a/cc/object.go +++ b/cc/object.go @@ -25,7 +25,7 @@ import ( // func init() { - android.RegisterModuleType("cc_object", objectFactory) + android.RegisterModuleType("cc_object", ObjectFactory) } type objectLinker struct { @@ -33,7 +33,7 @@ type objectLinker struct { Properties ObjectLinkerProperties } -func objectFactory() android.Module { +func ObjectFactory() android.Module { module := newBaseModule(android.HostAndDeviceSupported, android.MultilibBoth) module.linker = &objectLinker{ baseLinker: NewBaseLinker(nil), -- cgit v1.2.3