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.

CCS5 Build Variables

CCS 5.2.0.00069

I want to share some build variables between the various projects in my workspace.

I can set them globally under the Window, Preferences, C/C++, Build, Build Variables page, but I do not see any way to save the variables in a version control system or to share them with the other developers on my team.

Is there any good way to do this?

Thanks,

  Peter Steinberg

  • Hi Peter,

    peter steinberg said:
    I can set them globally under the Window, Preferences, C/C++, Build, Build Variables page,

    Doing it this way will save it in your workspace metadata folder. You may want to set them in your project instead. You can do this in the project properties.The negatives of saving it in your project is that people will have to modify the project to change the value of the variable. This can be a pain for version control with regards to having to update the project files.

    Thanks

    ki

  • I have a group of 30 or so related projects, so adding the few build variables to the individual project settings is not the real solution, since keeping them synchronized will be a giant pain.

  • You can create a single variables file that has your build variables defined. Then this file can be shared. The default name for this file is vars.ini.

    ex:

    MyBuildVariable=C:\some\path

    Importing this file into your workspace will add all variables to the workspace

    File > Import > Code Composer Studio > Build Variables

    Thanks

    ki

  • That should work.

    Thanks,

      Peter