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.
Hi !!
How do I exclude certain files from build for certain configurations of the project using the CCSv5 command line project creation tool ? I am using the following command
./eclipsec.exe -noSplash -data $WORKSPACE -clean -application com.ti.ccstudio.apps.projectCreate -ccs.rts ""\
-ccs.name $NAME -ccs.device $DEVICE -ccs.location $LOCATION -ccs.cgtVersion $TOOL_VERSION \
-ccs.configurations Release Release_echo \
-ccs.artifactName "pa" -ccs.setCompilerOptions "$I14_DEFINES" \
$FILES $FILES_i14 $LIBS $IROM_LIBS @configurations Release ...
I wish to not build certain files for the the Release_echo configuration . How do I specify that ?
Regards and Thanks,
Maya Kamath
Maya,
I did some tests here but unfortunately I couldn't find a way to exclude the files during project creation using the command line. What I did was specify a different list of source files per configuration and copied or linked them using the -ccs.copyFile or -ccs.linkFile commands. A list of the parameter syntax can be seen by issuing the command:
eclipsec -noSplash -application com.ti.ccstudio.apps.projectCreate
Maybe others will be able to comment further...
Hope this helps,
Rafael
Rafael,
Thanks - I figured out that using -ccs.linkFile with @configurations Release commands was the way to go and that solves my problem.
Regards,
Maya Kamath
Rafael,
Sorry - this still doesn't work. For ex I have specified -ccs.linkFile \"T:\pa/boards/e17/drivers/bufcpy.c\" @configurations Release_echo but find that in the final project this file is included for the Release configuration also. It does not seem to have any effect. Both configurations seem to have all the files in spite of adding @configurations Release_echo or @configurations Release with each -ccs.linkFile command.
Regards,
Maya Kamath
Maya,
Very interesting. I was able to create the project with excluded files by using the following command line syntax:
eclipsec -noSplash -data C:\Users\user\workspace_v5_3_0 -application com.ti.ccstudio.apps.projectCreate -ccs.name cmdpjt01 -ccs.device com.ti.ccstudio.deviceModel.C6000.GenericC674xDevice -ccs.linkFile hello.c @dir C:\Users\user\testcases\Hello_test @configurations Debug -ccs.linkFile sine.c @dir C:\Users\user\testcases\Sinewave_C6000 @configurations Release
The project was then created with the following build configurations:
One remark: I had some trouble with one of the workspaces (it was throwing a silly exception) and therefore I created this in a brand-new workspace. Maybe that could be the case?
Hope this helps,
Rafael
Rafael,
I am using CCSv5.2.1. Is that a problem ?
I have another issue -- let me know if I need to create a separate thread. Basically I cant seem to create a project in a non empty directory using the command line tool. If I specify a non empty directory in the -ccs.location option, I get an error saying "A file or directory with name 'pa_i14_evmda830_1' already exists at location 't:\pa\f\s19\i14\evmda830' " even though t:\pa\f\s19\i14\evmda830 directory doesnt have any ccs files - it does have source and header files.
Regards,
Maya Kamath