diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-08-11 18:17:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-21 13:28:20 (GMT) |
commit | 401269e43b49ce25e247efb1fa3503b32eafa411 (patch) | |
tree | 22065d953c5c7d1b0747911b2f9868b7cd8674a6 /Source/cmGeneratorTarget.cxx | |
parent | 23782171ad900dc6eac6a4b8fa4e44f96ffb94bf (diff) | |
download | CMake-401269e43b49ce25e247efb1fa3503b32eafa411.zip CMake-401269e43b49ce25e247efb1fa3503b32eafa411.tar.gz CMake-401269e43b49ce25e247efb1fa3503b32eafa411.tar.bz2 |
VS: Handle .pfx files explicitly in generator
Teach cmGeneratorTarget to classify .pfx files as package
certificate key files. Teach cmVisualStudio10TargetGenerator
to write them as PackageCertificateKeyFile in .vcxproj files.
Inspired-by: Minmin Gong <minmin.gong@gmail.com>
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 2df259b..9a42ca2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -54,6 +54,7 @@ struct IDLSourcesTag {}; struct ResxTag {}; struct ModuleDefinitionFileTag {}; struct AppManifestTag{}; +struct CertificatesTag{}; #if !defined(_MSC_VER) || _MSC_VER >= 1310 template<typename Tag, typename OtherTag> @@ -200,6 +201,10 @@ struct TagVisitor { DoAccept<IsSameTag<Tag, AppManifestTag>::Result>::Do(this->Data, sf); } + else if (ext == "pfx") + { + DoAccept<IsSameTag<Tag, CertificatesTag>::Result>::Do(this->Data, sf); + } else if(this->Header.find(sf->GetFullPath().c_str())) { DoAccept<IsSameTag<Tag, HeaderSourcesTag>::Result>::Do(this->Data, sf); @@ -443,6 +448,15 @@ cmGeneratorTarget } //---------------------------------------------------------------------------- +void +cmGeneratorTarget +::GetCertificates(std::vector<cmSourceFile const*>& data, + const std::string& config) const +{ + IMPLEMENT_VISIT(Certificates); +} + +//---------------------------------------------------------------------------- bool cmGeneratorTarget::IsSystemIncludeDirectory(const std::string& dir, const std::string& config) const { |