diff options
Diffstat (limited to 'tools/gn/tool.h')
-rw-r--r-- | tools/gn/tool.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/gn/tool.h b/tools/gn/tool.h index 14a64c1..b9575bc 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_; |