This example shows how to export a release version of a project using an export profile. The example export profile streamlines the exported project by removing files from the project which are only useful for the development of the project, but are not necessary for running the project's top-level models.
1. Run the following commands to create and open a working copy of the airframe project.
sldemo_slproject_airframe;
Building with 'MinGW64 Compiler (C)'. MEX completed successfully.
The classification label set is used to define the purpose of each file in the project. This example project adds several new labels to the 'classification' label set: 'analysis', 'upgrade', and 'utility'. These labels are used to identify files which are used for custom analysis tasks, upgrading to the latest version and general purpose utility functions.
Some files in the project are useful for the development of the project, but do not need including in a release version of the project when it is exported. For this example, files labelled in the project with the labels 'analysis', 'test', 'upgrade' and 'artifact' do not need including in the release version of the project.
This example demonstrates how the export profile management feature can be used to exclude files from a project export based on the attached labels.
To view the available export profiles for a project:
2. Click the "Share" button in the Project toolstrip tab.
3. Select the menu item "Manage Export Profiles..."
The Manage Export Profiles dialog box will appear.
The left hand panel shows all of the defined export profiles. The airframe project defines one export profile called 'Release', which should be already be selected in the dialog box.
The export profile shows two panels. The first panels shows the labels which will cause a file to not be exported if attached to a file. The release profile has been defined such that any file which has the 'analysis', 'test', 'artifact', or 'upgrade' label attached will not be exported.
The second panel defines labels which will not be included in the exported project. Here the labels 'analysis' and 'upgrade' are removed because no files in the exported project will use them.
The export profile interface allows new profiles to be defined and existing profiles to be removed.
To use an export profile:
4. Click the "Share" button in the Project toolstrip tab.
5. Select the "Zip Archive".
6. In the project archive dialog, select the export profile to be applied. Select the 'Release' profile to use the profile that is defined by the airframe project.
7. Click the Archive button to export the project using the selected export profile.