Hello,
I am trying to add the Texas Instruments Code Composer Studio compiler to CB.
But I am running into several problems :
1) do the following variables exist ? and if not can they be created ?
- the objects output directory, this can be specified in the Target configuration (for example ./TIobjs), but I need it as a variable in the advanced compiler/linker settings
TI compiler needs an option like this : -fr"./TIDebugObjs" just telling it where to put the obj's, and the output file needs not to be specified, here's a full compiler command :
"C:\CCStudio\C6000\cgtools\bin\cl6x" -q -o2 -fr"../tiRelease" -i"../inc" -i"../src" -i"../../General/inc" -ml3 -mv6400
[email protected]"../Release.lkf" "Codec.cpp"
--> so no -c option, no -o option
- maybe also the output directory for the static library/exe/... (could reuse the directory for the obj's for this)
2) self made variables show up weird or incorrect ?
As a workaround I tried to create an custom variable for the compiler :
objects_output_dir=".TIDebugobjs"
and changed the compiler line macro to :
$compiler $options $includes $file -fr$(objects_output_dir)
but i get replaced wrong :
a)$objects_output_dir --> conflict with $objects, this latter goes first (so no longest substitution)
b)$(objects_output_dir) --> no more conflict but during compile we get the following :
cl6x.exe -g -q -mv6400 -I"..\General\inc" -I"inc" -I"C:\CCStudio\C6000\cgtools\include" src\CodecDebug.cpp -fr$(objects_output_dir)
No substitution ? It seems like it, though maybe it was substituted.
Note also the filename of the cpp, it contains a part of the relative path, sources are in a subdir "src" of the project directory. But maybe this latter thing can be dealed with, you just get in the obj's directopry also that src subdir and so on ..., just need to specify it then correctly to the linker.
3) is the target name available as variable ?
kind regards,
Lieven