-
sdefresne authored
Record the "bundle_data" target corresponding to a BundleFileRule object so that the dependencies can be correctly computed when generating the ninja steps for the "create_bundle" target. Change the "stamp" step of "bundle_data" target in the generated ninja to depends on the target dependencies and source files. Change the "copy_bundle_data" steps of "create_bundle" target in the generated ninja to depends on the "bundle_data" target that defined the corresponding source files. Change the "compile_xcassets" step of "create_bundle" target in the generated ninja to depends on all the "bundle_data" targets that defined the corresponding source files. Change the rule used to determine whether a "bundle_data" source file is part of an assets catalog (some file where incorrectly omitted causing them to be incorrectly copied to the final bundle). All those changes will allow the "copy_bundle_data" and "compile_xcassets" steps to only depends on the targets that generate them (if any) and will reduce the number of file copied into the final bundle during incremental builds. Fix unit tests with new expectations. BUG=623501 Review-Url: https://codereview.chromium.org/2105613003 Cr-Commit-Position: refs/heads/master@{#403304}
4c75ba48