Tool/software: Code Composer Studio
Hi All,
Using CCS 7.2:
I have a large build composed of a main project (producing an .out file) and multiple auxiliary projects (producing library files).
The auxiliary projects are all dependencies of the main project.
Each project (main and/or auxiliary) has several configurations (typically more than two, not limited to the usual Debug / Release scheme).
What I am trying to achieve is to define in the main project some kind of variable (say DEP_LIB_PATH) that would contain something like:
${PROJECT_ROOT)/libs/${ProjName}/${ConfigName}
DEP_LIB_PATH would then be used in the auxiliary projects to figure out where to put the output of the archiver: The archiver output would be defined with something like
${DEP_LIB_PATH}/${ProjName}.lib
(note that the latter ${ProjName} is the library ProjName, not the main project ProjName, since it is used in the auxiliary project).
I'm trying here to avoid hardcoding different DEP_LIB_PATH all over the place for each possible main project configuration, or even worse, for each main / auxiliary project configuration combination.
Now my problems are:
- I have not been able so far to figure out the right combination of configuration gadgets (linked resource, path variable, build variable) to achieve this result.
- It seems that nither ${ProjName} nor ${ConfigName} are not eligible to define a path variable in the Linked Resources of the main project.
- I'm not even sure how to define a variable *in the main project* that would be visible from the auxiliary (dependancy) projects anyway. And a workspace definition does not cut here here.
Bottom line is, I'm very confused. :)
Is what I'm trying to do possible at all?
Could anyone of you All shed some light?
Thanks in advance! /Ph.
P.S.:
I have read (not necessarily properly understood! :-) ) the following TI references:
Portable Projects:
processors.wiki.ti.com/.../Portable_Projects
Project Macros:
processors.wiki.ti.com/.../Project_Macros
Using CCS variables in source code:
processors.wiki.ti.com/.../Using_CCS_Variables_in_source_code
Linking files (workspace vs project path variables)
processors.wiki.ti.com/.../Portable_Projects