Main Content

Code Packaging

Package and share or relocate code

For sharing or relocation of static and generated code files, use the packNGo function. For example, when you want to relocate the files to a development environment that does not provide MATLAB® and Simulink® products, use the packNGo function.

Generate source code and use codebuild to create CMake configuration files. Using packNGo, create a ZIP file that packages generated source code, build information, and CMake configuration files. After relocation, unpack the files by using a standard ZIP utility. Then, build the final library or executable file by using, for example, CMake.

Functions

packNGoPackage generated code in ZIP file for relocation
codebuildCompile and link generated code (Since R2020b)

Topics