wxCompilerSettings Class Reference

The compiler settings both global and package-specific. More...

#include <compiler.h>

List of all members.

Public Member Functions

 wxCompilerSettings ()
wxPathList GetCompilerPaths (wxPackageCompilerPathType t) const
wxPackageCompilerFormat GetSelFormat () const
 Returns the currently selected compiler.
void SetSelFormat (wxPackageCompilerFormat newfmt)
 Sets the currently selected compiler.
wxStringHashMap GetOptionsWithDefaults (wxPackageBuildSystemType) const
bool IsValidPathList (const wxPathList &pl) const
wxArrayString GetRequiredToolsList () const
wxString GetToolPath (const wxString &program) const
void UpdateEnvVars ()
void UpdateEnvVar (const wxString &name, wxPackageCompilerPathType t)
wxStringHashMap GetSubstitutionHashMap (wxPackageBuildSystemType t=wxPBST_INVALID) const
bool Load (wxConfigBase *, const wxString &path)
 Loads the selected compiler & build-system from given path.
void Save (wxConfigBase *, const wxString &path) const
 Saves the selected compiler & build-system to given path.

Static Public Member Functions

static wxPathList & GetCompilerPaths (wxPackageCompilerFormat n, wxPackageCompilerPathType t)
 Returns the wxArrayString of the paths for the selected compiler.
static wxPackageCompilerFormat GetDefaultFormat ()
 Returns the default compiler.
static void SetDefaultFormat (wxPackageCompilerFormat newfmt)
 Sets the currently selected compiler.
static bool IsValidPathList (wxPackageCompilerFormat fmt, const wxPathList &)
static wxString GetToolPath (wxPackageCompilerFormat fmt, const wxString &program)
static wxArrayString GetRequiredToolsList (wxPackageCompilerFormat fmt)
static void SetCompilerPaths (wxPackageCompilerFormat n, wxPackageCompilerPathType t, const wxPathList &str)
 Sets the wxArrayString fo the paths for the selected compiler.
static void AddPath (wxPackageCompilerFormat f, wxPackageCompilerPathType t, const wxString &str)
 Adds a path.
static bool LoadGlobals (wxConfigBase *, const wxString &path)
 Loads the compiler paths from given path.
static void SaveGlobals (wxConfigBase *, const wxString &path)
 Saves the compiler paths to given path.

Protected Attributes

wxPackageCompilerFormat s_selFormat
 The selected compiler.

Static Protected Attributes

static wxPathList s_paths [wxPCF_MAX][wxPCPT_MAX]
 The paths for the selected compiler tools.
static wxPackageCompilerFormat s_defaultFormat
 The default compiler.


Detailed Description

The compiler settings both global and package-specific.

Definition at line 127 of file compiler.h.


Member Function Documentation

wxStringHashMap wxCompilerSettings::GetOptionsWithDefaults ( wxPackageBuildSystemType   )  const

Returns an hashmap with the option names + default values for the currently selected compiler & build-system. The returned options are options heavily compiler-dependent whose default values are usually left untouched.

static bool wxCompilerSettings::IsValidPathList ( wxPackageCompilerFormat  fmt,
const wxPathList &   
) [static]

Returns true if all the tools required by currently selected format can be found in the given pathlist.

Referenced by wxCompilerSettingsPanel::InteractiveAutodetectPathsFor().

static wxString wxCompilerSettings::GetToolPath ( wxPackageCompilerFormat  fmt,
const wxString &  program 
) [inline, static]

Returns the absolute path for the given compiler program or an empty string if it could not be found in the selected compiler's paths.

Definition at line 199 of file compiler.h.

Referenced by wxPackageCommand::GetProgramWithPath().

static wxArrayString wxCompilerSettings::GetRequiredToolsList ( wxPackageCompilerFormat  fmt  )  [static]

Returns the wxArrayString of the compiler tools required by the currently selected compiler. NB: the returned list cannot be placed in a static wxString table as the number of required tools is different for different compilers.

void wxCompilerSettings::UpdateEnvVars (  ) 

Updates the PATH, INCLUDE and LIB environment variables of the currently running process adding paths for the selected compiler tools & setting the location of the currently selected wx build.

Referenced by wxExtCmdProgressPanel::OnIdle().

wxStringHashMap wxCompilerSettings::GetSubstitutionHashMap ( wxPackageBuildSystemType  t = wxPBST_INVALID  )  const

Returns the substitution table for format-specific keywords and eventually also some build-system specific keywords in the given string.

Referenced by wxPackage::DoUpdateSubstitutionHashMap().


The documentation for this class was generated from the following files:
Generated on Thu Feb 1 22:14:32 2007 for wxWidgets Package Manager by  doxygen 1.5.1-p1