summaryrefslogtreecommitdiff
path: root/sdk/sdk.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-03-02 18:38:15 +0000
committer Paul Duffin <paulduffin@google.com> 2020-03-10 10:39:24 +0000
commit865171ed402856a25345bcd23b376a27f160c340 (patch)
treed1df6f67979bc4dda5940958c98d20c68a7d55e5 /sdk/sdk.go
parent04c93a40f1967e691774ccc1b35acdde0dd7b560 (diff)
Allow sdk members to vary by os type
Adds support for specifying separate members to an sdk/module_exports for different os types, e.g. separate ones for android and host. Adds 'android:"arch_variant"' tag to the dynamically generated fields for the sdk member types. Merges the exported members from all variants together. Determines the device/host_supported flags of the member snapshots by whether the OsClasses used by their variants rather than the sdk's host/device supported properties as they may be different. Bug: 150451422 Test: m nothing Change-Id: I41fbbcd8723aafd54826aad9b78eced9f66ef51c
Diffstat (limited to 'sdk/sdk.go')
-rw-r--r--sdk/sdk.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sdk/sdk.go b/sdk/sdk.go
index db715757d..8b9d5bc80 100644
--- a/sdk/sdk.go
+++ b/sdk/sdk.go
@@ -150,6 +150,7 @@ func createDynamicSdkMemberTypes(sdkMemberTypes []android.SdkMemberType) *dynami
fields = append(fields, reflect.StructField{
Name: proptools.FieldNameForProperty(p),
Type: reflect.TypeOf([]string{}),
+ Tag: `android:"arch_variant"`,
})
// Copy the field index for use in the getter func as using the loop variable directly will