Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

compiler.build.Results

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

R2020b 以降

説明

compiler.build.Results オブジェクトには、関数 compiler.build のビルド タイプ、生成ファイル、サポート パッケージ、ビルド オプションに関する情報が含まれています。

Results のプロパティはすべて読み取り専用です。これらのプロパティのクエリにはドット表記を使用できます。

スタンドアロン アプリケーション、Excel® アドイン、または Web アプリ アーカイブをコンパイルした結果の詳細については、MATLAB® Compiler™compiler.build.Results を参照してください。

作成

compiler.build.Results オブジェクトを作成する方法はいくつかあります。

プロパティ

すべて展開する

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

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

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

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

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\MagicSquareproductionServerArchive\MagicSquare.ctf'}

データ型: cell

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

生成されたコンポーネントに含められるサポート パッケージ。文字ベクトルの cell 配列として指定します。

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

結果の生成に使用される関数 compiler.build のビルド オプション。対応するビルド タイプのオプション オブジェクトとして指定します。

ビルド タイプオプション
'productionServerArchive'ProductionServerArchiveOptions
'comComponent'COMComponentOptions
'cSharedLibrary'CSharedLibraryOptions
'cppSharedLibrary'CppSharedLibraryOptions
'dotNETAssembly'DotNETAssemblyOptions
'javaPackage'JavaPackageOptions
'pythonPackage'PythonPackageOptions
'excelClientForProductionServer'ExcelClientForProductionServerOptions

すべて折りたたむ

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 コンポーネントを 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 で導入