I'd like to run the program svnversion and have its output set as a preprocessor define. For example, when using gcc and Linux I might put this in my makefile:
CFLAGS+=-DSVNVERSION="\"`svnversion`\""
How do I accomplish this same task using CCS5?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'd like to run the program svnversion and have its output set as a preprocessor define. For example, when using gcc and Linux I might put this in my makefile:
CFLAGS+=-DSVNVERSION="\"`svnversion`\""
How do I accomplish this same task using CCS5?
Hello,
You can run pre-build steps with CCS projects but there is no clean way to set a preprocessor define used by the project. If you wish to keep this type of functionality, I suggest sticking with makefiles projects (you can build makefile projects from inside the CCS environment also)
Thanks
ki
Hi,
Yes, makefiles are available in Windows as well. The procedure to create makefile projects is shown in the page below:
http://processors.wiki.ti.com/index.php/How_to_create_GCC_projects_in_CCSv5
Hope this helps,
Rafael