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

Unified Diff: tools/gn/tool.h

Issue 1207903002: Windows precompiled header support in GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scott's grammar nits Created 5 years, 6 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/test_with_scope.cc ('k') | tools/gn/tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/tool.h
diff --git a/tools/gn/tool.h b/tools/gn/tool.h
index 14a64c1b6df661a353ace812f4a4bee006ab3057..b9575bc40f7ab5430c940fcbc7f7824340f52dec 100644
--- a/tools/gn/tool.h
+++ b/tools/gn/tool.h
@@ -19,6 +19,11 @@ class Tool {
DEPS_MSVC = 1
};
+ enum PrecompiledHeaderType {
+ PCH_NONE = 0,
+ PCH_MSVC = 1
+ };
+
Tool();
~Tool();
@@ -63,6 +68,13 @@ class Tool {
depsformat_ = f;
}
+ PrecompiledHeaderType precompiled_header_type() const {
+ return precompiled_header_type_;
+ }
+ void set_precompiled_header_type(PrecompiledHeaderType pch_type) {
+ precompiled_header_type_ = pch_type;
+ }
+
const SubstitutionPattern& description() const {
return description_;
}
@@ -167,6 +179,7 @@ class Tool {
std::string default_output_extension_;
SubstitutionPattern depfile_;
DepsFormat depsformat_;
+ PrecompiledHeaderType precompiled_header_type_;
SubstitutionPattern description_;
std::string lib_switch_;
std::string lib_dir_switch_;
« no previous file with comments | « tools/gn/test_with_scope.cc ('k') | tools/gn/tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698