21 :
Compiler(
_(
"Microsoft Visual C++ 2010"),
_T(
"msvc10"))
69 m_MasterPath = Programs +
_T(
"\\Microsoft Visual Studio 10.0\\VC");
70 idepath = Programs + _T(
"\\Microsoft Visual Studio 10.0\\Common7\\IDE");
75 bool sdkfound =
false;
84 key.
SetName(
_T(
"HKEY_CURRENT_USER\\Software\\Microsoft\\Win32SDK\\Directories"));
94 wxString msPsdkKeyName[2] = {
_T(
"HKEY_CURRENT_USER\\Software\\Microsoft\\MicrosoftSDK\\InstalledSDKs"),
95 _T(
"HKEY_CURRENT_USER\\Software\\Microsoft\\Microsoft SDKs\\Windows") };
96 wxString msPsdkKeyValue[2] = {
_T(
"Install Dir"),
_T(
"InstallationFolder") };
97 for (
int i = 0; i < 2; ++i)
114 (subkey.QueryValue(msPsdkKeyValue[i], dir), !dir.
IsEmpty()) &&
133 dir =
wxT(
"C:\\Program Files");
135 dir +=
wxT(
"\\Microsoft SDKs\\Windows\\v");
137 for (
size_t i = 0; i < vers.
GetCount(); ++i)
166 key.
SetName(
_T(
"HKEY_CURRENT_USER\\Software\\Microsoft\\DebuggingTools"));
wxString GetName(bool bShortPrefix=true) const
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
virtual ~CompilerMSVC10()
bool wxGetEnv(const wxString &var, wxString *value)
bool wxFileExists(const wxString &filename)
bool GetFirstKey(wxString &strKeyName, long &lIndex)
bool wxDirExists(const wxString &dirname)
virtual void Reset()
Reset settings to defaults.
virtual void AddIncludeDir(const wxString &option)
bool QueryValue(const wxString &szValue, wxString &strValue, bool raw) const
CompilerPrograms m_Programs
wxString & Remove(size_t pos)
virtual void AddResourceIncludeDir(const wxString &option)
bool AppendDir(const wxString &dir)
virtual void AddLibDir(const wxString &option)
static wxFileName DirName(const wxString &dir, wxPathFormat format=wxPATH_NATIVE)
static wxUniChar GetPathSeparator(wxPathFormat format=wxPATH_NATIVE)
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.
const wxString & _(const wxString &string)
Abstract base class for compilers.
wxString GetPath(int flags=wxPATH_GET_VOLUME, wxPathFormat format=wxPATH_NATIVE) const
bool GetNextKey(wxString &strKeyName, long &lIndex) const
size_t Add(const wxString &str, size_t copies=1)
bool Open(AccessMode mode=Write)
wxUniChar GetChar(size_t n) const
void SetName(const wxString &strKey)
Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.