diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-07-29 15:43:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:09:01 (GMT) |
commit | 72395ab23eee5ed7ff5a8800632869d6ef66f805 (patch) | |
tree | d801204034d452e23b7dc3e4f9f382f3c4a4a266 | |
parent | 2074f5813889680d32c784c3dbdb1bf41be1405f (diff) | |
download | CMake-72395ab23eee5ed7ff5a8800632869d6ef66f805.zip CMake-72395ab23eee5ed7ff5a8800632869d6ef66f805.tar.gz CMake-72395ab23eee5ed7ff5a8800632869d6ef66f805.tar.bz2 |
VS: Add .sln "Deploy" mark for WindowsPhone and WindowsStore binaries
-rw-r--r-- | Source/cmGlobalVisualStudio11Generator.cxx | 14 | ||||
-rw-r--r-- | Source/cmGlobalVisualStudio11Generator.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio11Generator.cxx b/Source/cmGlobalVisualStudio11Generator.cxx index 33cfaa1..39bbdc0 100644 --- a/Source/cmGlobalVisualStudio11Generator.cxx +++ b/Source/cmGlobalVisualStudio11Generator.cxx @@ -242,3 +242,17 @@ cmGlobalVisualStudio11Generator::GetInstalledWindowsCESDKs() return ret; } + +//---------------------------------------------------------------------------- +bool +cmGlobalVisualStudio11Generator::NeedsDeploy(cmTarget::TargetType type) const +{ + if((type == cmTarget::EXECUTABLE || + type == cmTarget::SHARED_LIBRARY) && + (this->SystemIsWindowsPhone || + this->SystemIsWindowsStore)) + { + return true; + } + return cmGlobalVisualStudio10Generator::NeedsDeploy(type); +} diff --git a/Source/cmGlobalVisualStudio11Generator.h b/Source/cmGlobalVisualStudio11Generator.h index 0b497db..bbd935c 100644 --- a/Source/cmGlobalVisualStudio11Generator.h +++ b/Source/cmGlobalVisualStudio11Generator.h @@ -41,6 +41,9 @@ protected: virtual const char* GetIDEVersion() { return "11.0"; } bool UseFolderProperty(); static std::set<std::string> GetInstalledWindowsCESDKs(); + + /** Return true if the configuration needs to be deployed */ + virtual bool NeedsDeploy(cmTarget::TargetType type) const; private: class Factory; friend class Factory; |