androidbp: Refactor Target/Device duplication to mutation
This is just another mutation in soong, implement it as a mutation in androidbp as well. Change-Id: Id72cba58db8603cace9d8ae5d8fbbd08167867cd
This commit is contained in:
@@ -96,6 +96,25 @@ var moduleTestCases = []struct {
|
||||
LOCAL_MODULE := test
|
||||
include $(BUILD_STATIC_LIBRARY)`,
|
||||
},
|
||||
// Static and Shared / Target and Host
|
||||
{
|
||||
blueprint: `cc_library { name: "test", host_supported: true, }`,
|
||||
androidmk: `include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := test
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := test
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := test
|
||||
include $(BUILD_HOST_SHARED_LIBRARY)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := test
|
||||
include $(BUILD_HOST_STATIC_LIBRARY)`,
|
||||
},
|
||||
}
|
||||
|
||||
func TestModules(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user