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

Unified Diff: tools/gn/ninja_binary_target_writer.cc

Issue 406453002: Hook up symbol files to the Windows GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 6 years, 5 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/function_toolchain.cc ('k') | tools/gn/path_output.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/ninja_binary_target_writer.cc
diff --git a/tools/gn/ninja_binary_target_writer.cc b/tools/gn/ninja_binary_target_writer.cc
index 9cfbdfb4fe0a553aacc9d63327a8f8aefcc72267..c5a7ad16b5a7581e18d4cbc43baf7a47784c4936 100644
--- a/tools/gn/ninja_binary_target_writer.cc
+++ b/tools/gn/ninja_binary_target_writer.cc
@@ -125,7 +125,16 @@ void NinjaBinaryTargetWriter::WriteCompilerVars() {
#undef WRITE_FLAGS
+ // Write some variables about the target for the toolchain definition to use.
+ out_ << "target_name = " << target_->label().name() << std::endl;
+ out_ << "target_out_dir = ";
+ path_output_.WriteDir(out_, helper_.GetTargetOutputDir(target_),
+ PathOutput::DIR_NO_LAST_SLASH);
out_ << std::endl;
+ out_ << "root_out_dir = ";
+ path_output_.WriteDir(out_, target_->settings()->toolchain_output_subdir(),
+ PathOutput::DIR_NO_LAST_SLASH);
+ out_ << std::endl << std::endl;
}
void NinjaBinaryTargetWriter::WriteSources(
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/path_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698