µVISION: EXCLUDING FILES FROM A TARGET
Information in this article applies to:
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?
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.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Monday, November 28, 2005
of your data.