コード例 #1
0
 Convert(
     this ICommonWinResourceCompilerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.NoLogo.HasValue && settings.NoLogo.Value)
     {
         commandLine.Add("-NOLOGO");
     }
 }
コード例 #2
0
 Convert(
     this ICommonWinResourceCompilerSettings settings,
     Bam.Core.Module module,
     VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
     string condition)
 {
     if (settings.NoLogo.HasValue)
     {
         vsSettingsGroup.AddSetting("SuppressStartupBanner", settings.NoLogo.Value, condition);
     }
 }
コード例 #3
0
 Convert(
     this ICommonWinResourceCompilerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.UseTempFile.HasValue)
     {
         if (settings.UseTempFile.Value)
         {
             commandLine.Add("--use-temp-file");
         }
         else
         {
             commandLine.Add("--no-use-temp-file");
         }
     }
 }
コード例 #4
0
        Convert(
            this ICommonWinResourceCompilerSettings settings,
            Bam.Core.StringArray commandLine)
        {
            if (settings.UseTempFile.HasValue)
            {
                if (settings.UseTempFile.Value)
                {
                    commandLine.Add("--use-temp-file");
                }
                else
                {
                    commandLine.Add("--no-use-temp-file");
                }
            }

            var resource = (settings as Bam.Core.Settings).Module as C.WinResource;

            commandLine.Add(System.String.Format("-o {0}", resource.GeneratedPaths[C.ObjectFile.Key].ParseAndQuoteIfNecessary()));
        }
コード例 #5
0
 Defaults(
     this ICommonWinResourceCompilerSettings settings,
     Bam.Core.Module module)
 {
     settings.NoLogo = true;
 }
コード例 #6
0
 Defaults(
     this ICommonWinResourceCompilerSettings settings,
     Bam.Core.Module module)
 {
     settings.UseTempFile = true; // avoiding a popen error, see https://amindlost.wordpress.com/2012/06/09/mingw-windres-exe-cant-popen-error/
 }