Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/gn/action_values.cc

Issue 1751903003: Add "bundle_data" target as first step for adding bundle support to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-typos
Patch Set: Rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/bundle_data_target_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/action_values.cc
diff --git a/tools/gn/action_values.cc b/tools/gn/action_values.cc
index 819ead10c8de65456aa58aacb23b2b509706b25e..a7ce83da056447c4b84c85a2b39c55712505d643 100644
--- a/tools/gn/action_values.cc
+++ b/tools/gn/action_values.cc
@@ -15,7 +15,10 @@ ActionValues::~ActionValues() {}
void ActionValues::GetOutputsAsSourceFiles(
const Target* target,
std::vector<SourceFile>* result) const {
- if (target->output_type() == Target::COPY_FILES ||
+ if (target->output_type() == Target::BUNDLE_DATA) {
+ // The bundle_data target has no output, the real output will be generated
+ // by the create_bundle target.
+ } else if (target->output_type() == Target::COPY_FILES ||
target->output_type() == Target::ACTION_FOREACH) {
// Copy and foreach applies the outputs to the sources.
SubstitutionWriter::ApplyListToSources(
« no previous file with comments | « tools/gn/BUILD.gn ('k') | tools/gn/bundle_data_target_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698