aboutsummaryrefslogtreecommitdiffstats
path: root/cc/object.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-10-02 22:25:58 -0700
committerColin Cross <ccross@android.com>2018-10-08 15:20:56 -0700
commite40b4eaeb0d336d4904ac7d6c40e0093660943d7 (patch)
tree747d8e581a8c0f2dda7b247109bec73f1d2b7840 /cc/object.go
parentee0bc3b290d7b1ec97becbd5e227a76c868d3543 (diff)
downloadbuild_soong-e40b4eaeb0d336d4904ac7d6c40e0093660943d7.tar.gz
build_soong-e40b4eaeb0d336d4904ac7d6c40e0093660943d7.tar.bz2
build_soong-e40b4eaeb0d336d4904ac7d6c40e0093660943d7.zip
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
Diffstat (limited to 'cc/object.go')
-rw-r--r--cc/object.go4
1 files changed, 2 insertions, 2 deletions
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),