diff options
author | brettw <brettw@chromium.org> | 2015-06-29 16:00:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-29 23:01:02 +0000 |
commit | 3dab5fe87ddb0efe646f6ab393ab07533d75237d (patch) | |
tree | 81ca968a3e2cb0bd140cd1de88ad1af8cbab54bd /tools/gn/path_output.cc | |
parent | 6cd7b1a4af16d8d5d81d450edc6ac06105ca8f7e (diff) | |
download | chromium_src-3dab5fe87ddb0efe646f6ab393ab07533d75237d.zip chromium_src-3dab5fe87ddb0efe646f6ab393ab07533d75237d.tar.gz chromium_src-3dab5fe87ddb0efe646f6ab393ab07533d75237d.tar.bz2 |
Windows precompiled header support in GN.
Introduces aprecompiled_header_type flag on a tool to say whether it supports precompiled headers, and flags on configs/targets that allow one to specify which header is precompiled.
This does not implement GCC precompiled headers, but the type flag will allow future expansion (the implementation will be mostly separate).
Renames SOURCE_CC to SOURCE_CPP to avoid confusion with Toolchain::TYPE_CC (which is actually the C compiler).
BUG=297678
Review URL: https://codereview.chromium.org/1207903002
Cr-Commit-Position: refs/heads/master@{#336674}
Diffstat (limited to 'tools/gn/path_output.cc')
-rw-r--r-- | tools/gn/path_output.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gn/path_output.cc b/tools/gn/path_output.cc index 5b333d8..711341f 100644 --- a/tools/gn/path_output.cc +++ b/tools/gn/path_output.cc @@ -83,6 +83,14 @@ void PathOutput::WriteFiles(std::ostream& out, } } +void PathOutput::WriteFiles(std::ostream& out, + const UniqueVector<OutputFile>& files) const { + for (const auto& file : files) { + out << " "; + WriteFile(out, file); + } +} + void PathOutput::WriteDir(std::ostream& out, const OutputFile& file, DirSlashEnding slash_ending) const { |