Пример #1
0
 Defaults(
     this IArchiverSettings settings,
     Bam.Core.Module module)
 {
     settings.Ranlib = true;
     settings.DoNotWarnIfLibraryCreated = true;
     settings.Command = MingwCommon.EArchiverCommand.Replace;
 }
Пример #2
0
        Convert(
            this IArchiverSettings settings,
            Bam.Core.StringArray commandLine)
        {
            if (settings.Ranlib)
            {
                commandLine.Add("-s");
            }
            if (settings.DoNotWarnIfLibraryCreated)
            {
                commandLine.Add("-c");
            }
            switch (settings.Command)
            {
            case GccCommon.EArchiverCommand.Replace:
                commandLine.Add("-r");
                break;

            default:
                throw new Bam.Core.Exception("No such archiver command");
            }
        }