User forums > Using Code::Blocks

Script to run a build?

(1/1)

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:


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

Navigation

[0] Message Index

Go to full version