Tool/software: Code Composer Studio
I am trying to run a batch script to generate C/C++ files and running into issues with CCS. I can successfully execute the .bat file and generate the source files, but the issue I'm running into is that those generated files are not recognized by CCS until after the build fails (due to it not updating the files after already starting a build).
I have tried several things to no avail:
- Calling the .bat file in the Pre-build steps.
- I tried disabling parallel builds with this step too.
- Creating a separate project entirely with a custom builder that executes the .bat file and adding that project as a dependency in the CCS project (via Properties > CCS Build > Dependencies).
- Same as #1 but set the C/C++ General > Paths and Symbols > References to the generator project.
- Following the example in https://embeddedartistry.com/blog/2019/02/18/using-custom-build-steps-with-eclipse-auto-generated-makefiles/.
I haven't fully been able to get #4 working in order to say it doesn't work. What should my makefile.init file contain if I want ..\path\to\script.bat to execute before building?
I feel like I'm missing something obvious as I think this would be a common use case for projects. Is there something else I should be doing to do this?