removeSourceFiles
説明
例
ビルド情報からのソース ファイル名の削除
RTW.BuildInfo
オブジェクト myBuildInfo
にソース ファイルのリストを追加するとします。
myBuildInfo = RTW.BuildInfo; addSourceFiles(myBuildInfo, ... {'test1.c' 'test2.c' 'driver1.c' 'driver2.c'}, ... '/proj/src', ... {'Tests' 'Tests' 'Drivers' 'Drivers'});
オブジェクトから test1.c
を削除するには、次を実行します。
removeSourceFiles(myBuildInfo, 'test1.c');
test2.c
と driver1.c
を削除するには、次を実行します。
removeSourceFiles(myBuildInfo, {'test2.c' 'driver1.c'});
'Drivers'
グループに属するファイルの名前を削除するには、次を実行します。
removeSourceFiles(myBuildInfo, '', 'Drivers');
入力引数
buildInfo
— ビルド情報オブジェクト
オブジェクト
生成されたコードのコンパイルとリンクに関する情報を格納する RTW.BuildInfo
オブジェクト。
例: myBuildInfo
filenames
— 削除するソース ファイル
文字ベクトル | 文字ベクトルの配列 | string
ビルド情報オブジェクトから削除するソース ファイルを指定します。
例: 'test1.c'
groups
— 削除するファイル グループ
文字ベクトル | 文字ベクトルの配列 | string
ビルド情報オブジェクトから削除するソース ファイルのグループを指定します。
例: {'Tests' 'Drivers'}
バージョン履歴
R2021b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)