Share via


Changes to Default Output Directories (Compact 7)

3/12/2014

In Windows Embedded CE 6.0 and earlier versions, the default location for Sysgen output was given by the %_PROJECTROOT%\cesysgen macro in a sources file.

In Windows Embedded Compact 7, a new, global environment variable named SG_OUTPUT_ROOT determines the location of Sysgen output. The default value for this variable (%_PROJECTROOT%\Cesysgen\_TGTPLAT%_%_TGTCPU%) is set in the Wince.bat batch file, but you can override this setting. For example, in a build window opened from Platform Builder, SG_OUTPUT_ROOT is set to %_OSDESIGNROOT%\Wince700\%_TGTPLAT%_%TGTCPU%_%WINCEDEBUG%\cesysgen.

In Compact 7, the following macros are in the %_WINCEROOT\public\common\oak\misc\sources.default file so that they are available to sources projects when Build.exe runs.

SG_OUTPUT_SDKLIB=$(SG_OUTPUT_ROOT)\sdk\lib\$(_CPUINDPATH)
SG_OUTPUT_OAKLIB=$(SG_OUTPUT_ROOT)\oak\lib\$(_CPUINDPATH)
SG_OUTPUT_OAKTGT=$(SG_OUTPUT_ROOT)\oak\target\$(_CPUINDPATH)
SG_OUTPUT_OAKTGTMGD=$(SG_OUTPUT_ROOT)\oak\target\managed
SG_OUTPUT_SDKTGTMGD=$(SG_OUTPUT_ROOT)\sdk\target\managed
SG_OUTPUT_SDK_MANAGED=$(SG_OUTPUT_ROOT)\sdk\target\managed\$(WINCEDEBUG)
SG_OUTPUT_OAK_MANAGED=$(SG_OUTPUT_ROOT)\oak\target\managed\$(WINCEDEBUG)

If you have to access the Sysgen output from a sources file, use $(SG_OUTPUT_ROOT) or one of the listed macros.

See Also

Concepts

Build Changes for Sysgen