summaryrefslogtreecommitdiff
path: root/android/sdk.go
diff options
context:
space:
mode:
author Alyssa Ketpreechasawat <kalyssa@google.com> 2024-07-04 19:51:17 +0000
committer Alyssa Ketpreechasawat <kalyssa@google.com> 2024-07-05 16:12:17 +0000
commit59ec0fac0a3ab328bbe5d3745b27cbf26c248ef8 (patch)
tree2bade83b05c35accd93b33a7d35f9249a3768346 /android/sdk.go
parent2f9af23734a53041e37437c9d22a664fd4db2313 (diff)
Add "strip: {none: true}" for cc_prebuilt_library_shared in sdk snapshot.
Prebuilt cannot be stripped in older platform. Therefore, we set stripper to none to skip the call to strip.sh. Bug: 350050115 Test: SOONG_SDK_SNAPSHOT_TARGET_BUILD_RELEASE=Tiramisu m art-module-sdk Test: Create module sdk from this and drop into tm-dev Change-Id: I911ce24ca18435f95395c43fc5e73110a50b3067
Diffstat (limited to 'android/sdk.go')
-rw-r--r--android/sdk.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/android/sdk.go b/android/sdk.go
index 121470d6e..4bcbe2e7a 100644
--- a/android/sdk.go
+++ b/android/sdk.go
@@ -513,6 +513,9 @@ type SdkMemberType interface {
// SupportedLinkages returns the names of the linkage variants supported by this module.
SupportedLinkages() []string
+ // DisablesStrip returns true if the stripping needs to be disabled for this module.
+ DisablesStrip() bool
+
// ArePrebuiltsRequired returns true if prebuilts are required in the sdk snapshot, false
// otherwise.
ArePrebuiltsRequired() bool
@@ -618,6 +621,9 @@ type SdkMemberTypeBase struct {
// The names of linkage variants supported by this module.
SupportedLinkageNames []string
+ // StripDisabled returns true if the stripping needs to be disabled for this module.
+ StripDisabled bool
+
// When set to true BpPropertyNotRequired indicates that the member type does not require the
// property to be specifiable in an Android.bp file.
BpPropertyNotRequired bool
@@ -689,6 +695,10 @@ func (b *SdkMemberTypeBase) SupportedLinkages() []string {
return b.SupportedLinkageNames
}
+func (b *SdkMemberTypeBase) DisablesStrip() bool {
+ return b.StripDisabled
+}
+
// registeredModuleExportsMemberTypes is the set of registered SdkMemberTypes for module_exports
// modules.
var registeredModuleExportsMemberTypes = &sdkRegistry{}