VS: Add .sln "Deploy" mark for WindowsPhone and WindowsStore binaries

This commit is contained in:
Gilles Khouzam 2014-07-29 11:43:19 -04:00 committed by Brad King
parent 2074f58138
commit 72395ab23e
2 changed files with 17 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;