Use centralized rules.bzl file for android rules in bp2build.
Change-Id: I6e4837d8b6715960337d0db9b36f8137efb5673e
This commit is contained in:
@@ -1031,7 +1031,7 @@ func (a *AARImport) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
|||||||
ctx.CreateBazelTargetModule(
|
ctx.CreateBazelTargetModule(
|
||||||
bazel.BazelTargetModuleProperties{
|
bazel.BazelTargetModuleProperties{
|
||||||
Rule_class: "aar_import",
|
Rule_class: "aar_import",
|
||||||
Bzl_load_location: "@rules_android//rules:rules.bzl",
|
Bzl_load_location: "//build/bazel/rules/android:rules.bzl",
|
||||||
},
|
},
|
||||||
android.CommonAttributes{Name: name},
|
android.CommonAttributes{Name: name},
|
||||||
&bazelAndroidLibraryImport{
|
&bazelAndroidLibraryImport{
|
||||||
@@ -1057,7 +1057,7 @@ func (a *AndroidLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext)
|
|||||||
name := a.Name()
|
name := a.Name()
|
||||||
props := bazel.BazelTargetModuleProperties{
|
props := bazel.BazelTargetModuleProperties{
|
||||||
Rule_class: "android_library",
|
Rule_class: "android_library",
|
||||||
Bzl_load_location: "@rules_android//rules:rules.bzl",
|
Bzl_load_location: "//build/bazel/rules/android:rules.bzl",
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.CreateBazelTargetModule(
|
ctx.CreateBazelTargetModule(
|
||||||
|
@@ -1476,7 +1476,7 @@ func androidAppCertificateBp2Build(ctx android.TopDownMutatorContext, module *An
|
|||||||
|
|
||||||
props := bazel.BazelTargetModuleProperties{
|
props := bazel.BazelTargetModuleProperties{
|
||||||
Rule_class: "android_app_certificate",
|
Rule_class: "android_app_certificate",
|
||||||
Bzl_load_location: "//build/bazel/rules/android:android_app_certificate.bzl",
|
Bzl_load_location: "//build/bazel/rules/android:rules.bzl",
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: module.Name()}, attrs)
|
ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: module.Name()}, attrs)
|
||||||
@@ -1515,7 +1515,7 @@ func (a *AndroidApp) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
|||||||
|
|
||||||
props := bazel.BazelTargetModuleProperties{
|
props := bazel.BazelTargetModuleProperties{
|
||||||
Rule_class: "android_binary",
|
Rule_class: "android_binary",
|
||||||
Bzl_load_location: "//build/bazel/rules/android:android_binary.bzl",
|
Bzl_load_location: "//build/bazel/rules/android:rules.bzl",
|
||||||
}
|
}
|
||||||
ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: a.Name()}, attrs)
|
ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: a.Name()}, attrs)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user