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.

projectspec common settings across projects

Hi

I have created a project spec for my projects, it works fine. But i have a lot of repeated settings, and would like to have that moved to a common place, either in a file that is the imported/referenced by each project, or as a common part inside the projectspec file.

Heavily simplified Example:

Current setup:

CPU1:
  compilerBuildOptions=" -v28  -O2 -I commonLib -I cpu1Code"

CPU2:
  compilerBuildOptions=" -v28 -O3 -I commonLib -I cpu2Code"

Wanted setup

common:
  compilerBuildOptions="-v28  -I commonLib"

CPU1:
  compilerBuildOptions="-O2 -I cpu1Code" + common

CPU2:
  compilerBuildOptions="-O3 -I cpu2Code" + common


I have tried using the include tag, but that seams to only work for importing a complete project.

I have tried defining a build variable with the common compiler options, but it will not expand it prperly.

Is this possible with the current projectspec implementation? please advice.