次の方法で共有


WINCETARGETFILE0 (Compact 2013)

3/26/2014

This macro definition specifies nonstandard target files that Build.exe should build before Build.exe builds the source code in the current directory.

For example, the macro definition might specify the path and file name for a target binary source (.res) file if the file is copied to a different location.

Any target files that you specify using WINCETARGETFILE0 are added to the list of dependencies that must be satisfied to generate a successful build. WINCETARGETFILE0 is always added at the top of this list.

If this macro definition is present, custom rules that you define in Makefile.inc, which is an optional file that can exist in the same directory as a sources file, are also applied.

Example

The following code example shows a sources file that adds the nonstandard target file MySpecialPassFile to the list of dependencies.

WINCETARGETFILE0=MySpecialPassFile

The following code example shows a Makefile.inc file that contains a custom rule for MySpecialPassFile.

myspecialpass0file: dependent_file0
   RunMySpecialProgram dependent_file0

See Also

Reference

Build Tool (Build.exe)
Windows Embedded Compact Build Environment Tool (Wince.bat)

Concepts

Sources File