Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

ビルド構成

出力ファイルの名前、場所、種類、言語などのビルド設定の構成

バイナリ コードを生成するビルド プロセスを制御および設定するには、多くのパラメーターや設定があります。これらの設定は、出力ビルドの種類 (MEX、lib、dll または exe) および C と C++ 言語などの属性を制御します。他のビルド設定により、可読性、パフォーマンスおよび外部コードの統合などの特定のニーズに応じて、ビルド出力をカスタマイズできます。アプリまたはコマンド ラインからコード生成構成オブジェクトのビルド オプションを変更できます。coder.config を使用して、構成オブジェクトを作成できます。open を使用して、編集アプリでオブジェクトを開きます。追加のビルド ファイルおよびフラグを関数コード内から指定するには、coder.updateBuildInfo を使用します。

関数

すべて展開する

coder.configMATLAB Coder コード生成構成オブジェクトを作成する
coder.updateBuildInfoビルド情報オブジェクト RTW.BuildInfo の更新
target.addターゲット オブジェクトを内部データベースに追加
target.createターゲット オブジェクトを作成
target.exportターゲット オブジェクトのデータをエクスポート
target.getターゲット オブジェクトを内部データベースから取得
target.remove内部データベースからのターゲット オブジェクトの削除
target.upgradeハードウェア デバイスの既存の定義のアップグレード
addCompileFlagsAdd compiler options to build information
addDefinesAdd preprocessor macro definitions to build information
addIncludeFilesAdd include files to build information
addIncludePathsAdd include paths to build information
addLinkFlagsAdd link options to build information
addLinkObjectsAdd link objects to build information
addNonBuildFilesAdd nonbuild-related files to build information
addSourceFilesAdd source files to build information
addSourcePathsAdd source paths to build information
addTMFTokensAdd template makefile (TMF) tokens to build information
removeSourceFilesRemove source files from build information object
findBuildArgFind a specific build argument in build information
findIncludeFilesFind and add include (header) files to build information
getBuildArgsGet build arguments from build information
getCompileFlagsGet compiler options from build information
getDefinesGet preprocessor macro definitions from build information
getFullFileListGet list of files from build information
getIncludeFilesGet include files from build information
getIncludePathsGet include paths from build information
getLinkFlagsGet link options from build information
getNonBuildFilesGet nonbuild-related files from build information
getSourceFilesGet source files from build information
getSourcePathsGet source paths from build information
setTargetProvidesMainDisable inclusion of code generator provided (generated or static) main.c source file during build
updateFilePathsAndExtensionsUpdate files in build information with missing paths and file extensions
updateFileSeparatorUpdate file separator character for file lists in build information

オブジェクト

coder.MexCodeConfigMATLAB からの MEX 関数生成用構成パラメーター
coder.CodeConfigMATLAB コードから C/C++ コードを生成するための構成パラメーター
coder.EmbeddedCodeConfigEmbedded CoderMATLAB コードから C/C++ コードを生成するための構成パラメーター
coder.HardwareImplementationMATLAB コードから C/C++ コードを生成するためのハードウェア固有の構成パラメーター
coder.hardwareMATLAB コードから C/C++ コード生成用ハードウェア ボード構成オブジェクトを作成します。
coder.ReplacementTypesC/C++ コード生成における MATLAB 組み込みデータ型のカスタム名を指定する構成パラメーター。
RTW.BuildInfo生成されたコードのコンパイルとリンクに関する情報を提供する

クラス

coder.ExternalDependency外部コードへのインターフェイス
target.Aliasターゲット オブジェクトの代替識別子を作成
target.CMakeSpecify CMake installation for building generated code
target.CMakeBuilder Configure how CMake builds generated code
target.CMakeBuildTypeDescribe CMake build type or build configuration
target.CMakeCacheEntryConfigure a CMake cache entry
target.EnvironmentConfigurationConfigure system environment for toolchain
target.HardwareComponentSupportDescribe support for a hardware component
target.LanguageImplementationC および C++ コンパイラの実装の詳細を提供
target.Objectターゲット タイプの基底クラス
target.Processorターゲット プロセッサ情報の提供
target.ToolchainCapture high-level information about toolchain

パッケージ

targetターゲット ハードウェアとビルド ツールの情報の管理

トピック

ビルド構成の基礎

特定のビルド オプション

トラブルシューティング