mcc Command Arguments Listed Alphabetically
Option | Description | Comment |
---|---|---|
| Display | Cannot be used in a deploytool app. |
Add | If you specify a folder name, all files in the folder are
added. If you use a wildcard ( | |
| Append supported platforms to those detected automatically by the compiler. | Valid only for Python®, C/C++ using the MATLAB® data array API, and Java® targets.
|
| Generate Excel® compatible formula function. | Requires MATLAB
Compiler™ for Excel add-ins. Cannot be used in a
|
| Replace | The file should contain only |
| Suppress compiling and linking of the generated C wrapper code. | Must be used in conjunction with the |
| Direct | |
| Place output in folder specified by
| The specified folder must already exist. Cannot be used in a
deploytool app. |
| Suppress appearance of the MS-DOS Command Window when generating a standalone application. | Use The standalone app compiler suppresses the MS-DOS command window by default. To enable it, deselect Do not display the Windows Command Shell (console) for execution in the Additional Runtime Settings area. |
| Use the specified options file,
|
|
| Include debugging symbol information for generated C/C++ code. | |
Specify a custom help text file. | Display help file contents at runtime using
| |
| Add folder to search path for MATLAB files. | |
| Automatically convert all
| |
| Specify a secret manifest JSON file to embed the specified secret keys in the deployable archive (since R2024a). | |
| Specify AES encryption key
| If you do not specify any arguments after
For C++ shared libraries, you can specify only the encryption key and provide the decryption key in your C++ application at runtime (since R2023b). |
| Direct | Default behavior is to dispose of any partial output if the command fails to execute successfully. |
| Create a C shared library. | Equivalent to |
| Generate a standalone application. | Equivalent to On Windows, the command prompt opens on execution of the application. The standalone app compiler suppresses the MS-DOS command window by default. To enable it, deselect Do not display the Windows Command Shell (console) for execution in the Additional Runtime Settings area. |
| Pass compile-time options to
| |
| Automatically treat numeric inputs as MATLAB doubles. | Cannot be used in a |
| Clear the path of all but a minimal, required set of folders. | Uses the following folders:
|
| Specify name of standalone application executable file. | Adds appropriate extension. Cannot be used in a
|
| Add | Requires |
| Embed resource | |
Specify run-time options for MATLAB Runtime. | Valid only for standalone applications using MATLAB Compiler.
| |
| Obfuscate folder structures and
file names in the deployable archive ( | |
| Create singleton MATLAB Runtime. | Default for generic COM components. Valid for Microsoft® Excel and Java packages. |
| Specify the output target phase and type. | Cannot be used in a |
| Register COM component for current user only on development machine. | Valid only for generic COM components and Microsoft Excel add-ins. |
| Generate a deployable archive ( | Equivalent to |
| Verbose; display compilation steps. | |
Control warning messages. | Valid arguments are | |
Specify build target and associated options. |
Cannot be used in a
| |
Ignore data files detected by dependency analysis. | For more information, see Dependency Analysis Using MATLAB Compiler. | |
| Override the default license file with the specified file
licensefile . | Can only be used on the system command line. |
| Specify method of including support packages. |
|
Packaging Log and Output Folders
By default, the deployment app places the packaging log and the Testing Files, End User Files, and Packaged Installers folders in the target folder location. If you specify a custom location, the app creates any folders that do not exist at compile time.