4.10. File/Path Properties dialog

The File/Path Properties dialog shown in Figure 4.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.

Note

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.

Figure 4.23. File/Path Properties dialog, General tab

File/Path Properties dialog, General tab

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:

File or path

The name of the file.

Note

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.

Absolute path

The full path to the file.

Repository

The repository file that contains this component entry.

Type

A brief description of the component type.

Info

The status of the file. For example, file does not exist.

Supported platforms

Select the platforms that the component supports:

  • Linux

  • Win32 Release run-time library

  • Win32 Debug run-time library.

Compiler

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

Figure 4.24. File/Path Properties dialog, Build actions tab

File/Path Properties dialog, Build actions tab

The Build actions tab enables assigning actions to selected files:

Default actions depending on file extension

The actions are determined by the extensions:

.lisa

a LISA source file that is parsed by simgen.

.c .cpp .cxx

a C or C++ source file that is compiled.

.a .o

an object file that is linked on Linux.

.lib .obj

an object file that is linked on Windows.

directory_path/

is an include directory that is added to the search path used by the compiler.

All other files except for .lisa, .sgproj, and .sgrepo

a deploy file and is copied to the build directory.

Ignore

Excludes the selected file from build and deploy. This can be useful for examples, notes, or temporarily disabled files.

Customize actions

The file extension is ignored. Use the check boxes to specify the action as one or more of:

LISA - input file passed to Simulator Generator as LISA

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.

Compile - compile as C/C++ source code

The file is added to the list of files that are compiled as C/C++ code during the build process.

Link - input file for linker

The file is linked with the object code during the build process.

Deploy - copy to build directory

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.

Include path - add the file’s path to additional include directories

The path of the parent directory that holds the file is added to the list of additional include directories for the compiler.

Library path - add the file’s path to additional library directories

The path of the parent directory that holds the file is added to the list of additional library directories for the compiler.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K
Non-ConfidentialID110210