11 #ifdef __WXMSW__ // for wxRegKey 73 if (value ==
wxT(
"master"))
75 else if (value ==
wxT(
"extra"))
77 else if (value ==
wxT(
"include"))
79 else if (value ==
wxT(
"resource"))
81 else if (value ==
wxT(
"lib"))
103 for (
size_t i = 0; i < pathArray.
GetCount(); ++i)
111 ||
wxFileExists(pathArray[i] + wxFILE_SEP_PATH +
wxT(
"bin") + wxFILE_SEP_PATH + targ)) )
113 if (
AddPath(pathArray[i] + wxFILE_SEP_PATH +
wxT(
"bin"), sm))
128 wxFileExists(path + wxFILE_SEP_PATH +
wxT(
"bin") + wxFILE_SEP_PATH + targ)))
136 AddPath(value + wxFILE_SEP_PATH +
wxT(
"bin"), sm);
148 if (re.Matches(file.
GetLine(i)))
157 #ifdef __WXMSW__ // for wxRegKey 192 else if (child->
GetName() ==
wxT(
"separator"))
193 path << wxFILE_SEP_PATH;
267 for (
int i = rmDirs; i > 0; --i)
bool AddPath(const wxString &pth, SearchMode sm, int rmDirs=0)
wxString AfterLast(wxUniChar ch) const
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
bool EvalXMLCondition(const wxXmlNode *node)
bool wxGetEnv(const wxString &var, wxString *value)
wxXmlNode * GetRoot() const
bool GetAttribute(const wxString &attrName, wxString *value) const
bool wxFileExists(const wxString &filename)
int Index(const wxString &sz, bool bCase=true, bool bFromEnd=false) const
wxArrayString m_ResIncludeDirs
bool wxDirExists(const wxString &dirname)
virtual void Reset()
Reset settings to defaults.
virtual void AddIncludeDir(const wxString &option)
size_t GetLineCount() const
wxString BeforeLast(wxUniChar ch, wxString *rest=NULL) const
bool QueryValue(const wxString &szValue, wxString &strValue, bool raw) const
wxXmlNode * GetParent() const
virtual Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.
CompilerPrograms m_Programs
const wxString & GetName() const
const wxString & GetContent() const
wxXmlNode * GetNext() const
const wxString & GetID() const
Get this compiler's unique ID.
virtual void AddResourceIncludeDir(const wxString &option)
wxXmlNodeType GetType() const
const wxString & wxGetTranslation(const wxString &string, const wxString &domain=wxEmptyString)
virtual void AddLinkLib(const wxString &option)
virtual void AddCompilerOption(const wxString &option)
virtual void AddLibDir(const wxString &option)
bool wxIsWild(const wxString &pattern)
wxXmlNode * GetChildren() const
wxString GetExecName(const wxString &name)
wxString & Trim(bool fromRight=true)
int wxAtoi(const wxString &str)
Abstract base class for compilers.
wxString wxFindFirstFile(const wxString &spec, int flags=0)
wxString GetPath(int flags=wxPATH_GET_VOLUME, wxPathFormat format=wxPATH_NATIVE) const
wxString & GetLine(size_t n)
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.
size_t Add(const wxString &str, size_t copies=1)
CompilerXML(const wxString &name, const wxString &ID, const wxString &file)
bool Normalize(int flags=wxPATH_NORM_ALL, const wxString &cwd=wxEmptyString, wxPathFormat format=wxPATH_NATIVE)
bool Open(AccessMode mode=Write)
virtual bool Load(const wxString &filename, const wxString &encoding="UTF-8", int flags=wxXMLDOC_NONE)
virtual void AddLinkerOption(const wxString &option)
bool wxSetEnv(const wxString &var, const wxString &value)
void SetName(const wxString &strKey)
wxArrayString m_IncludeDirs