Member attributes: OutputSrcDirectory

This attribute determines the destination directory for the generated source files.

Syntax

directory‑name

Discussion

The attribute OutputSrcDirectory specifies the destination directory where generated C source files (files with extension *.c or *.cpp) should be stored in when generating code for the particular profile member. Please note, this attribute has no effect on Platform Packages not generating C code, e.g. the WebGL Platform Package.

If the attribute doesn't specify an absolute path, the path is considered as being relative to the directory of the project itself. If no value is specified for this attribute, Embedded Wizard stores the generated source files within the directory resulting from the attribute OutputDirectory. Thus the attribute OutputSrcDirectory permits you to override the value specified in the attribute OutputDirectory and store the generated source files separately.

The value for this attribute can involve Windows environment variables. For this purpose enclose the environment variable between a pair of % (percent) signs. For example, initializing the attribute with the value %TEMP%\src will cause the generated source files to be stored in the directory src just below the directory where Windows manages your temporary files.

Modify the attribute

To inspect or modify the value of an OutputSrcDirectory attribute, select first the affected profile member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available directory selection assistant you can activate by clicking on the button right to the attribute:

Please note, the attribute can be hidden if the Platform Package selected in the particular profile member doesn't support separate directories for source files. In such case use the attribute OutputDirectory to specify a common directory valid for all generated files. See also the associated attributes OutputIncDirectory and OutputResDirectory.