| |||
| Home > System Canvas Reference > File/Path Properties dialog | |||
The File/Path Properties dialog shown in Figure 3.23 displays properties for the file and lets you specify build and compile options. For details of how the settings made from this dialog affect the project file, see Alphabetical list of project parameter IDs.
On Windows, the direction of the slash characters separating
directories appears to be reversed. You can enter slash characters
in either direction but they are always displayed as forward slashes
(/). This does not affect operation.
Select a component from the Component window Files tab, right click to open the context menu, then click Properties to display the properties for the selected file.
The General tab contains:
The name of the file.
The File Properties dialog is modeless. A different file can be selected without closing the dialog. If, however, any of the properties for the previously selected file have been modified, a warning message is displayed to prompt you to save the changed contents for the current file before displaying the properties for the selected file.
The full path to the file.
The repository file that contains this component entry.
A brief description of the component type.
The
status of the file. For example, file does not exist.
Select the platforms that the component will support:
Linux
Win32 Release run-time library
Win32 Debug run-time library.
Select the compiler to use to compile this component. The Compiler dropdown list enables you to specify the preferred compiler as:
no preference
Microsoft Visual C++ 2005 SP1
Microsoft Visual C++ 2008
gcc version found in $PATH at compile time
gcc-3.4 - gcc version 3.4.3
gcc-4.1 - gcc version 4.1.2
The Build actions tab enables assigning actions to selected files:
The actions are determined by the extensions:
.lisaa LISA source file that is parsed by simgen.
.c .cpp .cxxa C or C++ source file that is compiled.
.a .oan object file that is linked on Linux.
.lib .objan object file that is linked on Windows.
directory_path/is an include directory that is added to the search path used by the compiler.
.lisa,
.sgproj, and .sgrepoa deploy file and is copied to the build directory.
Excludes the selected file from build and deploy. This can be useful for examples, notes, or temporarily disabled files.
The file extension is ignored. Use the check boxes to specify the action as one or more of:
The file is passed to the Simulator Generator as a LISA file. This option must not be selected if the file is not written in LISA.
The file is added to the list of files that are compiled as C/C++ code during the build process.
The file is linked with the object code during the build process.
The file is copied into the build directory. This option can be used, for example, to add dynamic link libraries that are required to run the generated system model.
The path of the parent directory that holds the file is added to the list of additional include directories for the compiler.
The path of the parent directory that holds the file is added to the list of additional library directories for the compiler.