How to exclude a file from build in Eclipse

There are some source files which you might like to have in your Eclipse project, but might not want them to be built. Or sometimes you might want some files to be built for a certain build configuration and want it to be excluded from another build configuration.

To do this, right-click on the file in the Project Explorer, choose Resource Configurations > Exclude from Build and choose the configurations that you want. To completely exclude the file, choose all the available configurations.

Tried with: NVIDIA Nsight 5.5 and Ubuntu 12.04 LTS

Advertisements

One thought on “How to exclude a file from build in Eclipse

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.