Skip to content

Commit

Permalink
import matlab.buildtool
Browse files Browse the repository at this point in the history
  • Loading branch information
acampbel authored May 4, 2024
1 parent 63e48f6 commit 440957f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildfile.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function plan = buildfile
import matlab.buildtool.*;
import matlab.buildtool.tasks.*;

plan = buildplan(localfunctions);
Expand All @@ -9,7 +10,6 @@
%% Enable cleaning derived build outputs
plan("clean") = CleanTask;


%% Lint the code and tests
plan("lint") = CodeIssuesTask(Results=resultsFolder + "/code-issues.sarif");

Expand All @@ -18,8 +18,8 @@
mexSrcs = matlab.buildtool.io.FileCollection.fromPaths("mex/*.c*").paths;
[~,names] = fileparts(mexSrcs);
mexTasks = arrayfun(@(srcFile) MexTask(srcFile,"toolbox"), mexSrcs);
plan("mex") = matlab.buildtool.TaskGroup(mexTasks, ...
TaskNames=names, Dependencies="setupCompiler", Description="Compile all mex files");
plan("mex") = TaskGroup(mexTasks, TaskNames=names, ...
Dependencies="setupCompiler", Description="Compile all mex files");

%% Setup the MinGW compiler
% Ad hoc task, task action defined in setupCompilerTask local function
Expand Down Expand Up @@ -73,7 +73,7 @@


%% Create the release task - does nothing but depends on other tasks
plan("release") = matlab.buildtool.Task(Dependencies="tbxIntegTest", ...
plan("release") = Task(Dependencies="tbxIntegTest", ...
Description="Produce a fully qualified toolbox for release");


Expand All @@ -94,7 +94,7 @@


% %% Create the deploy task - does nothing but depends on other tasks
% plan("deploy") = matlab.buildtool.Task(Dependencies="ctfIntegTest", ...
% plan("deploy") = Task(Dependencies="ctfIntegTest", ...
% Description="Produce and test a ctf archive to deploy to a MATLAB Production Server");


Expand Down

0 comments on commit 440957f

Please sign in to comment.