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:
TARGET The target to assign the reference DIRECTORIES to. TARGET is optional if rule ActiveProject PROJECT has been specified. If TARGET is *, the defines are made available globally.
DIRECTORIES The 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:
TARGET The target representing the executable to assign the strong name to. TARGET is optional if rule ActiveProject PROJECT has been specified.
SNK_NAME The 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:
TARGET The target to assign the settings to. TARGET is optional if rule ActiveProject PROJECT has been specified.
OPTIONS (optional) The following options are available:
    # Applies .NET settings to MyLibrary.
    C.UseDotNet MyLibrary ;
        
    # Applies .NET settings, including the appropriate linker flags, to MyApplication.
    C.UseDotNet MyApplication : link ;