76 if (platform::windows)
80 wxDir icc_dir(
_T(
"C:\\Program Files\\Intel\\Compiler\\C++"));
103 iccEnvVar =
_T(
"ICPP_COMPILER");
111 iccEnvVar.
Printf(
wxT(
"ICPP_COMPILER%d0"), version);
125 bool msvcFound =
false;
126 for (
unsigned int which_msvc = 0; which_msvc < array_size(msvcIds); ++which_msvc)
151 for (
size_t i = 0; i < vcExtraPaths.
GetCount(); ++i)
160 for (
size_t i = 0; i < vcIncludeDirs.
GetCount(); ++i)
172 for (
size_t i = 0; i < vcLibDirs.
GetCount(); ++i)
196 cbMessageBox(
_T(
"It seems your computer doesn't have a MSVC compiler installed.\n\n" 197 "The ICC compiler requires MSVC for proper functioning and\n" 198 "it may not work without it."),
207 wxDir icc_dir(
_T(
"/opt/intel/cc"));
264 if (platform::windows)
289 path =
_T(
"/opt/intel/idb/9.0");
292 wxDir icc_debug_dir(
_T(
"/opt/intel/idb"));
297 icc_debug_dir.
Traverse(IccDebugDirTraverser);
301 debug_dirs.
Sort(
true);
302 path = debug_dirs[0];
wxString AfterLast(wxUniChar ch) const
bool wxGetEnv(const wxString &var, wxString *value)
virtual const wxString & GetMasterPath() const
Get the compiler's master path (must contain "bin", "include" and "lib")
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
bool wxFileExists(const wxString &filename)
int Index(const wxString &sz, bool bCase=true, bool bFromEnd=false) const
wxArrayString m_ResIncludeDirs
wxIccDirTraverser(wxArrayString &folders)
bool wxDirExists(const wxString &dirname)
static Compiler * GetCompiler(size_t index)
virtual void Reset()
Reset settings to defaults.
virtual void AddIncludeDir(const wxString &option)
CompilerPrograms m_Programs
virtual Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.
wxUSE_UNICODE_dependent wxChar
size_t Traverse(wxDirTraverser &sink, const wxString &filespec=wxEmptyString, int flags=wxDIR_DEFAULT) const
virtual void AddResourceIncludeDir(const wxString &option)
bool Contains(const wxString &str) const
void Insert(wxString lItem, size_t nIndex, size_t copies=1)
virtual void AddLibDir(const wxString &option)
virtual const CompilerPrograms & GetPrograms() const
Get the compiler's programs.
static wxUniChar GetPathSeparator(wxPathFormat format=wxPATH_NATIVE)
MacrosManager * GetMacrosManager() const
const wxString & _(const wxString &string)
void ReplaceMacros(wxString &buffer, ProjectBuildTarget *target=nullptr, bool subrequest=false)
virtual const wxArrayString & GetIncludeDirs() const
Abstract base class for compilers.
wxDirTraverseResult OnFile(const wxString &WXUNUSED(filename)) override
wxString & Append(const char *psz)
wxDirTraverseResult OnDir(const wxString &dirname) override
virtual const wxArrayString & GetLibDirs() const
bool EndsWith(const wxString &suffix, wxString *rest=NULL) const
size_t Add(const wxString &str, size_t copies=1)
void Sort(bool reverseOrder=false)
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.
int Printf(const wxString &pszFormat,...)
wxArrayString m_IncludeDirs
static wxString Format(const wxString &format,...)
DLLIMPORT int cbMessageBox(const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
wxMessageBox wrapper.