OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "tools/gn/ninja_create_bundle_target_writer.h" | 5 #include "tools/gn/ninja_create_bundle_target_writer.h" |
6 | 6 |
7 #include "tools/gn/filesystem_utils.h" | 7 #include "tools/gn/filesystem_utils.h" |
8 #include "tools/gn/ninja_utils.h" | 8 #include "tools/gn/ninja_utils.h" |
9 #include "tools/gn/output_file.h" | 9 #include "tools/gn/output_file.h" |
10 #include "tools/gn/scheduler.h" | 10 #include "tools/gn/scheduler.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 path_output_.WriteFile(out_, source); | 104 path_output_.WriteFile(out_, source); |
105 } | 105 } |
106 if (!input_dep.value().empty()) { | 106 if (!input_dep.value().empty()) { |
107 out_ << " || "; | 107 out_ << " || "; |
108 path_output_.WriteFile(out_, input_dep); | 108 path_output_.WriteFile(out_, input_dep); |
109 } | 109 } |
110 out_ << std::endl; | 110 out_ << std::endl; |
111 } | 111 } |
112 | 112 |
113 out_ << std::endl; | 113 out_ << std::endl; |
114 WriteStampForTarget(output_files, std::vector<OutputFile>()); | 114 |
| 115 std::vector<OutputFile> order_only_deps; |
| 116 for (const auto& pair : target_->data_deps()) |
| 117 order_only_deps.push_back(pair.ptr->dependency_output_file()); |
| 118 WriteStampForTarget(output_files, order_only_deps); |
115 } | 119 } |
OLD | NEW |