Hi Alice,
I have been able to successfully use #ifdef, so I know that feature is working well.
My question is at a higher level. I'd like to build different project binaries out of a common source tree. With other IDEs I have accomplished this through the use of multiple IDE projects that can be compiled separate from one another. All of these projects referenced the same source code. The source code itself was prepared with #ifdefs in order to correctly handle which project was building it.
An example would be building a bootloader image and a MainApp image out of a common source tree. Both the bootloader and MainApp would be able to use a UART driver or a FLASH driver that had been written in the common source tree. The MainApp could also use a display driver, and the bootloader could completely ignore the display driver in this system. This allows me to create customized project binaries for each configuration I require, building only the modules in my codebase each configuration requires. Does this example make sense?
As KDS uses a directory based project as opposed to what an IDE like Keil or IAR does, with an explicit file/set of files comprising the project, I am wondering what the best way to achieve the same goal would be.
Thanks for the response!
-Erik