Lines Matching +full:ninja +full:- +full:build

7 //     http://www.apache.org/licenses/LICENSE-2.0
15 package build package
33 const katiCleanspecSuffix = "-cleanspec"
34 const katiPackageSuffix = "-package"
36 // genKatiSuffix creates a filename suffix for kati-generated files so that we
37 // can cache them based on their inputs. Such files include the generated Ninja
41 // Currently that includes the TARGET_PRODUCT and kati-processed command line
45 katiSuffix := "-" + config.TargetProduct()
49 katiSuffix += "-" + spaceSlashReplacer.Replace(strings.Join(args, "_"))
55 shortSuffix := "-" + fmt.Sprintf("%x", md5.Sum([]byte(katiSuffix)))
58 ctx.Verbosef("Kati ninja suffix too long: %q", katiSuffix)
61 …if err := ioutil.WriteFile(strings.TrimSuffix(config.KatiBuildNinjaFile(), "ninja")+"suf", []byte(…
76 // Instead of executing commands directly, generate a Ninja file.
77 "--ninja",
78 // Generate Ninja files in the output directory.
79 "--ninja_dir=" + config.OutDir(),
80 // Filename suffix of the generated Ninja file.
81 "--ninja_suffix=" + config.KatiSuffix() + extraSuffix,
82 // Remove common parts at the beginning of a Ninja file, like build_dir,
84 // times, with generated Ninja files combined in a single invocation
86 "--no_ninja_prelude",
87 // Support declaring phony outputs in AOSP Ninja.
88 "--use_ninja_phony_output",
89 // Support declaring symlink outputs in AOSP Ninja.
90 "--use_ninja_symlink_outputs",
91 // Regenerate the Ninja file if environment inputs have changed. e.g.
94 "--regen",
95 // Skip '-include' directives starting with the specified path. Used to
97 "--ignore_optional_include=" + filepath.Join(config.OutDir(), "%.P"),
99 "--detect_android_echo",
100 // Colorful ANSI-based warning and error messages.
101 "--color_warnings",
103 "--gen_all_targets",
104 // Use the built-in emulator of GNU find for better file finding
106 "--use_find_emulator",
108 "--werror_find_emulator",
109 // Do not provide any built-in rules.
110 "--no_builtin_rules",
112 "--werror_suffix_rules",
114 "--werror_real_to_phony",
115 // Makes real_to_phony checks assume that any top-level or leaf
117 "--top_level_phony",
119 "--werror_phony_looks_real",
120 // Fail when writing to a read-only directory.
121 "--werror_writable",
124 "--kati_stats",
127 // Generate a minimal Ninja file.
131 // These can result in generating Ninja files reaching ~1GB or more,
134 // Since we don't care about executing the Ninja files in these test cases,
135 // generating the Ninja file content wastes time, so skip writing any
136 // information out with --empty_ninja_file.
140 args = append(args, "--empty_ninja_file")
145 args = append(args, "--default_pool=local_pool")
163 // Pass on various build environment metadata to Kati.
191 ctx.BeginTrace(metrics.RunKati, "kati build")
196 "--writable", config.OutDir() + "/",
200 "--werror_implicit_rules",
201 // Entry point for the Kati Ninja file generation.
202 "-f", "build/make/core/main.mk",
207 args = append(args, "--werror_overriding_commands")
222 // the dist.mk file, containing dist-for-goals data.
227 // compress and dist the main build ninja file.
236 // build with BUILD_COPY_HEADERS and LOCAL_COPY_HEADERS.
262 // headers in the current build.
282 // in the current build.
287 // We shouldn't be removing files from one side of the two-step asan builds
300 // Generate the Ninja file containing the packaging command lines for the dist
308 "--writable", config.DistDir() + "/",
310 "--werror_implicit_rules",
312 "--werror_overriding_commands",
314 "-f", "build/make/packaging/main.mk",
316 // the dist.mk file, containing dist-for-goals data.
335 // Build configuration
347 // Compress and dist the packaging Ninja file.
351 // Run Kati on the cleanspec files to clean the build.
358 "--werror_implicit_rules",
360 "--werror_overriding_commands",
362 "-f", "build/make/core/cleanbuild.mk",