setName
クラス: coder.make.BuildTool
名前空間: coder.make
ビルド ツール名の設定
構文
h.setName(name)
入力引数
例
既定の BuildTool の取得およびそのプロパティの設定
以下のコードの例では、MATLAB® Coder™ ビルド プロセスへのカスタム ツールチェーンの追加チュートリアルの intel_tc.m
ファイルの一部にある setName
を説明します。
% ------------------------------ % 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<|');
getName および setName メソッドの対話形式での使用
MATLAB® Coder™ ビルド プロセスへのカスタム ツールチェーンの追加の例から開始し、以下の行を入力します。
tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
tool.getName
ans = C Compiler
tool.setName('X Compiler')
tool.getName
ans = X Compiler
バージョン履歴
R2013a で導入