Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 100) sorted by relevance

1234

/build/soong/android/
Drule_builder_test.go50 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 …]
Dneverallow.go98 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 …]
Dvisibility.go318 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 …]
Dlicense_test.go57 rule {
77 rule {
122 rule {
161 rule {
166 rule {
/build/soong/xml/
Dxml_test.go67 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/
Dproto.go27 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/
Ddexpreopt.go55 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 …]
Ddexpreopt_test.go68 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/
Dcflag_artifacts.go71 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/
Dproto.go37 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)
Dgen.go60 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)
Ddroidstubs.go394 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 …]
Ddexpreopt_bootjars.go557 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()))
708rule.Build(image.name+"JarsDexpreopt_"+image.target.String(), "dexpreopt "+image.name+" jars "+arc…
[all …]
Dplatform_bootclasspath_test.go322 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 …]
Dsdk.go266 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 …]
Ddroiddoc.go513 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 …]
Dboot_jars.go36 rule := android.NewRuleBuilder(pctx, ctx)
37 rule.Command().BuiltTool("check_boot_jars").
42 rule.Build("boot_jars_package_check", "check boot jar packages")
Dlint.go212 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 …]
Ddexpreopt_bootjars_test.go58 rule := platformBootclasspath.Output(ruleFile)
68 inputs := rule.Implicits.Strings()
72 outputs := append(android.WritablePaths{rule.Output}, rule.ImplicitOutputs...).Strings()
/build/bazel/rules_cc/cc/
Ddefs.bzl30 """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/
Dfs_config.go51 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/
Dbzl_conversion.go41 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{
Dbzl_conversion_test.go73 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(
Dandroidbp_to_build_templates.go66 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/
Dsdk_font.mk51 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 :=

1234