From 28bda51400d2ec2100df23e36b1e7f9509ecd9f8 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 31 Aug 2016 16:32:55 -0700 Subject: [PATCH] Support shared cc_test_library So that shared libraries can be installed under /data/nativetest[64] (or the host equivalent) Change-Id: I41b2860365985f36828bd4bf9b6dc651b210822c --- cc/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/test.go b/cc/test.go index 27b45d75e..5418ebff1 100644 --- a/cc/test.go +++ b/cc/test.go @@ -259,7 +259,8 @@ func (test *testLibrary) linkerFlags(ctx ModuleContext, flags Flags) Flags { } 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{ testDecorator: testDecorator{ linker: library.baseLinker, @@ -268,7 +269,6 @@ func NewTestLibrary(hod android.HostOrDeviceSupported) *Module { } test.testDecorator.Properties.Gtest = true module.linker = test - module.installer = nil return module }