Exemplo n.º 1
0
        public void ConfigureMake(Configuration conf, CrossTarget target)
        {
            conf.ProjectFileName = "[project.Name]_[target.Platform]_[target.Toolset]";

            conf.Options.Add(Options.Makefile.Compiler.Exceptions.Enable);
            conf.Options.Add(Options.Makefile.Compiler.Warnings.MoreWarnings);
            conf.Options.Add(Options.Makefile.Compiler.TreatWarningsAsErrors.Enable);

            if (target.Toolset == Toolset.Clang)
            {
                conf.Options.Add(Options.Makefile.General.PlatformToolset.Clang);
            }
            else
            {
                conf.Options.Add(Options.Makefile.General.PlatformToolset.Gcc);
            }

            conf.Options.Add(Options.Makefile.Compiler.CppLanguageStandard.Cpp11);
            conf.AdditionalCompilerOptions.Add("-pthread");
            conf.AdditionalLinkerOptions.Add("-pthread");

            if (target.Toolset == Toolset.GCov)
            {
                conf.AdditionalCompilerOptions.Add("-fprofile-arcs");
                conf.AdditionalCompilerOptions.Add("-ftest-coverage");
                conf.AdditionalLinkerOptions.Add("-fprofile-arcs");
                conf.AdditionalLinkerOptions.Add("-ftest-coverage");
            }
        }
Exemplo n.º 2
0
        public void ConfigureVS(Configuration conf, CrossTarget target)
        {
            conf.Options.Add(Options.Vc.Compiler.Exceptions.Enable);
            conf.Options.Add(Options.Vc.General.WarningLevel.Level4);
            conf.Options.Add(Options.Vc.General.TreatWarningsAsErrors.Enable);
            conf.Options.Add(new Options.Vc.Compiler.DisableSpecificWarnings("4290"));             // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)

            conf.Defines.Add("_CRT_SECURE_NO_WARNINGS");
            conf.Defines.Add("_CRT_NONSTDC_NO_DEPRECATE");
        }
Exemplo n.º 3
0
        public void ConfigureAll(Configuration conf, CrossTarget target)
        {
            conf.ProjectPath     = "[project.SharpmakeCsPath]" + Globals.PathToGen;
            conf.ProjectFileName = "[project.Name]_[target.Platform]_[target.DevEnv]";

            conf.IncludePaths.Add("[project.SharpmakeCsPath]" + Globals.PathToSimpleTest);

            conf.IntermediatePath = "[project.SharpmakeCsPath]" + Globals.PathToBuild + @"\[target.Optimization]\[conf.ProjectFileName]";
            conf.TargetPath       = "[project.SharpmakeCsPath]" + Globals.PathToBin;
            conf.TargetFileName   = @"[conf.ProjectFileName]_[target.Optimization]";

            conf.Options.Add(Options.XCode.Compiler.Exceptions.Enable);
        }
Exemplo n.º 4
0
 public void ConfigureMake(Configuration conf, CrossTarget target)
 {
     conf.SolutionFileName = "[solution.Name]_[target.Platform]_[target.Toolset]";
 }