Support shared cc_test_library

So that shared libraries can be installed under /data/nativetest[64] (or
the host equivalent)

Change-Id: I41b2860365985f36828bd4bf9b6dc651b210822c
This commit is contained in:
Dan Willemsen
2016-08-31 16:32:55 -07:00
parent 9d45bb78c5
commit 28bda51400

View File

@@ -259,7 +259,8 @@ func (test *testLibrary) linkerFlags(ctx ModuleContext, flags Flags) Flags {
} }
func NewTestLibrary(hod android.HostOrDeviceSupported) *Module { func NewTestLibrary(hod android.HostOrDeviceSupported) *Module {
module, library := NewLibrary(android.HostAndDeviceSupported, false, true) module, library := NewLibrary(android.HostAndDeviceSupported, true, true)
library.baseInstaller = NewTestInstaller()
test := &testLibrary{ test := &testLibrary{
testDecorator: testDecorator{ testDecorator: testDecorator{
linker: library.baseLinker, linker: library.baseLinker,
@@ -268,7 +269,6 @@ func NewTestLibrary(hod android.HostOrDeviceSupported) *Module {
} }
test.testDecorator.Properties.Gtest = true test.testDecorator.Properties.Gtest = true
module.linker = test module.linker = test
module.installer = nil
return module return module
} }