Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to exclude a file from build in Eclipse

📅 2014-Feb-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ eclipse, nsight ⬩ 📚 Archive

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


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧