Author Topic: How to build a project via script  (Read 1959 times)

Offline PaulPaul

  • Single posting newcomer
  • *
  • Posts: 7
How to build a project via script
« 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: [Select]
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??

Offline PaulPaul

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to build a project via script
« Reply #1 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?