コード例 #1
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.NoLogo)
     {
         commandLine.Add("-NOLOGO");
     }
     if (settings.GenerateManifest)
     {
         commandLine.Add("-MANIFEST");
     }
     else
     {
         commandLine.Add("-MANIFEST:NO");
     }
     // safe exception handlers only required in 32-bit mode
     if (((settings as Bam.Core.Settings).Module as C.CModule).BitDepth == C.EBit.ThirtyTwo)
     {
         if (settings.SafeExceptionHandlers)
         {
             commandLine.Add("-SAFESEH");
         }
         else
         {
             commandLine.Add("-SAFESEH:NO");
         }
     }
 }
コード例 #2
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.Module module,
     VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
     string condition)
 {
     vsSettingsGroup.AddSetting("SuppressStartupBanner", settings.NoLogo, condition);
 }
コード例 #3
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.NoLogo)
     {
         commandLine.Add("-NOLOGO");
     }
 }
コード例 #4
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     foreach (var rpath in settings.RPath)
     {
         commandLine.Add(System.String.Format("-Wl,-rpath,{0}", rpath.Parse()));
     }
 }
コード例 #5
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     foreach (var rpath in settings.RPath.ToEnumerableWithoutDuplicates())
     {
         commandLine.Add(System.String.Format("-Wl,-rpath,{0}", rpath.ToString()));
     }
 }
コード例 #6
0
        Convert(
            this ICommonLinkerSettings settings,
            Bam.Core.Module module,
            VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
            string condition)
        {
            vsSettingsGroup.AddSetting("SuppressStartupBanner", settings.NoLogo, condition);

            var solution = Bam.Core.Graph.Instance.MetaData as VSSolutionBuilder.VSSolution;
            var project  = solution.EnsureProjectExists(module);
            var config   = project.GetConfiguration(module);

            config.EnableManifest = settings.GenerateManifest;
        }
コード例 #7
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.Module module,
     XcodeBuilder.Configuration configuration)
 {
     if (settings.RPath.Count > 0)
     {
         var option = new XcodeBuilder.MultiConfigurationValue();
         foreach (var path in settings.RPath)
         {
             option.Add(path.Parse());
         }
         configuration["LD_RUNPATH_SEARCH_PATHS"] = option;
     }
 }
コード例 #8
0
 Convert(
     this ICommonLinkerSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.NoLogo)
     {
         commandLine.Add("-NOLOGO");
     }
     if (settings.GenerateManifest)
     {
         commandLine.Add("-MANIFEST");
     }
     else
     {
         commandLine.Add("-MANIFEST:NO");
     }
 }
コード例 #9
0
        Convert(
            this ICommonLinkerSettings settings,
            Bam.Core.Module module,
            VSSolutionBuilder.VSSettingsGroup vsSettingsGroup,
            string condition)
        {
            vsSettingsGroup.AddSetting("SuppressStartupBanner", settings.NoLogo, condition);

            var solution = Bam.Core.Graph.Instance.MetaData as VSSolutionBuilder.VSSolution;
            var project  = solution.EnsureProjectExists(module);
            var config   = project.GetConfiguration(module);

            config.EnableManifest = settings.GenerateManifest;

            // safe exception handlers only required in 32-bit mode
            if (((settings as Bam.Core.Settings).Module as C.CModule).BitDepth == C.EBit.ThirtyTwo)
            {
                vsSettingsGroup.AddSetting("ImageHasSafeExceptionHandlers", settings.SafeExceptionHandlers, condition);
            }
        }