Keil Logo

µVISION: EXCLUDING FILES FROM A TARGET


Information in this article applies to:

  • µVision Version 2
  • µVision Version 3

QUESTION

I have a project that I need to generate for two different platforms with different layouts. Each platform needs a different library (for example A.LIB and B.LIB).

In µVision, is there a way to include some files in one target but not in another?

ANSWER

Yes, µVision supports Project Targets which are various configurations of a single project.

Project Targets are created with Project - Components, Environment and Books - Project Components. You need to add all files that belong to your project even when they should be excluded in some Project Targets.

Source Files or Groups can be excluded from a Project Target in the Options dialog that is available in the context menu of the Project Workspace - Files tab. Right click on a file or file group and open the dialog Options - Properties. Disable the option Include in Target Build which excludes files from being compiled or linked.

MORE INFORMATION

  • Getting Started User's Guide, Creating Applications, Project Targets and File Groups
  • µVision3 User's Guide, Creating Applications, Project Targets and File Groups
  • µVision3 User's Guide, Creating Applications, Tips and Tricks, Properties Dialog

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Monday, November 28, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.