このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
compiler.build.Results
説明
compiler.build.Results
オブジェクトには、関数 compiler.build
のビルド タイプ、生成ファイル、サポート パッケージ、ビルド オプションに関する情報が含まれています。
Results
のプロパティはすべて読み取り専用です。これらのプロパティのクエリにはドット表記を使用できます。
スタンドアロン アプリケーション、Excel® アドイン、または Web アプリ アーカイブをコンパイルした結果の詳細については、MATLAB® Compiler™ の compiler.build.Results
を参照してください。
作成
compiler.build.Results
オブジェクトを作成する方法はいくつかあります。
compiler.build.productionServerArchive
を使用して Production Server アーカイブを作成する (例)。compiler.build.comComponent
を使用して COM コンポーネントを作成する (例)。compiler.build.cSharedLibrary
を使用して C 共有ライブラリを作成する (例)。compiler.build.cppSharedLibrary
を使用して C++ 共有ライブラリを作成する (例)。compiler.build.dotNETAssembly
を使用して .NET アセンブリを作成する (例)。compiler.build.javaPackage
を使用して Java® パッケージを作成する (例)。compiler.build.pythonPackage
を使用して Python® パッケージを作成する (例)。compiler.build.excelClientForProductionServer
を使用して MATLAB Production Server™ 用の Excel アドインを作成する (例)。
プロパティ
BuildType
— ビルド タイプ
'productionServerArchive'
| 'comComponent'
| 'cSharedLibrary'
| 'cppSharedLibrary'
| 'dotNETAssembly'
| 'javaPackage'
| 'pythonPackage'
| 'excelClientForProductionServer'
このプロパティは読み取り専用です。
結果の生成に使用する関数 compiler.build
のビルド タイプ。文字ベクトルとして指定します。
関数 compiler.build | ビルド タイプ |
---|---|
compiler.build.productionServerArchive | 'productionServerArchive' |
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
Files
— コンパイル済みファイルへのパス
文字ベクトルの cell 配列
このプロパティは読み取り専用です。
結果の生成に使用する関数 compiler.build
のコンパイル済みファイルへのパス。文字ベクトルの cell 配列として指定します。
ビルド タイプ | ファイル |
---|---|
'productionServerArchive' | 1 行 1 列の cell 配列 {'path\to\ArchiveName.ctf'} |
'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\MagicSquareproductionServerArchive\MagicSquare.ctf'}
データ型: cell
IncludedSupportPackages
— サポート パッケージ
文字ベクトルの cell 配列
このプロパティは読み取り専用です。
生成されたコンポーネントに含められるサポート パッケージ。文字ベクトルの cell 配列として指定します。
Options
— ビルド オプション
ProductionServerArchiveOptions
| COMComponentOptions
| CSharedLibraryOptions
| CppSharedLibraryOptions
| DotNETAssemblyOptions
| JavaPackageOptions
| PythonPackageOptions
| ExcelClientForProductionServerOptions
このプロパティは読み取り専用です。
結果の生成に使用される関数 compiler.build
のビルド オプション。対応するビルド タイプのオプション オブジェクトとして指定します。
ビルド タイプ | オプション |
---|---|
'productionServerArchive' | ProductionServerArchiveOptions |
'comComponent' | COMComponentOptions |
'cSharedLibrary' | CSharedLibraryOptions |
'cppSharedLibrary' | CppSharedLibraryOptions |
'dotNETAssembly' | DotNETAssemblyOptions |
'javaPackage' | JavaPackageOptions |
'pythonPackage' | PythonPackageOptions |
'excelClientForProductionServer' | ExcelClientForProductionServerOptions |
例
Production Server アーカイブからのビルド情報の取得
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]
Files
プロパティには、デプロイ可能なアーカイブ ファイル magicsquare.ctf
へのパスが格納されます。
COM コンポーネントからのビルド情報の取得
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]
Files
プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare_1_0.dll
GettingStarted.html
C ライブラリからのビルド情報の取得
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]
Files
プロパティには、以下のファイルへのパスが格納されます。
magicsquare.dll
magicsquare.lib
magicsquare.h
GettingStarted.html
C++ ライブラリからのビルド情報の取得
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]
Files
プロパティには、v2
フォルダーおよび GettingStarted.html
へのパスが格納されます。
.NET アセンブリからのビルド情報の取得
.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]
Files
プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare.dll
magicsquareNative.dll
magicsquare_overview.dll
GettingStarted.html
Java パッケージからのビルド情報の取得
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]
Files
プロパティには、以下へのパスが格納されます。
doc
フォルダーmagicsquare.jar
GettingStarted.html
Python パッケージからのビルド情報の取得
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]
Files
プロパティには、以下へのパスが格納されます。
example
フォルダーsetup.py
GettingStarted.html
MATLAB Production Server 用の Excel アドインからのビルド情報の取得
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]
Files
プロパティには、以下のコンパイル済みファイルへのパスが格納されます。
magicsquare.dll
magicsquare.bas
magicsquare.xla
メモ
ファイル magicsquare.bas
および magicsquare.xla
は、compiler.build.excelClientForProductionServer
コマンドで 'GenerateVisualBasicFile'
オプションを有効にした場合にのみ Files
に含められます。
バージョン履歴
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)