From a04c107bfaf9262daafecc9174bd9e85b79264bd Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 2 Mar 2020 10:16:35 +0000 Subject: Add support for multiple os types Updates the member snapshot creation code to support multiple os types. It basically sorts the variants by os type, then applies the code to optimize the arch properties and then it optimizes the properties that are common across architectures and extracts any properties that are common across os types. The java and cc member types needed to be modified to make the location of the generated files within the snapshot os type dependent when there is more than one os type. That was done by adding an OsPrefix() method to the SdkMemberPropertiesBase which returns the os prefix to use when there is > 1 os type and otherwise returns an empty string. Added three tests, one for cc shared libraries, one for cc binary and one for java header libraries. Bug: 150451422 Test: m nothing Change-Id: I08f5fbdd7852b06c9a9a2f1cfdc364338a3d5bac --- sdk/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdk/testing.go') diff --git a/sdk/testing.go b/sdk/testing.go index 41333cdc8..464c3ca9a 100644 --- a/sdk/testing.go +++ b/sdk/testing.go @@ -40,7 +40,7 @@ func testSdkContext(bp string, fs map[string][]byte) (*android.TestContext, andr name: "myapex.cert", certificate: "myapex", } - ` + cc.GatherRequiredDepsForTest(android.Android) + ` + cc.GatherRequiredDepsForTest(android.Android, android.Windows) mockFS := map[string][]byte{ "build/make/target/product/security": nil, -- cgit v1.2.3-59-g8ed1b