Code::Blocks  SVN r11506
Classes | Typedefs | Enumerations
compiler.h File Reference
#include <vector>
#include <map>
#include <wx/string.h>
#include <wx/filename.h>
#include <wx/dynarray.h>
#include <wx/regex.h>
#include "compileoptionsbase.h"
#include "compileroptions.h"
Include dependency graph for compiler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RegExStruct
 
struct  CompilerPrograms
 Struct to keep programs. More...
 
struct  CompilerSwitches
 Struct to keep switches. More...
 
struct  CompilerTool
 Struct for compiler/linker commands. More...
 
class  Compiler
 Abstract base class for compilers. More...
 
struct  Compiler::MirrorSettings
 

Typedefs

typedef std::vector< RegExStructRegExArray
 
typedef std::vector< CompilerToolCompilerToolsVector
 

Enumerations

enum  CompilerLineType { cltNormal = 0, cltWarning, cltError, cltInfo }
 Enum categorizing compiler's output line as warning/error/info/normal. More...
 
enum  CommandType {
  ctCompileObjectCmd = 0, ctGenDependenciesCmd, ctCompileResourceCmd, ctLinkExeCmd,
  ctLinkConsoleExeCmd, ctLinkDynamicCmd, ctLinkStaticCmd, ctLinkNativeCmd,
  ctCount
}
 Helper enum to retrieve compiler commands. More...
 
enum  CompilerLoggingType { clogFull, clogSimple, clogNone }
 Helper enum for type of compiler logging. More...
 
enum  AutoDetectResult { adrDetected, adrGuessed }
 

Class Documentation

◆ CompilerPrograms

struct CompilerPrograms

Struct to keep programs.

Definition at line 197 of file compiler.h.

Collaboration diagram for CompilerPrograms:
Class Members
wxString C
wxString CPP
wxString DBGconfig
wxString LD
wxString LIB
wxString MAKE
wxString WINDRES

◆ Compiler::MirrorSettings

struct Compiler::MirrorSettings

Definition at line 432 of file compiler.h.

Collaboration diagram for Compiler::MirrorSettings:
Class Members
wxArrayString CmdsAfter
wxArrayString CmdsBefore
CompilerToolsVector Commands[ctCount]
wxArrayString CompilerOptions_
wxArrayString ExtraPaths
wxArrayString IncludeDirs
wxArrayString LibDirs
wxArrayString LinkerOptions
wxArrayString LinkLibs
wxString MasterPath
wxString Name
CompilerOptions Options
CompilerPrograms Programs
RegExArray RegExes
wxArrayString ResIncludeDirs
wxArrayString ResourceCompilerOptions
wxString SortOptions[2]
CompilerSwitches Switches

Typedef Documentation

◆ CompilerToolsVector

typedef std::vector<CompilerTool> CompilerToolsVector

Definition at line 267 of file compiler.h.

◆ RegExArray

typedef std::vector<RegExStruct> RegExArray

Definition at line 163 of file compiler.h.

Enumeration Type Documentation

◆ AutoDetectResult

Enumerator
adrDetected 
adrGuessed 

Definition at line 190 of file compiler.h.

◆ CommandType

Helper enum to retrieve compiler commands.

Enumerator
ctCompileObjectCmd 

Compile object command, e.g. "$compiler $options $includes -c $file -o $object".

ctGenDependenciesCmd 

Generate dependencies command.

ctCompileResourceCmd 

Compile Win32 resources command, e.g. "$rescomp -i $file -J rc -o $resource_output -O coff $includes".

ctLinkExeCmd 

Link executable command, e.g. "$linker $libdirs -o $exe_output $link_objects $libs -mwindows".

ctLinkConsoleExeCmd 

Link console executable command, e.g. "$linker $libdirs -o $exe_output $link_objects $libs".

ctLinkDynamicCmd 

Link dynamic (dll) lib command, e.g. "$linker -shared -Wl,--output-def=$def_output -Wl,--out-implib=$static_output -Wl,--dll $libdirs $link_objects $libs -o $dynamic_output".

ctLinkStaticCmd 

Link static lib command, e.g. "ar -r $output $link_objects\n\tranlib $static_output".

ctLinkNativeCmd 

Link native binary command.

ctCount 

Do NOT use.

Definition at line 166 of file compiler.h.

◆ CompilerLineType

Enum categorizing compiler's output line as warning/error/info/normal.

Enumerator
cltNormal 
cltWarning 
cltError 
cltInfo 

Definition at line 66 of file compiler.h.

◆ CompilerLoggingType

Helper enum for type of compiler logging.

Enumerator
clogFull 
clogSimple 
clogNone 

Definition at line 183 of file compiler.h.