diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-06-21 22:43:06 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-06-21 22:43:06 +0000 |
commit | 5079fb348eef9f53727135e8b00f598d6599a407 (patch) | |
tree | c35be9688088ca87e8a7318c46f3a564585d4249 | |
parent | 039c21cc5202145e59b3bf628234625a387babc6 (diff) | |
parent | 708e1847f025a32fd3334f5e081ae10c9c1a0534 (diff) | |
download | xsdc-5079fb348eef9f53727135e8b00f598d6599a407.tar.gz |
Merge "Remove reference to the deprecated and disabled Typo issue" am: f11142b5b6 am: c409f8c786 am: 3f3977cb97 am: 140d196d7e am: 708e1847f0
Original change: https://android-review.googlesource.com/c/platform/system/tools/xsdc/+/2633269
Change-Id: I101c34236689f37597fbd6a1c5c559af3782e0ce
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | build/xsdc.go | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/build/xsdc.go b/build/xsdc.go index 8f1ddec..c758573 100644 --- a/build/xsdc.go +++ b/build/xsdc.go @@ -37,7 +37,7 @@ func init() { var ( pctx = android.NewPackageContext("android/xsdc") - xsdc = pctx.HostBinToolVariable("xsdcCmd", "xsdc") + xsdc = pctx.HostBinToolVariable("xsdcCmd", "xsdc") xsdConfigRule = pctx.StaticRule("xsdConfigRule", blueprint.RuleParams{ Command: "cp -f ${in} ${output}", @@ -169,13 +169,13 @@ func (module *xsdConfig) generateJavaSrcInSbox(ctx android.ModuleContext, args s // Run xsdc tool to generate sources genCmd := rule.Command() genCmd. - BuiltTool("xsdc"). - ImplicitTool(ctx.Config().HostJavaToolPath(ctx, "xsdc.jar")). - Input(module.xsdConfigPath). - FlagWithArg("-p ", *module.properties.Package_name). - // Soong will change execution root to sandbox root. Generate srcs relative to that. - Flag("-o ").OutputDir(). - FlagWithArg("-j ", args) + BuiltTool("xsdc"). + ImplicitTool(ctx.Config().HostJavaToolPath(ctx, "xsdc.jar")). + Input(module.xsdConfigPath). + FlagWithArg("-p ", *module.properties.Package_name). + // Soong will change execution root to sandbox root. Generate srcs relative to that. + Flag("-o ").OutputDir(). + FlagWithArg("-j ", args) if module.xsdIncludeConfigPaths != nil { genCmd.Implicits(module.xsdIncludeConfigPaths) } @@ -184,13 +184,13 @@ func (module *xsdConfig) generateJavaSrcInSbox(ctx android.ModuleContext, args s } // Zip the source file to a srcjar rule.Command(). - BuiltTool("soong_zip"). - Flag("-jar"). - FlagWithOutput("-o ", module.genOutputs_j). - Flag("-C ").OutputDir(). - Flag("-D ").OutputDir() + BuiltTool("soong_zip"). + Flag("-jar"). + FlagWithOutput("-o ", module.genOutputs_j). + Flag("-C ").OutputDir(). + Flag("-D ").OutputDir() - rule.Build("xsdc_java_" + module.xsdConfigPath.String(), "xsdc java") + rule.Build("xsdc_java_"+module.xsdConfigPath.String(), "xsdc java") } // This creates a ninja rule to convert xsd file to cpp sources @@ -204,20 +204,20 @@ func (module *xsdConfig) generateCppSrcInSbox(ctx android.ModuleContext, args st // Run xsdc tool to generate sources genCmd := rule.Command() genCmd. - BuiltTool("xsdc"). - ImplicitTool(ctx.Config().HostJavaToolPath(ctx, "xsdc.jar")). - Input(module.xsdConfigPath). - FlagWithArg("-p ", *module.properties.Package_name). - // Soong will change execution root to sandbox root. Generate srcs relative to that. - Flag("-o ").OutputDir(). - FlagWithArg("-c ", args). - ImplicitOutputs(module.genOutputs_c). - ImplicitOutputs(module.genOutputs_h) + BuiltTool("xsdc"). + ImplicitTool(ctx.Config().HostJavaToolPath(ctx, "xsdc.jar")). + Input(module.xsdConfigPath). + FlagWithArg("-p ", *module.properties.Package_name). + // Soong will change execution root to sandbox root. Generate srcs relative to that. + Flag("-o ").OutputDir(). + FlagWithArg("-c ", args). + ImplicitOutputs(module.genOutputs_c). + ImplicitOutputs(module.genOutputs_h) if module.xsdIncludeConfigPaths != nil { genCmd.Implicits(module.xsdIncludeConfigPaths) } - rule.Build("xsdc_cpp_" + module.xsdConfigPath.String(), "xsdc cpp") + rule.Build("xsdc_cpp_"+module.xsdConfigPath.String(), "xsdc cpp") } func (module *xsdConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) { @@ -308,7 +308,7 @@ func xsdConfigMutator(mctx android.TopDownMutatorContext) { args := " --stub-packages " + *module.properties.Package_name + " --hide MissingPermission --hide BroadcastBehavior" + " --hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol" + - " --hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo" + " --hide SdkConstant --hide HiddenTypeParameter --hide Todo" api_dir := proptools.StringDefault(module.properties.Api_dir, "api") |