Exemple #1
0
 Defaults(
     this C.ICommonLinkerSettingsWin settings,
     Bam.Core.Module module)
 {
     settings.SubSystem            = ESubsystem.Console;
     settings.ExportDefinitionFile = null;
 }
 Delta(
     this C.ICommonLinkerSettingsWin delta,
     C.ICommonLinkerSettingsWin lhs,
     C.ICommonLinkerSettingsWin rhs)
 {
     delta.SubSystem = (lhs.SubSystem != rhs.SubSystem) ? lhs.SubSystem : null;
 }
 Intersect(
     this C.ICommonLinkerSettingsWin shared,
     C.ICommonLinkerSettingsWin other)
 {
     if (shared.SubSystem != other.SubSystem)
     {
         shared.SubSystem = null;
     }
 }
Exemple #4
0
        Convert(
            this C.ICommonLinkerSettingsWin settings,
            Bam.Core.Module module,
            VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
            string condition)
        {
            switch (settings.SubSystem.Value)
            {
            case C.ESubsystem.Console:
            case C.ESubsystem.Windows:
                vsSettingsGroup.AddSetting("SubSystem", settings.SubSystem.Value.ToString(), condition);
                break;

            default:
                throw new Bam.Core.Exception("Unrecognized subsystem: {0}", settings.SubSystem.Value.ToString());
            }
        }
Exemple #5
0
        Convert(
            this C.ICommonLinkerSettingsWin settings,
            Bam.Core.StringArray commandLine)
        {
            switch (settings.SubSystem.Value)
            {
            case C.ESubsystem.Console:
                commandLine.Add("-SUBSYSTEM:CONSOLE");
                break;

            case C.ESubsystem.Windows:
                commandLine.Add("-SUBSYSTEM:WINDOWS");
                break;

            default:
                throw new Bam.Core.Exception("Unrecognized subsystem: {0}", settings.SubSystem.Value.ToString());
            }
        }
Exemple #6
0
        Convert(
            this C.ICommonLinkerSettingsWin settings,
            Bam.Core.StringArray commandLine)
        {
            switch (settings.SubSystem.Value)
            {
            case C.ESubsystem.Console:
                commandLine.Add("-SUBSYSTEM:CONSOLE");
                break;

            case C.ESubsystem.Windows:
                commandLine.Add("-SUBSYSTEM:WINDOWS");
                break;

            default:
                throw new Bam.Core.Exception("Unrecognized subsystem: {0}", settings.SubSystem.Value.ToString());
            }
            if (null != settings.ExportDefinitionFile)
            {
                commandLine.Add(System.String.Format("-DEF:{0}", settings.ExportDefinitionFile.ToStringQuoteIfNecessary()));
            }
        }
Exemple #7
0
        Convert(
            this C.ICommonLinkerSettingsWin settings,
            Bam.Core.StringArray commandLine)
        {
            switch (settings.SubSystem.Value)
            {
            case C.ESubsystem.Console:
                commandLine.Add("-Wl,-subsystem,console");
                break;

            case C.ESubsystem.Windows:
                commandLine.Add("-Wl,-subsystem,windows");
                break;

            default:
                throw new Bam.Core.Exception("Unrecognized subsystem: {0}", settings.SubSystem.Value.ToString());
            }
            if (null != settings.ExportDefinitionFile)
            {
                // just add it into the command line
                commandLine.Add(settings.ExportDefinitionFile.ToStringQuoteIfNecessary());
            }
        }
 Clone(
     this C.ICommonLinkerSettingsWin settings,
     C.ICommonLinkerSettingsWin other)
 {
     settings.SubSystem = other.SubSystem;
 }
 Empty(
     this C.ICommonLinkerSettingsWin settings)
 {
 }
 Defaults(
     this C.ICommonLinkerSettingsWin settings,
     Bam.Core.Module module)
 {
     settings.SubSystem = ESubsystem.Console;
 }