cancel
Showing results for 
Search instead for 
Did you mean: 

How can I exclude a file from the .extsettings?

Jansunil
Associate II

Hello Team,

I am trying to use the .extsettings to handle my project structure in the stm32cubeIDE. I want to exclude a particular file from the list of source files that I have in my directory. However, I did not find any solution for this in the user maual - https://www.st.com/resource/en/user_manual/um1718-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf

 

Following is my folder structure:

Jansunil_0-1698050247275.png

The .ioc and the .extsettings are placed in the directory where the "Application" folder is present.

Out of which, I want to exclude file_2.c and file_2.h from the "Application" folder via the .extsettings. I am looking at a solution which does not expect one to change the state of the "Exclude resource from build" via the cubeIDE as I am trying to control this information via the .extsettings itself.

 

 

Any Leads on this would really be of help.

 

Thank you,

Janani

1 REPLY 1
Pavel A.
Evangelist III

AFAIK, the .extsettings file has no provisions for your need. But you can use post-generation script which exists in recent versions of CubeMX to "fix" the generated project.