Skip to main content

The compilerPreprocessorSymbols definition

note

Work in progress. It is not yet clear where these definitions should be located.

Purpose

Specify compiler specific preprocessor symbols that should be included in the build process when this object is active and enabled.

Syntax

{
"compilerPreprocessorSymbols": {
"<toolchain-regexp>": {
"<tool-name-regexp": [ "<name>",... ],
...
}
},
...
}

The value of the compilerPreprocessorSymbols property is a map of toolchain specific objects, matched by a regular expression.

Default value

If missing, the current object will not contribute any preprocessor symbols to the build.

Description

Generally preprocessor symbols are defined at the top level and apply to all sources that enter the build.

In some cases it might be necessary to define preprocessor symbols for each component.

TODO

Examples

{
"cdlComponent": {
"lists": {
...
"compilerPreprocessorSymbols": {
".*": {
"(c|cpp)-compiler": [
"MY_SYMBOL",
"MY_VALUED_SYMBOL=42"
]
}
},
...
}
}
}

See also

  • ...

eCos reference

  • ...