Main Content

setCommand

クラス: coder.make.BuildTool
名前空間: coder.make

ビルド ツール コマンドの設定

構文

h.setCommand(commandvalueinput)

説明

h.setCommand(commandvalueinput) は、coder.make.BuildTool.Command プロパティの値を設定します。

入力引数

すべて展開する

coder.make.BuildToolオブジェクトのオブジェクト ハンドル。変数で指定します。

例: tool

coder.make.BuildTool.Command プロパティの値。文字ベクトル、またはオプションの値をもつcoder.make.BuildItemオブジェクトのハンドルを入力します。

既定のビルド ツールの取得およびそのプロパティの設定

MATLAB® Coder™ ビルド プロセスへのカスタム ツールチェーンの追加intel_tc.m ファイルは以下の行を使用して、tc と呼ばれる ToolchainInfo オブジェクトから既定のビルド ツール C Compiler のコマンドを設定し、さらにそのプロパティを設定します。

% ------------------------------
% 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<|');

バージョン履歴

R2013a で導入