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

Side by Side Diff: tools/gn/ninja_create_bundle_target_writer.cc

Issue 1842563006: DO NOT SUBMIT. Experimental Mac GN Framework support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Binary bundle data Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/substitution_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 out_ << ": " 64 out_ << ": "
65 << GetNinjaRulePrefixForToolchain(settings_) 65 << GetNinjaRulePrefixForToolchain(settings_)
66 << Toolchain::ToolTypeToName(Toolchain::TYPE_COPY_BUNDLE_DATA) 66 << Toolchain::ToolTypeToName(Toolchain::TYPE_COPY_BUNDLE_DATA)
67 << " "; 67 << " ";
68 path_output_.WriteFile(out_, source_file); 68 path_output_.WriteFile(out_, source_file);
69 if (!input_dep.value().empty()) { 69 if (!input_dep.value().empty()) {
70 out_ << " || "; 70 out_ << " || ";
71 path_output_.WriteFile(out_, input_dep); 71 path_output_.WriteFile(out_, input_dep);
72 } 72 }
73 out_ << std::endl; 73 out_ << std::endl;
74 out_ << " binary_compress = "
75 << (file_rule.binary_compress() ? "True" : "False")
76 << std::endl;
74 } 77 }
75 } 78 }
76 79
77 if (!target_->bundle_data().asset_catalog_sources().empty()) { 80 if (!target_->bundle_data().asset_catalog_sources().empty()) {
78 OutputFile output_file( 81 OutputFile output_file(
79 settings_->build_settings(), 82 settings_->build_settings(),
80 target_->bundle_data().GetCompiledAssetCatalogPath()); 83 target_->bundle_data().GetCompiledAssetCatalogPath());
81 output_files.push_back(output_file); 84 output_files.push_back(output_file);
82 85
83 out_ << "build "; 86 out_ << "build ";
(...skipping 22 matching lines...) Expand all
106 if (!input_dep.value().empty()) { 109 if (!input_dep.value().empty()) {
107 out_ << " || "; 110 out_ << " || ";
108 path_output_.WriteFile(out_, input_dep); 111 path_output_.WriteFile(out_, input_dep);
109 } 112 }
110 out_ << std::endl; 113 out_ << std::endl;
111 } 114 }
112 115
113 out_ << std::endl; 116 out_ << std::endl;
114 WriteStampForTarget(output_files, std::vector<OutputFile>()); 117 WriteStampForTarget(output_files, std::vector<OutputFile>());
115 } 118 }
OLDNEW
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/substitution_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698