25 m_RunHostApplicationInTerminal(false),
30 for (
int i = 0; i < static_cast<int>(
ortLast); ++i)
245 filename << fname.
GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
303 filename << fname.
GetName() <<
_T(
".") << Ext;
315 #ifdef command_line_generation 374 #ifdef command_line_generation 384 #ifdef command_line_generation 400 #ifdef command_line_generation 416 #ifdef command_line_generation 438 #ifdef command_line_generation 458 #ifdef command_line_generation 470 wxString base = basePath.
GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
wxString F(const wxChar *msg,...)
sprintf-like function
virtual void SetOptionRelation(OptionsRelationType type, OptionsRelation rel)
Set the target's options relation for type to rel.
virtual void GetTargetFilenameGenerationPolicy(TargetFilenameGenerationPolicy &prefixOut, TargetFilenameGenerationPolicy &extensionOut) const
virtual void SetMakeCommandFor(MakeCommand cmd, const wxString &make)
Set the "make" command used for cmd.
bool Matches(const wxString &mask) const
TargetFilenameGenerationPolicy
A target's filename can either be auto-generated based on the running platform, or completely specifi...
virtual void SetTitle(const wxString &title)
Set the target's title.
virtual void SetObjectOutput(const wxString &dirname)
Set the target's objects output dir.
wxString m_MakeCommands[mcLast]
virtual wxString GetDepsOutput() const
Read the target's dependencies output dir.
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
virtual const wxString & GetExecutionParameters() const
Read the target's execution parameters.
virtual const wxString & GetHostApplication() const
Read the target's host application.
void GenerateTargetFilename(wxString &filename) const
The option uses target options appended to parent options.
const DLLIMPORT wxString NATIVE_DOT_EXT
TargetFilenameGenerationPolicy m_PrefixGenerationPolicy
Target produces an executable.
static Compiler * GetCompiler(size_t index)
wxString m_ImportLibraryFilename
wxString m_DefinitionFileFilename
virtual void SetTargetFilenameGenerationPolicy(TargetFilenameGenerationPolicy prefix, TargetFilenameGenerationPolicy extension)
A target's filename can either be auto-generated based on the running platform, or completely specifi...
const DLLIMPORT wxString DYNAMICLIB_DOT_EXT
virtual void SetExecutionParameters(const wxString ¶ms)
Set the target's execution parameters to params.
wxString m_ExecutionParameters
TargetFilenameGenerationPolicy m_ExtensionGenerationPolicy
virtual void SetImportLibraryFilename(const wxString &filename)
Set the target's import library filename.
virtual wxString GetOutputFilename()
Read the target's output filename.
virtual void SetCompilerID(const wxString &id)
! Set the flag if the host app should be run in terminal
virtual wxString SuggestOutputFilename()
Suggest a filename based on the target's type.
virtual wxString GetStaticLibFilename()
Read the target's static library filename (produced if target type is ttStaticLib) ...
const DLLIMPORT wxString DYNAMICLIB_EXT
virtual bool GetRunHostApplicationInTerminal() const
Get the flag if the host app should be run in terminal.
virtual TargetType GetTargetType() const
Read the target's type.
virtual void SetDefinitionFileFilename(const wxString &filename)
Set the target's definition file filename.
wxString m_OutputFilename
virtual OptionsRelation GetOptionRelation(OptionsRelationType type) const
Read the target's options relation for type.
bool m_RunHostApplicationInTerminal
virtual void SetHostApplication(const wxString &app)
Set the target's host application to app.
DLLIMPORT wxString UnixFilename(const wxString &filename, wxPathFormat format=wxPATH_NATIVE)
virtual const wxString & GetFilename() const
virtual wxString GetDynamicLibImportFilename()
Read the target's dynamic library import filename (produced if target type is ttDynamicLib) ...
virtual void SetOutputFilename(const wxString &filename)
Set the target's output filename.
virtual const wxString & GetTitle() const
Read the target's title.
Target produces a dynamic library.
OptionsRelation
Option's relation.
const DLLIMPORT wxString STATICLIB_EXT
virtual void SetModified(bool modified)
Target produces a native binary.
LogManager * GetLogManager() const
virtual wxString GetBasePath() const
Read the target's base path, e.g. if GetFilename() returns "/usr/local/bin/xxx", base path will retur...
virtual wxString GetWorkingDir()
Read the target's working dir for execution (valid only for executable targets)
static wxUniChar GetPathSeparator(wxPathFormat format=wxPATH_NATIVE)
virtual void SetWorkingDir(const wxString &dirname)
Set the target's working dir on execution (valid only for executable targets)
const wxStringCharType * wx_str() const
~CompileTargetBase() override
OptionsRelation m_OptionsRelation[ortLast]
virtual wxString GetDynamicLibFilename()
Read the target's dynamic library filename (produced if target type is ttDynamicLib) ...
const DLLIMPORT wxString NATIVE_EXT
No automatic generation; let the user specify the full filename.
virtual wxString GetExecutableFilename() const
Read the target's executable filename (produced if target type is ttExecutable)
Target produces a static library.
virtual void SetDepsOutput(const wxString &dirname)
Set the target's dependencies output dir.
const DLLIMPORT wxString EXECUTABLE_EXT
Abstract base class for compilers.
wxString GetPath(int flags=wxPATH_GET_VOLUME, wxPathFormat format=wxPATH_NATIVE) const
Target produces a console executable (without GUI) (distinction between ttExecutable and ttConsoleOnl...
wxString GetFullName() const
virtual wxString GetNativeFilename()
Read the target's native filename (produced if target type is ttNative)
void DebugLog(const wxString &msg, Logger::level lv=Logger::info)
virtual const CompilerSwitches & GetSwitches() const
Get the compiler's generic switches.
void SetExt(const wxString &ext)
bool StartsWith(const wxString &prefix, wxString *rest=NULL) const
bool m_MakeCommandsModified
virtual void SetTargetType(TargetType pt)
Set the target's type to pt.
void SetName(const wxString &name)
virtual wxString GetObjectOutput() const
Read the target's objects output dir.
wxString m_HostApplication
const DLLIMPORT wxString EXECUTABLE_DOT_EXT
wxString GetFullPath(wxPathFormat format=wxPATH_NATIVE) const
TargetType
Enum to define the type of output the target produces.
virtual wxString GetDynamicLibDefFilename()
Read the target's dynamic library definition file filename (produced if target type is ttDynamicLib) ...
virtual void SetRunHostApplicationInTerminal(bool in_terminal)
OptionsRelationType
Enum that defines the option's relation types.
Target only runs commands in pre-build and/or post-build steps.