Support preprocessed prebuilt tests in androidmk
Adds support to translate app prebuilt tests to android_test_import and LOCAL_REPLACE_PREBUILT_APK_INSTALLED to preprocessed property. Test: androidmk_test.go, bpfix_test.go Bug: 155412211 Change-Id: I77c07c684125adf228ba91911998823a68b3a65d
This commit is contained in:
@@ -408,6 +408,8 @@ func rewriteTestModuleTypes(f *Fixer) error {
|
||||
switch mod.Type {
|
||||
case "android_app":
|
||||
mod.Type = "android_test"
|
||||
case "android_app_import":
|
||||
mod.Type = "android_test_import"
|
||||
case "java_library", "java_library_installable":
|
||||
mod.Type = "java_test"
|
||||
case "java_library_host":
|
||||
@@ -951,7 +953,8 @@ func removeTags(mod *parser.Module, buf []byte, patchlist *parser.PatchList) err
|
||||
case strings.Contains(mod.Type, "cc_test"),
|
||||
strings.Contains(mod.Type, "cc_library_static"),
|
||||
strings.Contains(mod.Type, "java_test"),
|
||||
mod.Type == "android_test":
|
||||
mod.Type == "android_test",
|
||||
mod.Type == "android_test_import":
|
||||
continue
|
||||
case strings.Contains(mod.Type, "cc_lib"):
|
||||
replaceStr += `// WARNING: Module tags are not supported in Soong.
|
||||
|
Reference in New Issue
Block a user