Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse c++ exclude multiple files from build at once?

Tags:

c++

eclipse

build

Instead of right clicking each one individually, ticking 'exclude from build', etc And how to include them back en masse ?

Thanks

like image 446
kellogs Avatar asked Feb 10 '12 23:02

kellogs


2 Answers

Create a new folder inside Eclipse (let's name it excluded). Right-click on excluded and use Resource Configuration->Exclude From Build..., check which builds you want it excluded from and dismiss the dialog. Now you can disable files by selecting a group of files and dragging them to this folder. Include them back in the build by dragging them from excluded back to their original location. Note that once marked as excluded the folder appears near the bottom with a new icon with a slash through it.

like image 34
Tod Avatar answered Nov 07 '22 19:11

Tod


Highlight one of your file's by left clicking it. Then, to select multiple files, hold down shift or control then left click on another file. Shift will select all files between what you selected. Control will add just the one. Then, let go of shift (or control), then right click one of the selected files, then chose "Resource Configurations > Exclude from build...". It will exclude them all. Similarly, repeat the step to add them back.

like image 174
paquetp Avatar answered Nov 07 '22 20:11

paquetp