Defaults( this IArchiverSettings settings, Bam.Core.Module module) { settings.Ranlib = true; settings.DoNotWarnIfLibraryCreated = true; settings.Command = MingwCommon.EArchiverCommand.Replace; }
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"); } }