How do I add options to the "mcc" command used by "deploytool" apps?

3 views (last 30 days)
I want to be able to add options used by the "mcc" command in "deploytool" apps, such as "Production Server Compiler" and "Library Compiler", but I can't find where to do this. For example, I want to add a directory to include with the "mcc" command, which is normally done using:
mcc -I "some/directory/path"
Where do I go to add options to the "mcc" command used by "deploytool" apps?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 3 Nov 2022
When packaging a project in "deploytool" apps, click the “Settings” option in the menu. In the “Additional parameters passed to mcc” textbox, you can add parameters to be passed to "mcc". For example, you could add something like the following: 
-I C:\path\to\directory\to\include” 
These additional parameters will be included in the “mcc” command displayed by the project's “PackagingLog.html” file after packaging.

More Answers (0)

Categories

Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!