Code::Blocks  SVN r11506
Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
CompileTargetBase Class Reference

Base class for build target classes Each Code::Blocks project consists of at least one target. More...

#include <compiletargetbase.h>

Inheritance diagram for CompileTargetBase:
Collaboration diagram for CompileTargetBase:

Public Member Functions

 CompileTargetBase ()
 
 ~CompileTargetBase () override
 
virtual void SetTargetFilenameGenerationPolicy (TargetFilenameGenerationPolicy prefix, TargetFilenameGenerationPolicy extension)
 A target's filename can either be auto-generated based on the running platform, or completely specified by the user. More...
 
virtual void GetTargetFilenameGenerationPolicy (TargetFilenameGenerationPolicy &prefixOut, TargetFilenameGenerationPolicy &extensionOut) const
 
virtual const wxStringGetFilename () const
 
virtual const wxStringGetTitle () const
 Read the target's title. More...
 
virtual void SetTitle (const wxString &title)
 Set the target's title. More...
 
virtual void SetOutputFilename (const wxString &filename)
 Set the target's output filename. More...
 
virtual void SetImportLibraryFilename (const wxString &filename)
 Set the target's import library filename. More...
 
virtual void SetDefinitionFileFilename (const wxString &filename)
 Set the target's definition file filename. More...
 
virtual void SetWorkingDir (const wxString &dirname)
 Set the target's working dir on execution (valid only for executable targets) More...
 
virtual void SetObjectOutput (const wxString &dirname)
 Set the target's objects output dir. More...
 
virtual void SetDepsOutput (const wxString &dirname)
 Set the target's dependencies output dir. More...
 
virtual OptionsRelation GetOptionRelation (OptionsRelationType type) const
 Read the target's options relation for type. More...
 
virtual void SetOptionRelation (OptionsRelationType type, OptionsRelation rel)
 Set the target's options relation for type to rel. More...
 
virtual wxString GetWorkingDir ()
 Read the target's working dir for execution (valid only for executable targets) More...
 
virtual wxString GetObjectOutput () const
 Read the target's objects output dir. More...
 
virtual wxString GetDepsOutput () const
 Read the target's dependencies output dir. More...
 
virtual wxString GetOutputFilename ()
 Read the target's output filename. More...
 
virtual wxString SuggestOutputFilename ()
 Suggest a filename based on the target's type. More...
 
virtual wxString GetExecutableFilename () const
 Read the target's executable filename (produced if target type is ttExecutable) More...
 
virtual wxString GetDynamicLibFilename ()
 Read the target's dynamic library filename (produced if target type is ttDynamicLib) More...
 
virtual wxString GetDynamicLibImportFilename ()
 Read the target's dynamic library import filename (produced if target type is ttDynamicLib) More...
 
virtual wxString GetDynamicLibDefFilename ()
 Read the target's dynamic library definition file filename (produced if target type is ttDynamicLib) More...
 
virtual wxString GetStaticLibFilename ()
 Read the target's static library filename (produced if target type is ttStaticLib) More...
 
virtual wxString GetNativeFilename ()
 Read the target's native filename (produced if target type is ttNative) More...
 
virtual wxString GetBasePath () const
 Read the target's base path, e.g. if GetFilename() returns "/usr/local/bin/xxx", base path will return "/usr/local/bin". More...
 
virtual void SetTargetType (TargetType pt)
 Set the target's type to pt. More...
 
virtual TargetType GetTargetType () const
 Read the target's type. More...
 
virtual const wxStringGetExecutionParameters () const
 Read the target's execution parameters. More...
 
virtual void SetExecutionParameters (const wxString &params)
 Set the target's execution parameters to params. More...
 
virtual const wxStringGetHostApplication () const
 Read the target's host application. More...
 
virtual void SetHostApplication (const wxString &app)
 Set the target's host application to app. More...
 
virtual bool GetRunHostApplicationInTerminal () const
 Get the flag if the host app should be run in terminal. More...
 
virtual void SetRunHostApplicationInTerminal (bool in_terminal)
 
virtual void SetCompilerID (const wxString &id)
 ! Set the flag if the host app should be run in terminal More...
 
virtual const wxStringGetCompilerID () const
 Read the target's compiler. More...
 
virtual wxString GetMakeCommandFor (MakeCommand cmd) const
 Get the "make" command used for cmd. More...
 
virtual void SetMakeCommandFor (MakeCommand cmd, const wxString &make)
 Set the "make" command used for cmd. More...
 
virtual bool MakeCommandsModified () const
 True if any of the "make" commands is modified. More...
 
- Public Member Functions inherited from CompileOptionsBase
 CompileOptionsBase ()
 
virtual ~CompileOptionsBase ()
 
virtual void AddPlatform (int platform)
 
virtual void RemovePlatform (int platform)
 
virtual void SetPlatforms (int platforms)
 
virtual int GetPlatforms () const
 
virtual bool SupportsCurrentPlatform () const
 
virtual void SetLinkerOptions (const wxArrayString &linkerOpts)
 
virtual const wxArrayStringGetLinkerOptions () const
 
virtual void AddLinkerOption (const wxString &option)
 
virtual void ReplaceLinkerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveLinkerOption (const wxString &option)
 
virtual void SetLinkLibs (const wxArrayString &linkLibs)
 
virtual const wxArrayStringGetLinkLibs () const
 
virtual void AddLinkLib (const wxString &option)
 
virtual void ReplaceLinkLib (const wxString &option, const wxString &new_option)
 
virtual void RemoveLinkLib (const wxString &option)
 
virtual void SetCompilerOptions (const wxArrayString &compilerOpts)
 
virtual const wxArrayStringGetCompilerOptions () const
 
virtual void AddCompilerOption (const wxString &option)
 
virtual void ReplaceCompilerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveCompilerOption (const wxString &option)
 
virtual void SetResourceCompilerOptions (const wxArrayString &resourceCompilerOpts)
 
virtual const wxArrayStringGetResourceCompilerOptions () const
 
virtual void AddResourceCompilerOption (const wxString &option)
 
virtual void ReplaceResourceCompilerOption (const wxString &option, const wxString &new_option)
 
virtual void RemoveResourceCompilerOption (const wxString &option)
 
virtual void SetIncludeDirs (const wxArrayString &includeDirs)
 
virtual const wxArrayStringGetIncludeDirs () const
 
virtual void AddIncludeDir (const wxString &option)
 
virtual void ReplaceIncludeDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveIncludeDir (const wxString &option)
 
virtual void SetResourceIncludeDirs (const wxArrayString &resIncludeDirs)
 
virtual const wxArrayStringGetResourceIncludeDirs () const
 
virtual void AddResourceIncludeDir (const wxString &option)
 
virtual void ReplaceResourceIncludeDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveResourceIncludeDir (const wxString &option)
 
virtual void SetLibDirs (const wxArrayString &libDirs)
 
virtual const wxArrayStringGetLibDirs () const
 
virtual void AddLibDir (const wxString &option)
 
virtual void ReplaceLibDir (const wxString &option, const wxString &new_option)
 
virtual void RemoveLibDir (const wxString &option)
 
virtual void SetCommandsBeforeBuild (const wxArrayString &commands)
 
virtual const wxArrayStringGetCommandsBeforeBuild () const
 
virtual void AddCommandsBeforeBuild (const wxString &command)
 
virtual void RemoveCommandsBeforeBuild (const wxString &command)
 
virtual void SetCommandsAfterBuild (const wxArrayString &commands)
 
virtual const wxArrayStringGetCommandsAfterBuild () const
 
virtual void AddCommandsAfterBuild (const wxString &command)
 
virtual void RemoveCommandsAfterBuild (const wxString &command)
 
virtual void SetBuildScripts (const wxArrayString &scripts)
 
virtual const wxArrayStringGetBuildScripts () const
 
virtual void AddBuildScript (const wxString &script)
 
virtual void RemoveBuildScript (const wxString &script)
 
virtual bool GetModified () const
 
virtual void SetModified (bool modified)
 
virtual bool GetAlwaysRunPostBuildSteps () const
 
virtual void SetAlwaysRunPostBuildSteps (bool always)
 
virtual bool SetVar (const wxString &key, const wxString &value, bool onlyIfExists=false)
 
virtual bool UnsetVar (const wxString &key)
 
virtual void UnsetAllVars ()
 
virtual bool HasVar (const wxString &key) const
 
virtual const wxStringGetVar (const wxString &key) const
 
virtual const StringHash & GetAllVars () const
 

Protected Attributes

wxString m_Filename
 
wxString m_Title
 
wxString m_OutputFilename
 
wxString m_ImportLibraryFilename
 
wxString m_DefinitionFileFilename
 
wxString m_WorkingDir
 
wxString m_ObjectOutput
 
wxString m_DepsOutput
 
wxString m_ExecutionParameters
 
wxString m_HostApplication
 
OptionsRelation m_OptionsRelation [ortLast]
 
TargetType m_TargetType
 
wxString m_CompilerId
 
wxString m_MakeCommands [mcLast]
 
bool m_MakeCommandsModified
 
bool m_RunHostApplicationInTerminal
 
TargetFilenameGenerationPolicy m_PrefixGenerationPolicy
 
TargetFilenameGenerationPolicy m_ExtensionGenerationPolicy
 
- Protected Attributes inherited from CompileOptionsBase
int m_Platform
 
wxArrayString m_LinkerOptions
 
wxArrayString m_LinkLibs
 
wxArrayString m_CompilerOptions
 
wxArrayString m_ResourceCompilerOptions
 
wxArrayString m_IncludeDirs
 
wxArrayString m_ResIncludeDirs
 
wxArrayString m_LibDirs
 
wxArrayString m_CmdsBefore
 
wxArrayString m_CmdsAfter
 
wxArrayString m_Scripts
 
bool m_Modified
 
bool m_AlwaysRunPostCmds
 
StringHash m_Vars
 

Private Member Functions

void GenerateTargetFilename (wxString &filename) const
 

Friends

class cbProject
 

Detailed Description

Base class for build target classes Each Code::Blocks project consists of at least one target.

Each target has different settings, e.g.:

Definition at line 77 of file compiletargetbase.h.

Constructor & Destructor Documentation

◆ CompileTargetBase()

CompileTargetBase::CompileTargetBase ( )

◆ ~CompileTargetBase()

CompileTargetBase::~CompileTargetBase ( )
override

Definition at line 46 of file compiletargetbase.cpp.

Member Function Documentation

◆ GenerateTargetFilename()

void CompileTargetBase::GenerateTargetFilename ( wxString filename) const
private

◆ GetBasePath()

wxString CompileTargetBase::GetBasePath ( ) const
virtual

Read the target's base path, e.g. if GetFilename() returns "/usr/local/bin/xxx", base path will return "/usr/local/bin".

Definition at line 464 of file compiletargetbase.cpp.

References _T, wxFileName::GetPath(), wxString::IsEmpty(), and m_Filename.

Referenced by NativeParser::AddCompilerDirs(), cbProject::AddFile(), CompilerGCC::AddOutputLine(), cbProject::CalculateCommonTopLevelPath(), cbProject::cbProject(), DirectCommands::DirectCommands(), ProjectManager::DoAddFileToProject(), CompilerCommandGenerator::DoBuildScripts(), DebuggerGDB::DoDebug(), NativeParser::DoFullParsing(), cbEditor::DoInitializations(), ProjectLoader::DoUnits(), ProjectLoader::ExportTargetAsProject(), FindReplaceDlg::FindReplaceDlg(), CDB_driver::GetCommonCommandLine(), cbDebuggerPlugin::GetDebuggee(), GetDepsOutput(), cbProject::GetExecutionDir(), cbProject::GetFileByFilename(), cbProject::GetMakefile(), cbProject::GetMakefileExecutionDir(), GetObjectOutput(), CompilerCommandGenerator::GetOrderedIncludeDirs(), CompilerCommandGenerator::GetOrderedLibrariesDirs(), DirectCommands::GetTargetLinkCommands(), CompilerCommandGenerator::Init(), ProjectOptionsDlg::IsScriptValid(), CCOptionsProjectDlg::OnAdd(), DebuggerOptionsProjectDlg::OnAdd(), CompilerOptionsDlg::OnAddDirClick(), ProjectManagerUI::OnAddFilesToProjectRecursively(), ProjectManagerUI::OnAddFileToProject(), CompilerOptionsDlg::OnAddLibClick(), ProjectOptionsDlg::OnAddScript(), ProjectOptionsDlg::OnBrowseDefinitionFileFilenameClick(), ProjectOptionsDlg::OnBrowseDirClick(), ProjectOptionsDlg::OnBrowseImportLibraryFilenameClick(), ProjectOptionsDlg::OnBrowseOutputFilenameClick(), FilePathPanel::OnbtnBrowseClick(), CompilerGCC::OnCompileFileRequest(), CCOptionsProjectDlg::OnEdit(), DebuggerOptionsProjectDlg::OnEdit(), CompilerOptionsDlg::OnEditDirClick(), CompilerOptionsDlg::OnEditLibClick(), MainFrame::OnFileNewWhat(), ClassBrowser::OnJumpTo(), DisassemblyDlg::OnSave(), ClassBrowser::OnTreeItemDoubleClick(), MacrosManager::RecalcVars(), ScriptBindings::RegisterBindings(), MacrosManager::ReplaceMacros(), Wiz::RunProjectWizard(), EditorManager::SwapActiveHeaderSource(), cbDebuggerPlugin::SyncEditor(), and pfDetails::Update().

◆ GetCompilerID()

virtual const wxString& CompileTargetBase::GetCompilerID ( ) const
inlinevirtual

Read the target's compiler.

Definition at line 145 of file compiletargetbase.h.

Referenced by cbProject::AddBuildTarget(), NativeParser::AddCompilerDirs(), NativeParser::AddCompilerPredefinedMacros(), cbProject::AddFile(), NativeParser::AddProjectDefinedMacros(), DirectCommands::AreExternalDepsOutdated(), CompilerGCC::BuildStateManagement(), cbGetDynamicLinkerPathForTarget(), EditorManager::CollectDefines(), CompilerGCC::CompileFileDefault(), CompilerOptionsDlg::CompilerOptionsDlg(), ProjectLoader::DoBuildTargetOptions(), CompilerGCC::DoCleanWithMake(), DebuggerGDB::DoDebug(), ProjectLoader::ExportTargetAsProject(), ProjectFileOptionsDlg::FillCompilers(), DebuggerManager::FindTargetsDebugger(), CompilerCommandGenerator::GenerateCommandLine(), DirectCommands::GetCompileFileCommand(), CompilerGCC::GetCurrentCompilerID(), CompilerGCC::GetMakeCommandFor(), DirectCommands::GetPostBuildCommands(), DirectCommands::GetPreBuildCommands(), DirectCommands::GetTargetCleanCommands(), DirectCommands::GetTargetLinkCommands(), CompilerCommandGenerator::Init(), DirectCommands::IsObjectOutdated(), TemplateManager::NewProjectFromUserTemplate(), CompilerGCC::OnCleanFile(), ProjectOptionsDlg::OnProjectTypeChanged(), CompilerOptionsDlg::OnTreeSelectionChange(), CompilerOptionsDlg::ProjectTargetCompilerAdjust(), MacrosManager::RecalcVars(), ScriptBindings::RegisterBindings(), CompilerGCC::Run(), Wiz::RunTargetWizard(), cbProject::SetCompilerID(), ProjectFile::SetObjName(), pfDetails::Update(), and CompilerGCC::UseMake().

◆ GetDepsOutput()

wxString CompileTargetBase::GetDepsOutput ( ) const
virtual

◆ GetDynamicLibDefFilename()

wxString CompileTargetBase::GetDynamicLibDefFilename ( )
virtual

◆ GetDynamicLibFilename()

wxString CompileTargetBase::GetDynamicLibFilename ( )
virtual

◆ GetDynamicLibImportFilename()

wxString CompileTargetBase::GetDynamicLibImportFilename ( )
virtual

◆ GetExecutableFilename()

wxString CompileTargetBase::GetExecutableFilename ( ) const
virtual

◆ GetExecutionParameters()

const wxString & CompileTargetBase::GetExecutionParameters ( ) const
virtual

◆ GetFilename()

const wxString & CompileTargetBase::GetFilename ( ) const
virtual

◆ GetHostApplication()

const wxString & CompileTargetBase::GetHostApplication ( ) const
virtual

◆ GetMakeCommandFor()

virtual wxString CompileTargetBase::GetMakeCommandFor ( MakeCommand  cmd) const
inlinevirtual

◆ GetNativeFilename()

wxString CompileTargetBase::GetNativeFilename ( )
virtual

◆ GetObjectOutput()

wxString CompileTargetBase::GetObjectOutput ( ) const
virtual

◆ GetOptionRelation()

OptionsRelation CompileTargetBase::GetOptionRelation ( OptionsRelationType  type) const
virtual

◆ GetOutputFilename()

wxString CompileTargetBase::GetOutputFilename ( )
virtual

◆ GetRunHostApplicationInTerminal()

bool CompileTargetBase::GetRunHostApplicationInTerminal ( ) const
virtual

Get the flag if the host app should be run in terminal.

Definition at line 517 of file compiletargetbase.cpp.

References m_RunHostApplicationInTerminal.

Referenced by ProjectLoader::ExportTargetAsProject(), ProjectBuildTarget::GetUseConsoleRunner(), CompilerGCC::Run(), and SelectTargetDlg::SelectTargetDlg().

◆ GetStaticLibFilename()

wxString CompileTargetBase::GetStaticLibFilename ( )
virtual

◆ GetTargetFilenameGenerationPolicy()

void CompileTargetBase::GetTargetFilenameGenerationPolicy ( TargetFilenameGenerationPolicy prefixOut,
TargetFilenameGenerationPolicy extensionOut 
) const
virtual

◆ GetTargetType()

TargetType CompileTargetBase::GetTargetType ( ) const
virtual

◆ GetTitle()

const wxString & CompileTargetBase::GetTitle ( ) const
virtual

Read the target's title.

Definition at line 71 of file compiletargetbase.cpp.

References m_Title.

Referenced by ProjectManager::AddProjectDependency(), NativeParser::AddProjectToParser(), DirectCommands::AreExternalDepsOutdated(), ProjectManagerUI::AskForBuildTargetIndex(), ProjectManagerUI::AskForMultiBuildTargetIndex(), CodeBlocksApp::BatchJob(), CompilerGCC::Build(), ProjectManagerUI::BuildProjectTree(), ProjectOptionsDlg::BuildScriptsTree(), CompilerGCC::CalculateProjectDependencies(), VirtualBuildTargetsDlg::CheckTargets(), CompilerGCC::Clean(), ProjectManager::ClearProjectDependencies(), DirectCommands::CompileFile(), CompilerGCC::CompileFileDefault(), ProjectLoader::ConvertVersion_Pre_1_1(), NativeParser::CreateParser(), NativeParser::DeleteParser(), ProjectManager::DoAddFileToProject(), ProjectOptionsDlg::DoBeforeTargetChange(), ProjectLoader::DoBuildTargetOptions(), ProjectOptionsDlg::DoCheckScripts(), DebuggerGDB::DoDebug(), CompilerOptionsDlg::DoFillTree(), NativeParser::DoFullParsing(), CompilerOptionsDlg::DoLoadOptions(), ProjectOptionsDlg::DoTargetChange(), ProjectLoader::DoUnitOptions(), MainFrame::DoUpdateAppTitle(), ProjectFile::DoUpdateFileDetails(), CompilerGCC::DoWorkspaceBuild(), cbProject::DuplicateBuildTarget(), ProjectLoader::ExportTargetAsProject(), cbProject::ExportTargetAsProject(), FilePathPanel::FilePathPanel(), ProjectOptionsDlg::FillBuildTargets(), ProjectDepsDlg::FillList(), FindReplace::FindInFiles(), FindReplaceDlg::FindReplaceDlg(), DebuggerManager::FindTargetsDebugger(), getBuildTargetName(), MainFrame::GetEditorDescription(), cbProject::GetFirstValidBuildTargetName(), ProjectBuildTarget::GetFullTitle(), CompilerGCC::GetMakeCommandFor(), DirectCommands::GetPostBuildCommands(), DirectCommands::GetPreBuildCommands(), DirectCommands::GetProjectFilesSortedByWeight(), FindReplaceDlg::GetTarget(), CompilerGCC::GetTargetIndexFromName(), DirectCommands::GetTargetLinkCommands(), cbProject::IndexOfBuildTargetName(), CompilerCommandGenerator::Init(), Parser::OnAllThreadsDone(), ProjectOptionsDlg::OnBuildOrderClick(), ProjectOptionsDlg::OnCopyBuildTargetClick(), CompilerOptionsDlg::OnCopyDirsClick(), CompilerOptionsDlg::OnCopyLibsClick(), ProjectOptionsDlg::OnCreateImportFileClick(), ProjectOptionsDlg::OnEditBuildTargetClick(), ProjectOptionsDlg::OnExportTargetClick(), ProjectOptionsDlg::OnFileMarkOffClick(), ProjectOptionsDlg::OnFileMarkOnClick(), ProjectOptionsDlg::OnFileToggleMarkClick(), ProjectManagerUI::OnFindFile(), ProjectManagerUI::OnGotoFile(), NativeParser::OnParserEnd(), NativeParser::OnParserStart(), CompilerGCC::OnProjectCompilerOptions(), ProjectManagerUI::OnProperties(), ProjectManagerUI::OnRemoveFileFromProject(), DisassemblyDlg::OnSave(), FindReplaceDlg::OnSearchProject(), FindReplaceDlg::OnSelectTarget(), ProjectLoader::Open(), CompilerGCC::PreprocessJob(), CompilerGCC::PrintBanner(), ProjectDepsDlg::ProjectDepsDlg(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ProjectManagerUI::QueryCloseProject(), CompilerGCC::Rebuild(), MacrosManager::RecalcVars(), ScriptBindings::RegisterBindings(), cbProject::RemoveBuildTarget(), ProjectManager::RemoveFileFromProject(), ProjectManager::RemoveProjectDependency(), ProjectManager::RemoveProjectFromAllDependencies(), NativeParser::RemoveProjectFromParser(), cbProject::RenameBuildTarget(), FindReplace::ReplaceInFiles(), MacrosManager::ReplaceMacros(), ProjectLayoutLoader::Save(), ProjectDepsDlg::SaveList(), TemplateManager::SaveUserTemplate(), SelectTargetDlg::SelectTargetDlg(), cbEditor::SetProjectFile(), cbProject::SetTitle(), NativeParser::SwitchParser(), cbAuiNotebook::UniqueIdFromTooltip(), pfDetails::Update(), and CompilerGCC::UpdateProjectTargets().

◆ GetWorkingDir()

wxString CompileTargetBase::GetWorkingDir ( )
virtual

◆ MakeCommandsModified()

virtual bool CompileTargetBase::MakeCommandsModified ( ) const
inlinevirtual

True if any of the "make" commands is modified.

Definition at line 148 of file compiletargetbase.h.

Referenced by ProjectLoader::ExportTargetAsProject(), and ScriptBindings::RegisterBindings().

◆ SetCompilerID()

void CompileTargetBase::SetCompilerID ( const wxString id)
virtual

◆ SetDefinitionFileFilename()

void CompileTargetBase::SetDefinitionFileFilename ( const wxString filename)
virtual

◆ SetDepsOutput()

void CompileTargetBase::SetDepsOutput ( const wxString dirname)
virtual

◆ SetExecutionParameters()

void CompileTargetBase::SetExecutionParameters ( const wxString params)
virtual

Set the target's execution parameters to params.

Definition at line 494 of file compiletargetbase.cpp.

References m_ExecutionParameters, and CompileOptionsBase::SetModified().

Referenced by ProjectLoader::DoBuildTargetOptions(), SelectTargetDlg::EndModal(), and ScriptBindings::RegisterBindings().

◆ SetHostApplication()

void CompileTargetBase::SetHostApplication ( const wxString app)
virtual

Set the target's host application to app.

Definition at line 508 of file compiletargetbase.cpp.

References m_HostApplication, and CompileOptionsBase::SetModified().

Referenced by ProjectLoader::DoBuildTargetOptions(), SelectTargetDlg::EndModal(), and ScriptBindings::RegisterBindings().

◆ SetImportLibraryFilename()

void CompileTargetBase::SetImportLibraryFilename ( const wxString filename)
virtual

◆ SetMakeCommandFor()

void CompileTargetBase::SetMakeCommandFor ( MakeCommand  cmd,
const wxString make 
)
virtual

◆ SetObjectOutput()

void CompileTargetBase::SetObjectOutput ( const wxString dirname)
virtual

◆ SetOptionRelation()

void CompileTargetBase::SetOptionRelation ( OptionsRelationType  type,
OptionsRelation  rel 
)
virtual

Set the target's options relation for type to rel.

Definition at line 154 of file compiletargetbase.cpp.

References m_OptionsRelation, and CompileOptionsBase::SetModified().

Referenced by ProjectLoader::DoBuildTargetOptions(), CompilerOptionsDlg::DoSaveOptions(), and ScriptBindings::RegisterBindings().

◆ SetOutputFilename()

void CompileTargetBase::SetOutputFilename ( const wxString filename)
virtual

◆ SetRunHostApplicationInTerminal()

void CompileTargetBase::SetRunHostApplicationInTerminal ( bool  in_terminal)
virtual

◆ SetTargetFilenameGenerationPolicy()

void CompileTargetBase::SetTargetFilenameGenerationPolicy ( TargetFilenameGenerationPolicy  prefix,
TargetFilenameGenerationPolicy  extension 
)
virtual

A target's filename can either be auto-generated based on the running platform, or completely specified by the user.

Calling this function sets the filename generation method.

The filename is divided in 4 parts. Let's see how "Debug/libSomeLib.a"
is divided:
  • the directory part: Debug,
  • the filename's prefix: lib,
  • the base name: SomeLib and
  • the extension: a
Calling this function defines if the prefix and extension are auto-generated or are left as the user specified. So, if the prefix is set to auto-generated (i.e. tgfpPlatformDefault), it would be set depending on the running platform and compiler, e.g.:
  • Windows & GCC: lib
  • Windows & MSVC: <empty>
  • Linux & <*>: lib
The default generation policy is tgfpPlatformDefault for both the prefix and the extension.
Note
The ProjectLoader detects old projects when loaded and, for those, it sets the default generation policy to tgfpNone (i.e. no auto-generation) for both the prefix and the extension. This is done so the user doesn't notice any unexpected behaviour...

Definition at line 51 of file compiletargetbase.cpp.

References m_ExtensionGenerationPolicy, m_PrefixGenerationPolicy, and CompileOptionsBase::SetModified().

Referenced by ProjectOptionsDlg::DoBeforeTargetChange(), ProjectLoader::DoBuildTargetOptions(), and ScriptBindings::RegisterBindings().

◆ SetTargetType()

void CompileTargetBase::SetTargetType ( TargetType  pt)
virtual

◆ SetTitle()

void CompileTargetBase::SetTitle ( const wxString title)
virtual

◆ SetWorkingDir()

void CompileTargetBase::SetWorkingDir ( const wxString dirname)
virtual

◆ SuggestOutputFilename()

wxString CompileTargetBase::SuggestOutputFilename ( )
virtual

Friends And Related Function Documentation

◆ cbProject

friend class cbProject
friend

Definition at line 150 of file compiletargetbase.h.

Member Data Documentation

◆ m_CompilerId

wxString CompileTargetBase::m_CompilerId
protected

◆ m_DefinitionFileFilename

wxString CompileTargetBase::m_DefinitionFileFilename
protected

Definition at line 156 of file compiletargetbase.h.

Referenced by GetDynamicLibDefFilename(), and SetDefinitionFileFilename().

◆ m_DepsOutput

wxString CompileTargetBase::m_DepsOutput
protected

Definition at line 159 of file compiletargetbase.h.

Referenced by GetDepsOutput(), and SetDepsOutput().

◆ m_ExecutionParameters

wxString CompileTargetBase::m_ExecutionParameters
protected

Definition at line 160 of file compiletargetbase.h.

Referenced by GetExecutionParameters(), and SetExecutionParameters().

◆ m_ExtensionGenerationPolicy

TargetFilenameGenerationPolicy CompileTargetBase::m_ExtensionGenerationPolicy
protected

◆ m_Filename

wxString CompileTargetBase::m_Filename
protected

◆ m_HostApplication

wxString CompileTargetBase::m_HostApplication
protected

Definition at line 161 of file compiletargetbase.h.

Referenced by GetHostApplication(), and SetHostApplication().

◆ m_ImportLibraryFilename

wxString CompileTargetBase::m_ImportLibraryFilename
protected

Definition at line 155 of file compiletargetbase.h.

Referenced by GetDynamicLibImportFilename(), and SetImportLibraryFilename().

◆ m_MakeCommands

wxString CompileTargetBase::m_MakeCommands[mcLast]
protected

Definition at line 165 of file compiletargetbase.h.

Referenced by CompileTargetBase(), and SetMakeCommandFor().

◆ m_MakeCommandsModified

bool CompileTargetBase::m_MakeCommandsModified
protected

Definition at line 166 of file compiletargetbase.h.

Referenced by CompileTargetBase(), and SetMakeCommandFor().

◆ m_ObjectOutput

wxString CompileTargetBase::m_ObjectOutput
protected

Definition at line 158 of file compiletargetbase.h.

Referenced by GetObjectOutput(), and SetObjectOutput().

◆ m_OptionsRelation

OptionsRelation CompileTargetBase::m_OptionsRelation[ortLast]
protected

Definition at line 162 of file compiletargetbase.h.

Referenced by CompileTargetBase(), GetOptionRelation(), and SetOptionRelation().

◆ m_OutputFilename

wxString CompileTargetBase::m_OutputFilename
mutableprotected

◆ m_PrefixGenerationPolicy

TargetFilenameGenerationPolicy CompileTargetBase::m_PrefixGenerationPolicy
protected

◆ m_RunHostApplicationInTerminal

bool CompileTargetBase::m_RunHostApplicationInTerminal
protected

◆ m_TargetType

TargetType CompileTargetBase::m_TargetType
protected

◆ m_Title

wxString CompileTargetBase::m_Title
protected

◆ m_WorkingDir

wxString CompileTargetBase::m_WorkingDir
protected

Definition at line 157 of file compiletargetbase.h.

Referenced by GetWorkingDir(), and SetWorkingDir().


The documentation for this class was generated from the following files: