5.3.1 Add Existing Files and Add New File dialogs (Component window)

This section describes these dialogs that add components, protocols, libraries, repositories, or source code to a project.

Displaying the Add Existing Files and Add New File dialogs (Component window)

This section describes how to display dialogs that add components, protocols, libraries, repositories, or source code to a project.

Procedure

  1. Display a dialog by right-clicking in the Component window and selecting from the context menu:
    • Add.

    • Add New.

Using the Add Existing Files and Add New File dialogs (Component window)

This section describes how to add a file using the Component window context menu.

Procedure

  1. Select the Components, Protocols, or Files tab in the Component window.
    To add a file at the top level of the file list, select the top entry. To add a file to an existing repository in the file list, select the repository.
  2. Right-click in the Component window and select Add or Add New from the context menu.
    Option Description
    Add In the Add Existing Files dialog, go to the file and select it.
    Add New In the Add New File dialog, go to the directory to contain the file and enter the name.
    Save time with the Recently selected files drop-down list. To remove a file, mouse over it and press Delete, or right-click and select Remove from list from the context menu.
  3. Click Open to add the file and close the dialog.

Postrequisites

Library files, those with .lib or .a extensions, need build actions and a platform.

Using environment variables in filepaths

Environment variables in filepaths enable switching to new repository versions without modifying the project.

For example, using $(PVLIB_HOME)/etc/sglib.sgrepo as the reference to the components of the Fast Models Portfolio enables migration to future versions of the library by modifying environment variable PVLIB_HOME.

Note:

On Microsoft Windows, Unix syntax is valid for environment variables and paths, for example $PVLIB_HOME/etc/my.sgrepo.

Edit a filepath through the File Properties dialog:

Procedure

  1. Select the file and click select Properties from the context menu.
  2. Edit the File entry to modify the filepath.

Assigning platforms and compilers for libraries

This section describes how to set the operating system that a library is for, and the compiler that built it.

Procedure

  1. Use the File Properties dialog to specify the operating system and compilers by checking the appropriate boxes in the Supported platforms pane.

    Microsoft Visual Studio distinguishes between debug and release versions.

Non-ConfidentialPDF file icon PDF versionARM 100965_1101_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.