target.BuildDependencies クラス
パッケージ: target
説明
target.BuildDependencies
オブジェクトを使用して、次を実行できます。
C および C++ ビルドの依存関係を記述する (たとえば、ソース ファイルとインクルード パス)。
依存関係とターゲット ハードウェアを関連付ける。
たとえば、target.BuildDependencies
オブジェクトを使用して、target.APIImplementation
オブジェクトのビルドの依存関係について記述できます。
プロパティ
SourceFiles
— ソース ファイルの依存関係
文字ベクトルの cell 配列 | string 配列
ソース ファイルへのパスを指定します。
属性:
GetAccess | public |
SetAccess | public |
IncludeFiles
— ファイルの依存関係を含める
文字ベクトルの cell 配列 | string 配列
ファイルの依存関係を含めます。
属性:
GetAccess | public |
SetAccess | public |
IncludePaths
— ヘッダー ファイルのインクルード パスの依存関係
文字ベクトルの cell 配列 | string 配列
ヘッダー ファイルのインクルード パスの依存関係。
属性:
GetAccess | public |
SetAccess | public |
Defines
— マクロ定義の依存関係
文字ベクトルの cell 配列 | string 配列
マクロ定義の依存関係。
属性:
GetAccess | public |
SetAccess | public |
StaticLibraries
— スタティック ライブラリの依存関係
文字ベクトルの cell 配列 | string 配列
スタティック ライブラリの依存関係。
属性:
GetAccess | public |
SetAccess | public |
SharedLibraries
— 共有ライブラリの依存関係
文字ベクトルの cell 配列 | string 配列
共有ライブラリの依存関係。
属性:
GetAccess | public |
SetAccess | public |
例
rtiostream
C API の実装ビルドの依存関係を記述
この例では、rtiostream
C API の実装ビルドの依存関係について記述する方法を示します。
apiImp = target.create('APIImplementation', 'Name', ... 'x86 rtiostream Implementation'); apiImp .API = target.create('API', 'Name', 'rtiostream'); apiImp .BuildDependencies = target.create('BuildDependencies'); apiImp .BuildDependencies.SourceFiles = ... {fullfile('$(MATLAB_ROOT)', 'toolbox', ... 'coder', 'rtiostream','src', ... 'rtiostreamtcpip', 'rtiostream_tcpip.c')}; apiImp.MainFunction = target.create('MainFunction', ... 'Name', 'TCP RtIOStream Main'); apiImp.MainFunction.Arguments = {'-blocking', '1', '-port', '0'};
バージョン履歴
R2020b で導入
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)