Difference between revisions of "Some examples"

From CodeBlocks
Jump to: navigation, search
(Create this page as collection of useful scripts)
 
 
Line 1: Line 1:
 +
[[Category:Scripting Code::Blocks]]
  
 
== After build ==
 
== After build ==
Line 8: Line 9:
  
 
This is in one line, so you can copy and paste it in the post build step (but don't forget to add the <code>[[ ]]</code> )
 
This is in one line, so you can copy and paste it in the post build step (but don't forget to add the <code>[[ ]]</code> )
 +
 +
== See also ==
 +
 +
* [[Scripting Code::Blocks|Scripting index]]

Latest revision as of 23:36, 18 October 2019


After build

Copy the build log after compilation to a new location and rename it with target name and compiler id.

IO.CopyFile(_("$(PROJECTNAME)_build_log.html"), _("$(PROJECTNAME)_build_log_") + GetProjectManager().GetActiveProject().GetCurrentlyCompilingTarget().GetTitle() + _("_") + GetProjectManager().GetActiveProject().GetCurrentlyCompilingTarget().GetCompilerID() + _(".html"), true );

This is in one line, so you can copy and paste it in the post build step (but don't forget to add the [[ ]] )

See also