/build/soong/android/ |
D | rule_builder_test.go | 50 rule := NewRuleBuilder(pctx, ctx) 52 rule.Command(). 56 rule.Command().Text("echo success") 61 fmt.Printf("commands: %q\n", strings.Join(rule.Commands(), " && ")) 62 fmt.Printf("tools: %q\n", rule.Tools()) 63 fmt.Printf("inputs: %q\n", rule.Inputs()) 64 fmt.Printf("outputs: %q\n", rule.Outputs()) 76 rule := NewRuleBuilder(pctx, ctx) 78 rule.Command(). 82 rule.Command().Text("cp out/a out/b"). [all …]
|
D | neverallow.go | 98 rule := 104 rules = append(rules, rule) 108 rule := NeverAllow().In(path+"/").WithMatcher("include_dirs", isSetMatcherInstance). 111 rules = append(rules, rule) 232 n := r.(*rule) 371 type rule struct { struct 393 return &rule{directDeps: make(map[string]bool)} 396 func (r *rule) In(path ...string) Rule { argument 401 func (r *rule) NotIn(path ...string) Rule { argument 406 func (r *rule) InDirectDeps(deps ...string) Rule { argument [all …]
|
D | visibility.go | 318 rule := parseRules(ctx, currentPkg, primaryProperty.getName(), visibility) 319 if rule != nil { 320 moduleToVisibilityRuleMap(ctx.Config()).Store(qualifiedModuleId, rule) 457 rule := effectiveVisibilityRules(ctx.Config(), depQualified) 458 if !rule.matches(qualified) { 474 var rule compositeRule 476 rule = value.(compositeRule) 478 rule = packageDefaultVisibility(config, qualified) 483 if rule == nil { 484 rule = defaultVisibility [all …]
|
D | license_test.go | 57 rule { 77 rule { 122 rule { 161 rule { 166 rule {
|
/build/soong/xml/ |
D | xml_test.go | 67 rule, input, schemaType, schema string 69 {rule: "xmllint-dtd", input: "foo.xml", schemaType: "dtd", schema: "foo.dtd"}, 70 {rule: "xmllint-xsd", input: "bar.xml", schemaType: "xsd", schema: "bar.xsd"}, 71 {rule: "xmllint-minimal", input: "baz.xml"}, 74 rule := result.ModuleForTests(tc.input, "android_arm64_armv8-a").Rule(tc.rule) 75 android.AssertStringEquals(t, "input", tc.input, rule.Input.String()) 77 android.AssertStringEquals(t, "schema", tc.schema, rule.Args[tc.schemaType])
|
/build/soong/python/ |
D | proto.go | 27 rule := android.NewRuleBuilder(pctx, ctx) 29 rule.Command().Text("rm -rf").Flag(outDir.String()) 30 rule.Command().Text("mkdir -p").Flag(outDir.String()) 32 android.ProtoRule(rule, protoFile, flags, flags.Deps, outDir, depFile, nil) 36 zipCmd := rule.Command(). 45 rule.Command().Text("rm -rf").Flag(outDir.String()) 47 rule.Build("protoc_"+protoFile.Rel(), "protoc "+protoFile.Rel())
|
/build/soong/dexpreopt/ |
D | dexpreopt.go | 55 global *GlobalConfig, module *ModuleConfig) (rule *android.RuleBuilder, err error) { 63 rule = nil 70 rule = android.NewRuleBuilder(pctx, ctx) 77 profile = profileCommand(ctx, globalSoong, global, module, rule) 80 bootProfileCommand(ctx, globalSoong, global, module, rule) 95 dexpreoptCommand(ctx, globalSoong, global, module, rule, archIdx, profile, appImage, generateDM) 100 return rule, nil 131 module *ModuleConfig, rule *android.RuleBuilder) android.WritablePath { 137 rule.Command().Text("rm -f").Output(profilePath) 138 rule.Command().Text("touch").Output(profilePath) [all …]
|
D | dexpreopt_test.go | 68 rule, err := GenerateDexpreoptRule(ctx, globalSoong, global, module) 78 if rule.Installs().String() != wantInstalls.String() { 79 t.Errorf("\nwant installs:\n %v\ngot:\n %v", wantInstalls, rule.Installs()) 124 rule, err := GenerateDexpreoptRule(ctx, globalSoong, global, mt.module) 135 if rule.Installs().String() != wantInstalls.String() { 136 t.Errorf("\nwant installs:\n %v\ngot:\n %v", wantInstalls, rule.Installs()) 152 rule, err := GenerateDexpreoptRule(ctx, globalSoong, global, module) 164 if rule.Installs().String() != wantInstalls.String() { 165 t.Errorf("\nwant installs:\n %v\ngot:\n %v", wantInstalls, rule.Installs())
|
/build/soong/cc/ |
D | cflag_artifacts.go | 71 rule := android.NewRuleBuilder(pctx, ctx) 72 rule.Command().Textf("rm -f %s", filepath.String()) 75 rule.Command(). 79 rule.Command(). 87 rule.Build(filename, "gen "+filename) 96 rule.Command(). 101 rule.Build(filename, "gen "+filename) 105 rule = android.NewRuleBuilder(pctx, ctx) 106 rule.Command().Textf("rm -f %s", filepath.String()) 124 rule := android.NewRuleBuilder(pctx, ctx) [all …]
|
/build/soong/java/ |
D | proto.go | 37 rule := android.NewRuleBuilder(pctx, ctx) 39 rule.Command().Text("rm -rf").Flag(outDir.String()) 40 rule.Command().Text("mkdir -p").Flag(outDir.String()) 44 rule.Command().Text("mkdir -p").Flag(filepath.Dir(depFile.String())) 45 android.ProtoRule(rule, protoFile, flags, flags.Deps, outDir, depFile, nil) 50 rule.Command(). 58 rule.Command().Text("rm -rf").Flag(outDir.String()) 60 rule.Restat() 69 rule.Build(ruleName, ruleDesc)
|
D | gen.go | 60 rule := android.NewRuleBuilder(pctx, ctx) 62 rule.Command().Text("rm -rf").Flag(outDir.String()) 63 rule.Command().Text("mkdir -p").Flag(outDir.String()) 64 rule.Command().Text("FLAGS=' " + aidlFlags + "'") 69 rule.Command(). 76 rule.Temporary(javaFile) 79 rule.Command(). 87 rule.Command().Text("rm -rf").Flag(outDir.String()) 89 rule.Restat() 98 rule.Build(ruleName, ruleDesc)
|
D | droidstubs.go | 394 func metalavaCmd(ctx android.ModuleContext, rule *android.RuleBuilder, javaVersion javaVersion, src… 396 rule.Command().Text("rm -rf").Flag(homeDir.String()) 397 rule.Command().Text("mkdir -p").Flag(homeDir.String()) 399 cmd := rule.Command() 403 rule.Remoteable(android.RemoteRuleSupports{RBE: true}) 408 rule.Rewrapper(&remoteexec.REParams{ 451 rule := android.NewRuleBuilder(pctx, ctx) 453 rule.Sbox(android.PathForModuleOut(ctx, "metalava"), 459 rule.HighMem() 467 rule.Command().Text("rm -rf").Text(stubsDir.String()) [all …]
|
D | dexpreopt_bootjars.go | 557 rule := android.NewRuleBuilder(pctx, ctx) 558 rule.Command(). 564 rule.Build("zip_"+image.name, "zip "+image.name+" image") 582 rule := android.NewRuleBuilder(pctx, ctx) 584 rule.Command().Text("mkdir").Flag("-p").Flag(symbolsDir.String()) 585 rule.Command().Text("rm").Flag("-f"). 589 rule.Command().Text("rm").Flag("-f"). 594 cmd := rule.Command() 688 rule.Install(artOrOat, filepath.Join(installDir, artOrOat.Base())) 708 …rule.Build(image.name+"JarsDexpreopt_"+image.target.String(), "dexpreopt "+image.name+" jars "+arc… [all …]
|
D | platform_bootclasspath_test.go | 322 var rule android.TestingBuildParams 332 rule = platformBootclasspath.Output("hiddenapi-monolithic/annotation-flags-from-classes.csv") 333 CheckHiddenAPIRuleInputs(t, "intermediate flags", expectedIntermediateInputs, rule) 335 rule = platformBootclasspath.Output("out/soong/hiddenapi/hiddenapi-flags.csv") 339 `, rule) 342 rule = platformBootclasspath.Output("hiddenapi-monolithic/metadata-from-classes.csv") 343 CheckHiddenAPIRuleInputs(t, "intermediate metadata", expectedIntermediateInputs, rule) 345 rule = platformBootclasspath.Output("out/soong/hiddenapi/hiddenapi-unsupported.csv") 348 `, rule) 351 rule = platformBootclasspath.Output("hiddenapi-monolithic/index-from-classes.csv") [all …]
|
D | sdk.go | 266 rule := createFrameworkAidl(stubsModules, tempPath, ctx) 268 commitChangeForRestat(rule, tempPath, combinedAidl) 270 rule.Build("framework_aidl", "generate framework.aidl") 280 rule := createFrameworkAidl(stubsModules, tempPath, ctx) 282 commitChangeForRestat(rule, tempPath, combinedAidl) 284 rule.Build("framework_non_updatable_aidl", "generate framework_non_updatable.aidl") 313 rule := android.NewRuleBuilder(pctx, ctx) 314 rule.MissingDeps(missingDeps) 321 rule.Command(). 323 rule.Command(). [all …]
|
D | droiddoc.go | 513 rule := android.NewRuleBuilder(pctx, ctx) 515 rule.Command().Text("rm -rf").Text(outDir.String()) 516 rule.Command().Text("mkdir -p").Text(outDir.String()) 518 srcJarList := zipSyncCmd(ctx, rule, srcJarDir, j.srcJars) 522 cmd := javadocSystemModulesCmd(ctx, rule, j.srcFiles, outDir, srcJarDir, srcJarList, 532 rule.Command(). 540 rule.Restat() 542 zipSyncCleanupCmd(rule, srcJarDir) 544 rule.Build("javadoc", "javadoc") 669 func (d *Droiddoc) postDoclavaCmds(ctx android.ModuleContext, rule *android.RuleBuilder) { [all …]
|
D | boot_jars.go | 36 rule := android.NewRuleBuilder(pctx, ctx) 37 rule.Command().BuiltTool("check_boot_jars"). 42 rule.Build("boot_jars_package_check", "check boot jar packages")
|
D | lint.go | 212 func (l *linter) writeLintProjectXML(ctx android.ModuleContext, rule *android.RuleBuilder) lintPath… 220 srcJarList := zipSyncCmd(ctx, rule, srcJarDir, l.srcJars) 222 cmd := rule.Command(). 295 func (l *linter) generateManifest(ctx android.ModuleContext, rule *android.RuleBuilder) android.Wri… 298 rule.Command().Text("("). 353 rule := android.NewRuleBuilder(pctx, ctx). 360 rule.Remoteable(android.RemoteRuleSupports{RBE: true}) 361 rule.Rewrapper(&remoteexec.REParams{ 370 manifest := l.generateManifest(ctx, rule) 372 rule.Temporary(manifest) [all …]
|
D | dexpreopt_bootjars_test.go | 58 rule := platformBootclasspath.Output(ruleFile) 68 inputs := rule.Implicits.Strings() 72 outputs := append(android.WritablePaths{rule.Output}, rule.ImplicitOutputs...).Strings()
|
/build/bazel/rules_cc/cc/ |
D | defs.bzl | 30 """Bazel cc_binary rule. 42 """Bazel cc_test rule. 54 """Bazel cc_library rule. 66 """Bazel cc_import rule. 78 """Bazel cc_proto_library rule. 90 """Bazel fdo_prefetch_hints rule. 102 """Bazel fdo_profile rule. 114 """Bazel cc_toolchain rule. 126 """Bazel cc_toolchain_suite rule. 138 """Bazel objc_library rule. [all …]
|
/build/make/tools/fs_config/ |
D | fs_config.go | 51 rule := android.NewRuleBuilder(pctx, ctx) 52 rule.Command().Text("rm -rf").Output(path) 53 rule.Command().Text("touch").Output(path) 54 rule.Build("fs_config_empty", "create empty file")
|
/build/soong/bp2build/ |
D | bzl_conversion.go | 41 type rule struct { struct 91 for _, rule := range ruleShim.rules { 92 loadStmt += fmt.Sprintf(", %q", rule) 93 moduleRuleMap += " \"" + rule + "\": " + rule + ",\n" 102 func generateRules(moduleTypeFactories map[string]android.ModuleFactory) map[string][]rule { 105 rules := make(map[string][]rule) 119 r := rule{
|
D | bzl_conversion_test.go | 73 for i, rule := range ruleShim.rules { 74 if rule != expectedRules[i] { 75 t.Errorf("Expected rule shim to contain %s, but got %s", expectedRules[i], rule) 83 custom = rule( 112 custom_defaults = rule( 137 custom_test_ = rule(
|
D | androidbp_to_build_templates.go | 66 generic_soong_module = rule( 98 # This module type does not have an existing rule to map to, so use the 99 # generic_soong_module rule instead. 123 %[1]s = rule(
|
/build/make/core/ |
D | sdk_font.mk | 51 define sdk-extra-font-rule 63 $(eval $(call sdk-extra-font-rule,NanumGothic.ttf,external/naver-fonts/NanumGothic.ttf)) 64 $(eval $(call sdk-extra-font-rule,DroidSansFallback.ttf,frameworks/base/data/fonts/DroidSansFallbac… 66 sdk-extra-font-rule :=
|