compiler.build.Results
コンパイラ ビルド結果オブジェクト
説明
compiler.build.Results オブジェクトには、compiler.build 関数のビルド タイプ、生成ファイル、サポート パッケージ、ビルド オプション、依存関係に関する情報が含まれています。
Results のプロパティはすべて読み取り専用です。これらのプロパティのクエリにはドット表記を使用できます。
MATLAB® Compiler™ では、スタンドアロン アプリケーション、Excel® アドイン、または Web アプリ アーカイブを作成できます。
MATLAB Compiler SDK™ では、C/C++ 共有ライブラリ、.NET アセンブリ、COM コンポーネント、Java® パッケージ、Python® パッケージ、MATLAB Production Server™ のデプロイ可能アーカイブ、または MATLAB Production Server 用 Excel アドインを作成できます。
作成
compiler.build.Results オブジェクトを作成する方法はいくつかあります。
compiler.build.standaloneApplicationを使用してスタンドアロン アプリケーションを作成する (例)。compiler.build.standaloneWindowsApplicationを使用してスタンドアロンの Windows® アプリケーションを作成する (例)。compiler.build.webAppArchiveを使用して Web アプリ アーカイブを作成する (例)。compiler.build.excelAddInを使用して Excel アドインを作成する (例)。
MATLAB Compiler SDK のライセンスがある場合、次のオブジェクトも作成できます。
compiler.build.cSharedLibraryを使用して C 共有ライブラリを作成する (例)。compiler.build.cppSharedLibraryを使用して C++ 共有ライブラリを作成する (例)。compiler.build.dotNETAssemblyを使用して .NET アセンブリを作成する (例)。compiler.build.javaPackageを使用して Java パッケージを作成する (例)。compiler.build.pythonPackageを使用して Python パッケージを作成する (例)。compiler.build.productionServerArchiveを使用して Production Server アーカイブを作成する (例)。compiler.build.excelClientForProductionServerを使用して MATLAB Production Server 用の Excel アドインを作成する (例)。compiler.build.comComponentを使用して COM コンポーネントを作成する (例)。
プロパティ
このプロパティは読み取り専用です。
結果の生成に使用する関数 compiler.build のビルド タイプ。文字ベクトルとして指定します。
compiler.build 関数 | ビルド タイプ |
|---|---|
compiler.build.standaloneApplication | 'standaloneApplication' |
compiler.build.standaloneWindowsApplication | 'standaloneWindowsApplication' |
compiler.build.webAppArchive | 'webAppArchive' |
compiler.build.productionServerArchive | 'productionServerArchive' |
compiler.build.excelAddIn | 'excelAddIn' |
compiler.build.comComponent | 'comComponent' |
compiler.build.cSharedLibrary | 'cSharedLibrary' |
compiler.build.cppSharedLibrary | 'cppSharedLibrary' |
compiler.build.dotNETAssembly | 'dotNETAssembly' |
compiler.build.javaPackage | 'javaPackage' |
compiler.build.pythonPackage | 'pythonPackage' |
compiler.build.excelClientForProductionServer | 'excelClientForProductionServer' |
データ型: char
このプロパティは読み取り専用です。
結果の生成に使用する関数 compiler.build のコンパイル済みファイルへのパス。文字ベクトルの cell 配列として指定します。
| ビルド タイプ | ファイル |
|---|---|
'standaloneApplication' | 2 行 1 列の cell 配列 {'path\to\ExecutableName.exe'}
{'path\to\readme.txt'} |
'standaloneWindowsApplication' | 3 行 1 列の cell 配列 {'path\to\ExecutableName.exe'}
{'path\to\splash.png'}
{'path\to\readme.txt'} |
'webAppArchive' | 1 行 1 列の cell 配列 {'path\to\ArchiveName.ctf'} |
'productionServerArchive' | 1 行 1 列の cell 配列 {'path\to\ArchiveName.ctf'} |
'excelAddIn' | 2 行 1 列または 4 行 1 列の cell 配列 {'path\to\AddInName_AddInVersion.dll'}
{'path\to\AddInName.bas'}
{'path\to\AddInName.xla'}
{'path\to\GettingStarted.html'}メモ ファイル |
'comComponent' | 2 行 1 列の cell 配列 {'path\to\ComponentName_ComponentVersion.dll'}
{'path\to\GettingStarted.html'} |
'cSharedLibrary' | 4 行 1 列の cell 配列 {'path\to\LibraryName.h'}
{'path\to\LibraryName.dll'}
{'path\to\LibraryName.lib'}
{'path\to\GettingStarted.html'} |
'cppSharedLibrary' | 2 行 1 列または 4 行 1 列の cell 配列
{'path\to\v2\'}
{'path\to\GettingStarted.html'}
{'path\to\LibraryName.h'}
{'path\to\LibraryName.dll'}
{'path\to\LibraryName.lib'}
{'path\to\GettingStarted.html'} |
'dotNETAssembly' | 4 行 1 列の cell 配列 {'path\to\AssemblyName.dll'}
{'path\to\AssemblyNameNative.dll'}
{'path\to\AssemblyName_overview.html'}
{'path\to\GettingStarted.html'} |
'javaPackage' | 3 行 1 列の cell 配列 {'path\to\PackageName.jar'}
{'path\to\doc\'}
{'path\to\GettingStarted.html'} |
'pythonPackage' | 3 行 1 列の cell 配列 {'path\to\example\'}
{'path\to\setup.py'}
{'path\to\GettingStarted.html'} |
'excelClientForProductionServer' | 1 行 1 列または 3 行 1 列の cell 配列 {'path\to\AddInName.dll'}
{'path\to\AddInName.bas'}
{'path\to\AddInName.xla'}メモ ファイル |
例: {'D:\Documents\MATLAB\work\MagicSquarewebAppproductionServerArchive\MagicSquare.ctf'}
データ型: cell
このプロパティは読み取り専用です。
生成されたコンポーネントに含められるサポート パッケージ。文字ベクトルの cell 配列として指定します。
このプロパティは読み取り専用です。
結果の生成に使用される関数 compiler.build のビルド オプション。対応するビルド タイプのオプション オブジェクトとして指定します。
| ビルド タイプ | オプション |
|---|---|
'standaloneApplication' | StandaloneApplicationOptions |
'standaloneWindowsApplication' | StandaloneApplicationOptions |
'webAppArchive' | WebAppArchiveOptions |
'productionServerArchive' | ProductionServerArchiveOptions |
'excelAddIn' | ExcelAddInOptions |
'comComponent' | COMComponentOptions |
'cSharedLibrary' | CSharedLibraryOptions |
'cppSharedLibrary' | CppSharedLibraryOptions |
'dotNETAssembly' | DotNETAssemblyOptions |
'javaPackage' | JavaPackageOptions |
'pythonPackage' | PythonPackageOptions |
'excelClientForProductionServer' | ExcelClientForProductionServerOptions |
このプロパティは読み取り専用です。
生成されたコンポーネントの Runtime 依存関係。2 つのテーブル (Required と Optional) を含む Dependencies オブジェクトとして指定します。各テーブルには依存関係のコレクションが含まれます。
例
スタンドアロン アプリケーションを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.standaloneApplication('magicsquare.m')results =
BuildType: 'standaloneApplication'
Files: {2×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.StandaloneApplicationOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、magicsquare スタンドアロン実行可能ファイルと readme.txt ファイルへのパスが格納されます。
スタンドアロンの Windows アプリケーションを Windows システムで作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル Mortgage.mlapp を使用してコンパイルします。
results = compiler.build.standaloneWindowsApplication('Mortgage.mlapp')results =
Results with properties:
BuildType: 'standaloneWindowsApplication'
Files: {3×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.StandaloneApplicationOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のファイルへのパスが格納されます。
Mortgage.exesplash.pngreadme.txt
Web アプリ アーカイブを作成し、ビルド タイプ、アーカイブ ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル Mortgage.mlapp を使用してコンパイルします。
results = compiler.build.webAppArchive('Mortgage.mlapp')results =
Results with properties:
BuildType: 'webAppArchive'
Files: {'D:\Documents\MATLAB\work\MortgagewebAppArchive\Mortgage.ctf'}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.WebAppArchiveOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、デプロイ可能なアーカイブ ファイル Mortgage.ctf へのパスが格納されます。
Production Server アーカイブを作成し、ビルド タイプ、アーカイブ ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.productionServerArchive('magicsquare.m')results =
Results with properties:
BuildType: 'productionServerArchive'
Files: {'D:\Documents\MATLAB\work\magicsquareproductionServerArchive\magicsquare.ctf'}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.ProductionServerArchiveOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、デプロイ可能なアーカイブ ファイル magicsquare.ctf へのパスが格納されます。
Excel アドインを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.excelAddIn('magicsquare.m')results =
Results with properties:
BuildType: 'excelAddIn'
Files: {2×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.ExcelAddInOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare_1_0.dllGettingStarted.html
メモ
ファイル magicsquare.bas および magicsquare.xla は、ビルド コマンドで 'GenerateVisualBasicFile' オプションを有効にした場合にのみ Files に含められます。
COM コンポーネントを Windows システムで作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.comComponent('magicsquare.m')results =
Results with properties:
BuildType: 'comComponent'
Files: {2×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.COMComponentOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare_1_0.dllGettingStarted.html
C ライブラリを作成し、ビルド タイプ、コンパイル済みファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.cSharedLibrary('magicsquare.m')results =
Results with properties:
BuildType: 'cSharedLibrary'
Files: {4×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.CSharedLibraryOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のファイルへのパスが格納されます。
magicsquare.dllmagicsquare.libmagicsquare.hGettingStarted.html
C++ ライブラリを作成し、ビルド タイプ、コンパイル済みファイル、サポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.cppSharedLibrary('magicsquare.m')results =
Results with properties:
BuildType: 'cppSharedLibrary'
Files: {2×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.CppSharedLibraryOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、v2 フォルダーおよび GettingStarted.html へのパスが格納されます。
.NET アセンブリを Windows システムで作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.dotNETAssembly('magicsquare.m')results =
Results with properties:
BuildType: 'dotNETAssembly'
Files: {4×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.DotNETAssemblyOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare.dllmagicsquareNative.dllmagicsquare_overview.dllGettingStarted.html
Java パッケージを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.javaPackage('magicsquare.m')results =
Results with properties:
BuildType: 'javaPackage'
Files: {3×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.JavaPackageOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下へのパスが格納されます。
docフォルダーmagicsquare.jarGettingStarted.html
Python パッケージを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用してコンパイルします。
results = compiler.build.pythonPackage('magicsquare.m');results =
Results with properties:
BuildType: 'pythonPackage'
Files: {3×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.PythonPackageOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下へのパスが格納されます。
exampleフォルダーsetup.pyGettingStarted.html
MATLAB Production Server 用の Excel アドインを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を compiler.build.Results オブジェクトに保存します。
ファイル magicsquare.m を使用して MATLAB Production Server アーカイブをビルドします。出力を compiler.build.Results オブジェクト serverBuildResults として保存します。
serverBuildResults = compiler.build.productionServerArchive('magicsquare.m');serverBuildResults オブジェクトを使用して、Excel アドインをビルドします。
results = compiler.build.excelClientForProductionServer(serverBuildResults)
results =
Results with properties:
BuildType: 'excelClientForProductionServer'
Files: {1×1 cell}
IncludedSupportPackages: {}
Options: [1×1 compiler.build.ExcelClientForProductionServerOptions]
RuntimeDependencies: [1×1 compiler.runtime.Dependencies]Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare.dllmagicsquare.basmagicsquare.xla
メモ
ファイル magicsquare.bas および magicsquare.xla は、compiler.build.excelClientForProductionServer コマンドで 'GenerateVisualBasicFile' オプションを有効にした場合にのみ Files に含められます。
バージョン履歴
R2020b で導入
参考
compiler.build.standaloneApplication | compiler.build.standaloneWindowsApplication | compiler.build.webAppArchive | compiler.build.productionServerArchive | compiler.build.excelAddIn | compiler.build.comComponent | compiler.build.cSharedLibrary | compiler.build.cppSharedLibrary | compiler.build.dotNETAssembly | compiler.build.javaPackage | compiler.build.pythonPackage | compiler.build.excelClientForProductionServer
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)