News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Script to run a build?

Started by PaulPaul, April 27, 2009, 06:08:57 PM

Previous topic - Next topic

PaulPaul

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:

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?