Export (0) Print
Expand All

<BuildPassName>_CONSUMES (Compact 2013)

3/26/2014

This macro instructs the Build tool to build this directory after the directory that contains the corresponding <BuildPassName>_PRODUCES macro has been built.

You use this macro in your Sources file. It only applies during the relevant pass of the build process. The directory with a Sources file that contains a <BuildPassName>_PRODUCES macro with a particular value will be built before any directories with a corresponding <BuildPassName>_CONSUMES macro value. This happens regardless of the directories' position in the Dirs File. Values for these macros are case-insensitive strings.

The implementations of this macro are:

  • ASN_CONSUMES
  • COMPILE_CONSUMES
  • EXPLIB_CONSUMES
  • LIB_CONSUMES
  • LINK_CONSUMES
  • LOCALIZE_CONSUMES
  • MANAGEDDLL_CONSUMES
  • MANAGEDEXE_CONSUMES
  • MANAGEDMOD_CONSUMES
  • MANAGEDRESX_CONSUMES
  • MANAGEDWIN_CONSUMES
  • MC_CONSUMES
  • MIDL_CONSUMES
  • POSTBUILD_CONSUMES
  • PRECOMPHEADER_CONSUMES
  • RENUMBERICONIDS_CONSUMES
  • RES2RES_CONSUMES
  • THUNK_CONSUMES
  • WCEFILES0_CONSUMES

These implementations correspond to the build passes defined in %_WINCEROOT%\Public\Common\Oak\Misc\Buildtable.xml.

The following code example shows three Sources files for three projects that use the <BuildPassName>_PRODUCES and <BuildPassName>_CONSUMES macros. In this example, projects A and B will be built before project C during the MIDL pass.

#PROJECT A
MIDL_PRODUCES=global_headers
 
#PROJECT B
MIDL_PRODUCES=ProjectB_files
 
#PROJECT C
MIDL_CONSUMES=global_headers ProjectB_files
Show:
© 2014 Microsoft