主要内容

编译自动化

R2026b
创建和运行编译任务,例如识别代码问题、运行测试和编译包
自 R2022b 起

使用 MATLAB® 编译工具标准化工程的编译和测试过程。使用 MATLAB 编译工具,您可以:

  • 使用标准化界面定义、查看和运行任务。

  • 指定依赖关系,以便任务按预期顺序运行。

  • 通过仅重新编译已更改的内容来避免冗余工作。

要快速入门,请参阅Overview of MATLAB Build Tool。

有关在软件开发中使用 MATLAB 编译工具的更多信息,请参阅Develop and Share Software in MATLAB。

函数

buildtoolInvoke build tool
buildplanCreate build plan

类

全部展开

matlab.buildtool.PlanFundamental interface for defining a build
matlab.buildtool.PlanElementBase class for build plan elements (自 R2026b 起)
matlab.buildtool.TaskSingle unit of work in a build
matlab.buildtool.TaskGroupGroup of tasks (自 R2024b 起)
matlab.buildtool.TaskActionAction performed when task runs
matlab.buildtool.TaskContextContext provided when task runs
matlab.buildtool.BuildResultResult of running a build
matlab.buildtool.TaskResultResult of running a task
matlab.buildtool.diagnostics.TaskSkipReasonReason for skipping a task (自 R2026a 起)
matlab.buildtool.TaskInputsContainer for task inputs (自 R2023b 起)
matlab.buildtool.TaskOutputsContainer for task outputs (自 R2023b 起)
matlab.buildtool.io.FileCollectionCollection of files and folders (自 R2023a 起)
matlab.buildtool.io.FileSingle file or folder (自 R2023b 起)
matlab.buildtool.io.GlobFile collection that matches pattern (自 R2023b 起)
matlab.buildtool.tasks.CleanTaskTask for deleting outputs and traces (自 R2023b 起)
matlab.buildtool.tasks.CodeIssuesTaskTask for identifying code issues (自 R2023b 起)
matlab.buildtool.tasks.MexTaskTask for building MEX file (自 R2024a 起)
matlab.buildtool.tasks.PackageTaskTask for building package from TOML project (自 R2026b 起)
matlab.buildtool.tasks.PcodeTaskTask for creating P-code files (自 R2024a 起)
matlab.buildtool.tasks.TestTaskTask for running tests (自 R2023b 起)

主题