JamPlus manual
c/mfc - C++ MFC Rules
IncludeModule c/mfc ;

List of Rules

Rules


rule C.UseMFC TARGET [ : OPTIONS ]

Applies settings to the specified TARGET, allowing it to build an MFC-enabled project on Win32 or Win64 targets.

Parameters
TARGETThe target to assign the MFC settings to. TARGET is optional if rule ActiveTarget TARGET has been specified.
OPTIONS(optional) The following options are available:

  • link - When linking the executable or DLL, this option sets up the MFC link settings.
  • shared - Use this option when MFC is to be used as a shared library. The default is to statically link it.

# Applies MFC settings to MyLibrary.
C.UseMFC MyLibrary ;
# Applies MFC settings, including the appropriate linker flags, to MyApplication.
C.UseMFC MyApplication : link ;
# Applies MFC settings to MyApplication. Uses the MFC runtime DLLs.
C.UseMFC MyApplication : link shared ;