Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: PaulPaul on April 07, 2009, 08:11:40 pm

Title: How to build a project via script
Post by: PaulPaul on April 07, 2009, 08:11:40 pm
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??
Title: Re: How to build a project via script
Post by: PaulPaul on April 14, 2009, 07:53:31 pm
Bump

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

Anyone?