| MATLAB Runtime Server | ![]() |
Generate a configuration file for packaging an application
Syntax
Description
makeconfig(list)
creates the configuration file user.config_pc on a PC or user.files on a UNIX machine. This file is used by the packaging utility. list is single column, cell array where each cell contains a string with the complete filename to be included in the runtime application. Each filename must begin with the equivalent of your matlabroot directory, similar to the output of depfun. Any duplicate filenames are ignored.
makeconfig(list,filename)
writes the configuration file to the specified filename.
makeconfig(list,filename, writes the configuration files to the specified filename and appends list2)
list2 to list. list2 contains any additional files that you want to ship that are not included in list, such as an optional splash screen bitmap.
| Note If your files contain calls to Java classes, you must package the files needed for these classes to run. See Automatically Packaging Files for Shipping for more information. |
Example
Generate a configuration file.
matlabroot pathname and change to that directory.
depfunout
list2 which contains paths to matlabrt.p and pathdefrt.p files.
makeconfig.
The code to execute these steps is
cd(fullfile(matlabroot,'toolbox','runtime','examples','gui')); [log, depfunout] = buildp({'matlabrt'}); list2 = {fullfile(matlabroot,'toolbox','local','matlabrt.p'),... fullfile(matlabroot,'toolbox','local','pathdefrt.p')}; makeconfig(depfunout{1},'configfile',list2);
See Also
| isruntime | pcode | ![]() |