User forums > Using Code::Blocks

How to build a project via script

(1/1)

PaulPaul:
I am still very new to c::b but so far it is working well. I am just getting into scripts and I have a question (well, two actually):

How do I execute a build of the active project (manual make file)?

Also, how do I avoid having to specify the absolute folder?

Here is my script code thus far:

--- Code: ---Log(_T("Running Compile Script..."));

GetEditorManager().SaveAll();

local vpjProject = GetProjectManager().LoadProject(_T("/home/paul/workspaces/test/build_all/build_all.cbp"), true);

vpjProject.SetActiveBuildTarget(_T("all"))

// How do I build/make the active project here??

--- End code ---

PaulPaul:
Bump

I would still like to know the script command to build a workspace or project.

Anyone?

Navigation

[0] Message Index

Go to full version