Add support for test libraries

Add cc_test_library, which is a combination of a cc_test and a static
library.  Requires adding a libraryInterface to identify libraries that
are embedded in other types.

Change-Id: I2f0dcccb2f7243409210547562d2b41c3fbce44e
This commit is contained in:
Colin Cross
2016-07-12 13:13:09 -07:00
parent 7924885eb3
commit c7a38dc00c
2 changed files with 92 additions and 26 deletions

View File

@@ -124,9 +124,9 @@ func (binary *binaryLinker) AndroidMk(ret *android.AndroidMkData) {
})
}
func (test *testLinker) AndroidMk(ret *android.AndroidMkData) {
func (test *testBinaryLinker) AndroidMk(ret *android.AndroidMkData) {
test.binaryLinker.AndroidMk(ret)
if Bool(test.Properties.Test_per_src) {
if Bool(test.testLinker.Properties.Test_per_src) {
ret.SubName = test.binaryLinker.Properties.Stem
}
}