aboutsummaryrefslogtreecommitdiff
path: root/cc/library_sdk_member.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-03-02 10:16:35 +0000
committerPaul Duffin <paulduffin@google.com>2020-03-09 15:54:31 +0000
commita04c107bfaf9262daafecc9174bd9e85b79264bd (patch)
tree593aad7aabb69d3e75d52d42a2840ca84b066e3e /cc/library_sdk_member.go
parent71754bf6400e56e863c7725a61f79b5d0aac58e5 (diff)
downloadsoong-a04c107bfaf9262daafecc9174bd9e85b79264bd.tar.gz
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
Diffstat (limited to 'cc/library_sdk_member.go')
-rw-r--r--cc/library_sdk_member.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/library_sdk_member.go b/cc/library_sdk_member.go
index a26269772..656df6969 100644
--- a/cc/library_sdk_member.go
+++ b/cc/library_sdk_member.go
@@ -254,7 +254,7 @@ const (
// path to the native library. Relative to <sdk_root>/<api_dir>
func nativeLibraryPathFor(lib *nativeLibInfoProperties) string {
- return filepath.Join(lib.archType,
+ return filepath.Join(lib.OsPrefix(), lib.archType,
nativeStubDir, lib.outputFile.Base())
}