Main Content

Application source files

Add source files to Polyspace Platform project

Since R2024a

Description

Add source files to a Polyspace Platform (Polyspace Test) project or see source files explicitly added to the project.

Set Option

User interface (Polyspace Platform (Polyspace Test), desktop products only): In your project configuration, the option is on the Project tab.

Why Use This Option

You typically need this option to see source files explicitly added to a project.

In a regular workflow, you might be adding source files using one of these methods:

  • Option Add Source File(s) on the Polyspace® Platform toolstrip.

  • Right-click option Add Source File(s) on the Code node of a Polyspace Platform project.

You see each source file as a new row listed under the Application source files option. The source file path is added relative to the project path. For more information, see Create Project and Add Source Files in Polyspace Platform User Interface (Polyspace Test).

You can also use this option to add source files by absolute path, or to add source files using a project or system environment variable. These features are not available when adding files using the other methods.

Settings

You can add a source file by absolute or relative path:

  • Select Add file button to add the absolute path to a source file.

  • Select Add file as relative path button to add a source file relative to the project path.

You can also directly enter a path after adding an empty row using the Add empty row button button, or edit an existing path. Editing an existing path is useful when you use a project configuration variable or a system environment variable as a shorthand in your paths. You can first enter an absolute path using the Add file button button and replace part of the path with a project configuration variable or system environment variable. For more information, see Project configuration variables (Polyspace Test).

To remove a source file, select the corresponding row and click Remove selected button.

Version History

Introduced in R2024a