Main Content

compiler.build.Results

コンパイラ ビルド結果オブジェクト

R2020b 以降

説明

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 オブジェクトを作成する方法はいくつかあります。

MATLAB Compiler SDK のライセンスがある場合、次のオブジェクトも作成できます。

プロパティ

すべて展開する

このプロパティは読み取り専用です。

結果の生成に使用する関数 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'}

メモ

ファイル AddInName.bas および AddInName.xla は、'GenerateVisualBasicFile' オプションを有効にした場合にのみ含められます。

'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 配列

matlab-data インターフェイスを使用:

    {'path\to\v2\'}    
    {'path\to\GettingStarted.html'}

mwArray インターフェイスを使用:

    {'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'}

メモ

ファイル AddInName.bas および AddInName.xla は、'GenerateVisualBasicFile' オプションを有効にした場合にのみ含められます。

例: {'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

すべて折りたたむ

スタンドアロン アプリケーションを作成し、ビルド タイプ、生成ファイル、含まれるサポート パッケージ、およびビルド オプションに関する情報を 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]

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]

Files プロパティには、以下のファイルへのパスが格納されます。

  • Mortgage.exe

  • splash.png

  • readme.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]

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]

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]

Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。

  • magicsquare_1_0.dll

  • GettingStarted.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]

Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。

  • magicsquare_1_0.dll

  • GettingStarted.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]

Files プロパティには、以下のファイルへのパスが格納されます。

  • magicsquare.dll

  • magicsquare.lib

  • magicsquare.h

  • GettingStarted.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]

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]

Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。

  • magicsquare.dll

  • magicsquareNative.dll

  • magicsquare_overview.dll

  • GettingStarted.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]

Files プロパティには、以下へのパスが格納されます。

  • doc フォルダー

  • magicsquare.jar

  • GettingStarted.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]

Files プロパティには、以下へのパスが格納されます。

  • example フォルダー

  • setup.py

  • GettingStarted.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]

Files プロパティには、以下のコンパイル済みファイルへのパスが格納されます。

  • magicsquare.dll

  • magicsquare.bas

  • magicsquare.xla

メモ

ファイル magicsquare.bas および magicsquare.xla は、compiler.build.excelClientForProductionServer コマンドで 'GenerateVisualBasicFile' オプションを有効にした場合にのみ Files に含められます。

バージョン履歴

R2020b で導入