Class CompilerCommon
Common realization of ICompiler
Inheritance
object
CompilerCommon
Implements
Namespace: BuildSystem.ProjectList.Helpers
Assembly: BuildSystem.ProjectList.dll
Syntax
public class CompilerCommon : Object, ICompiler
Constructors
CompilerCommon(ILogger?, ICompilerProps, string)
Common realization of ICompiler
Declaration
public CompilerCommon(ILogger? logger, ICompilerProps props, string tempDir)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger | logger | |
| ICompilerProps | props | |
| string | tempDir |
Properties
Props
Properties of helper object
Declaration
public ICompilerProps Props { get; }
Property Value
| Type | Description |
|---|---|
| ICompilerProps |
Methods
GetCompileQueue(IProjectList, ProjectFilter?)
Analyze projects and dependencies between them. Return queue of projects, which should be compiled
Declaration
public Queue<IProject> GetCompileQueue(IProjectList projects, ProjectFilter? filter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IProjectList | projects | |
| ProjectFilter | filter |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.Queue<><IProject> |
GetCompileReason(IProject, Variant, IProjectList, Dictionary<string, string?>)
Analyze project to understand, if it should be compiled
Declaration
public string? GetCompileReason(IProject project, Variant variant, IProjectList projects, Dictionary<string, string?> analyzeParams)
Parameters
| Type | Name | Description |
|---|---|---|
| IProject | project | |
| Variant | variant | |
| IProjectList | projects | |
| System.Collections.Generic.Dictionary<,><string, string> | analyzeParams |
Returns
| Type | Description |
|---|---|
| string | String representation of reason, why project should be compiled. Null if project should not be compiled |