cancel
Showing results for 
Search instead for 
Did you mean: 

How undo "exclude from build" for a file?

RPatt.11
Associate II

Hi,

In STM32CubeIDE 1.12.1 I right-clicked on a .c file in the Project Explorer view and excluded it from build.  Now I want to include it back in my build.  How do I do that from the IDE?

thanks,

russ

1 ACCEPTED SOLUTION

Accepted Solutions
JP_ama
Associate III

Go to the "Exclude from build" dialog again, uncheck the boxes for Debug and Release and hit OK to include the file back into the build.

View solution in original post

4 REPLIES 4
JP_ama
Associate III

Go to the "Exclude from build" dialog again, uncheck the boxes for Debug and Release and hit OK to include the file back into the build.

RPatt.11
Associate II

The file I excluded disappeared from the Project Explorer window.  When I excluded it I right-clicked on it then Resource Configurations->Exclude from build.    How do I get back to the "Exclude from build" window for a file that is missing from the Project Explorer window?

thank you

RPatt.11
Associate II

Wow, never mind.  I see it greyed out at the bottom of the Project Explorer window.  Sorry I wasted your time. :|

RajPadgaonkar
Associate

Answer to this question totally depends on what kind of file you want to undo " exclude the build ".

1) for header files (xxx.h) --> go to header file, left-click and select properties (Alt + enter), navigate to resource section, select  C/C++ build tab. click on configuration tab and select [all configurations]. Uncheck the box Exclude resource from build. Apply and Close. 

2) for source files (xxx.c)  --> left click on .c file and click Resource Configuration and select Reset to Default. 

 

I hope that helps for you, 

Thanks:grinning_face: