メインコンテンツ

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

removeIncludePaths

Remove include paths from build information

R2023b 以降

説明

removeIncludePaths(buildinfo, pathsToRemove) removes the specified include file paths from the build information.

removeIncludePaths(buildinfo, pathsToRemove, groups) removes the include file paths in the specified groups from the build information.

すべて折りたたむ

Add the include path /etcproj/etc/etc_build to the build information object myBuildInfo.

myBuildInfo = RTW.BuildInfo;
addIncludePaths(myBuildInfo,...
                '/etcproj/etc/etc_build');

To remove the include path from the build information, run:

removeIncludePaths(myBuildInfo,...
   '/etcproj/etc/etc_build');

Add the include paths /etcproj/etclib, /etcproj/etc/etc_build, /common/lib1, and /common/lib2 to the build information object myBuildInfo. Associate the etc group with the paths /etc/proj/etclib and /etcproj/etc/etc_build and the shared group with the paths /common/lib1 and /common/lib2.

myBuildInfo = RTW.BuildInfo;
addIncludePaths(myBuildInfo,...
               {'/etc/proj/etclib' '/etcproj/etc/etc_build' ...
                '/common/lib1' '/common/lib2'}, ...
               {'etc' 'etc' 'shared' 'shared'});

To remove /etcproj/etclib from the build information if the path is in the shared group , run:

removeIncludePaths(myBuildInfo, '/etcproj/etclib','shared');

Or, to remove the include file paths in both groups, run:

removeIncludePaths(myBuildInfo, '', {'etc' 'shared'});

入力引数

すべて折りたたむ

RTW.BuildInfo object that contains information for compiling and linking generated code.

例: myBuildInfo

Specify include paths that you want to remove from the build information.

例: '/proj/src'

Specify groups of include paths that you want to remove from the build information.

例: {'etc' 'shared'}

バージョン履歴

R2023b で導入