Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: PaulPaul on April 27, 2009, 06:08:57 pm

Title: Script to run a build?
Post by: PaulPaul on April 27, 2009, 06:08:57 pm
Reposting this question:

I am hope to write a script to execute the build of an active project which has a manual make file. How can I do this?

My code so far:

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

GetEditorManager().SaveAll();

// How can I specify a relative path in the next line?
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?