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
diff --git a/androidbp/cmd/androidbp_test.go b/androidbp/cmd/androidbp_test.go
index aab7e5f..e16fa08 100644
--- a/androidbp/cmd/androidbp_test.go
+++ b/androidbp/cmd/androidbp_test.go
@@ -96,6 +96,25 @@
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) {