Класс: coder.make.BuildTool
Пакет: coder.make
Команда «Задать инструмент построения»
h.setCommand(commandvalueinput)
устанавливает значение h.setCommand(commandvalueinput)coder.make.BuildTool.Command собственность.
intel_tc.m файл из команды «Добавить пользовательские цепочки инструментов в процесс построения MATLAB ® Coder™» использует следующие строки для установки команды инструмента построения по умолчанию ,C Compiler, из ToolchainInfo вызываемый объект tc, а затем задает его свойства.
% ------------------------------
% C Compiler
% ------------------------------
tool = tc.getBuildTool('C Compiler');
tool.setName('Intel C Compiler');
tool.setCommand('icl');
tool.setPath('');
tool.setDirective('IncludeSearchPath','-I');
tool.setDirective('PreprocessorDefine','-D');
tool.setDirective('OutputFlag','-Fo');
tool.setDirective('Debug','-Zi');
tool.setFileExtension('Source','.c');
tool.setFileExtension('Header','.h');
tool.setFileExtension('Object','.obj');
tool.setCommandPattern('|>TOOL<| |>TOOL_OPTIONS<| |>OUTPUT_FLAG<||>OUTPUT<|');