Other Parts Discussed in Thread: MSPM0G3507
Tool/software:
Hi,
I'm currently working on a project where i'd like to be able to manage drivers files conditionally. What i'm trying to achieve is to be able to exclude or not some
files from the build based on variables. The goal is to be able to quickly enable or not some C files if they are un-needed depending on which board the
project is compiled for. For this reason, manually excluding files with "right click -> exclude file from build" is not satisfying, as the configuration may be shared on git, through CCS variables
or an external config file for example.
Is there a way to achieve this behaviour with CCS ? I've been trying with pre-build steps, by creating a python script that reads a config file and should somehow decide which files will be included or not in the compilation, but unsuccessfully for now.
I'm using Code composer studio 9 for now but may eventually upgrade.
Thanks in advance,
Regards