JamPlus manual
c/dotnet - C++/CLI Rules
IncludeModule c/dotnet ;

List of Rules

Rules


rule C.ReferenceDirectories TARGET : DIRECTORIES : THE_CONFIG : THE_PLATFORM

For the given project TARGET, assign the reference DIRECTORIES to the appropriate configuration and platform.

Parameters
TARGETThe target to assign the reference DIRECTORIES to. TARGET is optional if rule ActiveTarget TARGET has been specified. If TARGET is *, the defines are made available globally.
DIRECTORIESThe list of reference directories to apply. Absolute paths are used directly. Relative paths are local to . That is, they are relative to the subdirectory specified via SubDir.
THE_CONFIG(optional) If not specified, the default is all configurations.
THE_PLATFORM(optional) If not specified, the default is all platforms.
# Add c:/some/directory to myproject for all configurations and
# all platforms.
C.ReferenceDirectories myproject : c:/some/directory ;
# Relative path:
C.ReferenceDirectories myproject : ../lib ;

rule C.StrongName TARGET : SNK_NAME

After the executable has been built for TARGET, sign the assembly with the strong name SNK_NAME. This rule must be run AFTER C.Application or C.Library has been run.

Parameters
TARGETThe target representing the executable to assign the strong name to. TARGET is optional if rule ActiveTarget TARGET has been specified.
SNK_NAMEThe name of the keyfile.
C.Library ManagedLuaPlus : $(SRCS) : shared noexportlib ;
C.StrongName ManagedLuaPlus : $(SEARCH_SOURCE)/ManagedLuaPlus.snk ;

rule C.UseDotNet TARGET [ : OPTIONS ]

Applies .NET Framework settings to the specified C++/CLI TARGET.

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

  • link - When linking the assembly, this option sets up the .NET link settings.

# Applies .NET settings to MyLibrary.
C.UseDotNet MyLibrary ;
# Applies .NET settings, including the appropriate linker flags, to MyApplication.
C.UseDotNet MyApplication : link ;