aboutsummaryrefslogtreecommitdiff
path: root/apex
diff options
context:
space:
mode:
authorJingwen Chen <jingwen@google.com>2023-03-28 13:05:02 +0000
committerJingwen Chen <jingwen@google.com>2023-03-29 04:20:08 +0000
commita8623da12ee1cf92ddf22c638fe1d28082273ed6 (patch)
treed2e9fa03d095c4351eb426b9d69565ba7c3127a3 /apex
parent3ebe338ec1a3e2a568823152f8367bba8bb3e35c (diff)
downloadsoong-a8623da12ee1cf92ddf22c638fe1d28082273ed6.tar.gz
bp2build apex: convert canned_fs_config property.
Bug: 275280970 Test: bp2build unit test Change-Id: Ic6867a640a5079cd206419ddd378d2357093dae6
Diffstat (limited to 'apex')
-rw-r--r--apex/apex.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 0f32f7706..367863660 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -3519,6 +3519,7 @@ type bazelApexBundleAttributes struct {
Manifest bazel.LabelAttribute
Android_manifest bazel.LabelAttribute
File_contexts bazel.LabelAttribute
+ Canned_fs_config bazel.LabelAttribute
Key bazel.LabelAttribute
Certificate bazel.LabelAttribute // used when the certificate prop is a module
Certificate_name bazel.StringAttribute // used when the certificate prop is a string
@@ -3578,6 +3579,11 @@ func convertWithBp2build(a *apexBundle, ctx android.TopDownMutatorContext) (baze
fileContextsLabelAttribute.SetValue(android.BazelLabelForModuleSrcSingle(ctx, *a.properties.File_contexts))
}
+ var cannedFsConfigAttribute bazel.LabelAttribute
+ if a.properties.Canned_fs_config != nil {
+ cannedFsConfigAttribute.SetValue(android.BazelLabelForModuleSrcSingle(ctx, *a.properties.Canned_fs_config))
+ }
+
productVariableProps := android.ProductVariableProperties(ctx, a)
// TODO(b/219503907) this would need to be set to a.MinSdkVersionValue(ctx) but
// given it's coming via config, we probably don't want to put it in here.
@@ -3664,6 +3670,7 @@ func convertWithBp2build(a *apexBundle, ctx android.TopDownMutatorContext) (baze
Manifest: manifestLabelAttribute,
Android_manifest: androidManifestLabelAttribute,
File_contexts: fileContextsLabelAttribute,
+ Canned_fs_config: cannedFsConfigAttribute,
Min_sdk_version: minSdkVersion,
Key: keyLabelAttribute,
Certificate: certificate,