So i have a custom component with several source files (.h and .c), i would like to limit the inclusion of some of this files on the projects depending of one of the component parameters.

It's similar to how the SCB component work, depending on the chosen option (SPI, I2C, UART, etc.) the header and source files of the chosen option are included and the others header and source files are not included.

I had read the custom component author documentation but could not find information on how to do this. Does anyone know if it's possible?