Main Content

Code Packaging and Relocation

R2026b
Package and share or relocate code

Package generated code files for sharing or relocation to another environment, such as one that does not provide MATLAB® and Simulink® products. 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 and build the final library or executable file by using, for example, CMake.

If you generate code in a continuous integration (CI) pipeline, you can configure the pipeline to automatically package the generated code and manage code generation artifacts.

Functions

packNGoPackage generated code in ZIP file for relocation
codebuildCompile and link generated code

Topics