News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to build a project via script

Started by PaulPaul, April 07, 2009, 08:11:40 PM

Previous topic - Next topic

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:

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??

PaulPaul

Bump

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

Anyone?