Exemplo n.º 1
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\bin");

            if (target.Optimization == Sharpmake.Optimization.Debug)
            {
                conf.LibraryFiles.Add("gfx2dapp_d.lib");
                conf.LibraryFiles.Add("sdlgfx_d.lib");
                conf.LibraryFiles.Add("utils_d.lib");
            }
            else
            {
                conf.LibraryFiles.Add("gfx2dapp_r.lib");
                conf.LibraryFiles.Add("sdlgfx_r.lib");
                conf.LibraryFiles.Add("utils_r.lib");
            }

            conf.LibraryFiles.Add("SDL2.lib");
            conf.LibraryFiles.Add("SDL2_image.lib");
            conf.LibraryFiles.Add("SDL2_ttf.lib");
            conf.LibraryFiles.Add("SDL2main.lib");

            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\libfreetype-6.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\libjpeg-9.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\libpng16-16.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\libtiff-5.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\libwebp-7.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\SDL2.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\SDL2_image.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\SDL2_ttf.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\bin\zlib1.dll");
        }
Exemplo n.º 2
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddProject <Puma.Utils>(target);
            conf.AddProject <Puma.UtilsTests>(target);
        }
Exemplo n.º 3
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.IncludePaths.Add(@"\include");
            conf.AddPrivateDependency <Export.SDL>(target);
        }
Exemplo n.º 4
0
 public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
 {
     base.ConfigureAll(conf, target);
     conf.AddProject <Example.Projects.ExternApplication>(target);
     conf.AddProject <Example.Projects.ExternLib>(target);
     conf.AddProject <Example.Projects.ExternDll>(target);
 }
Exemplo n.º 5
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddPublicDependency <Puma.Nina>(target);

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);
        }
Exemplo n.º 6
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddProject <Puma.Nina>(target);
            conf.AddProject <Puma.GraphicsTest>(target);
            conf.AddProject <Puma.SDLTest>(target);
            conf.AddProject <Puma.InputTests>(target);
        }
Exemplo n.º 7
0
 public override void ConfigureAll(Sharpmake.Project.Configuration conf, Sharpmake.Target target)
 {
     base.ConfigureAll(conf, target);
     conf.AddPrivateDependency <MyLib>(target);
     conf.AddPrivateDependency <MyDll>(target);
     conf.AddPrivateDependency <Export.ExternLib>(target);
     conf.AddPrivateDependency <Export.ExternDll>(target);
     conf.AddPrivateDependency <ExternBinaries>(target);
 }
Exemplo n.º 8
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib\x64");

            conf.LibraryFiles.Add(@"SDL2.lib");
            conf.LibraryFiles.Add(@"SDL2main.lib");

            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\SDL2.dll");
        }
Exemplo n.º 9
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.IncludePrivatePaths.Add(@"\private");
            conf.IncludePaths.Add(@"\public");

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);
        }
Exemplo n.º 10
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddProject <Puma.PhysicsTests>(target);
            conf.AddProject <Puma.Leo>(target);
            conf.AddProject <Puma.Box2DTest>(target);
            conf.AddProject <Puma.UnitTests>(target);
        }
Exemplo n.º 11
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib\x64");

            conf.LibraryFiles.Add(@"SDL2_ttf.lib");

            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\SDL2_ttf.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\libfreetype-6.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\zlib1.dll");
        }
Exemplo n.º 12
0
        public virtual void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            m_compiledProject.ConfigureAll(conf, target);

            //Path were the project will be generated
            conf.ProjectPath = ProjectGenerationPath;

            //Path were the binaries will be generated on compilation
            conf.TargetPath = TargetOutputPath;
        }
Exemplo n.º 13
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddPublicDependency <Export.SDL>(target);
            conf.AddPublicDependency <Export.SDLgfx>(target);
            conf.AddPublicDependency <Export.SDLImage>(target);
            conf.AddPublicDependency <Export.SDLTtf>(target);

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);
        }
Exemplo n.º 14
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddPublicDependency <Puma.Utils>(target);

            conf.IncludePrivatePaths.Add(@"\private");
            conf.IncludePaths.Add(@"\public");

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);

            conf.SolutionFolder = "Extern";
        }
Exemplo n.º 15
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib\x64");

            conf.LibraryFiles.Add(@"SDL2_image.lib");

            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\SDL2_image.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\libjpeg-9.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\libpng16-16.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\libtiff-5.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\libwebp-7.dll");
            conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\x64\zlib1.dll");
        }
Exemplo n.º 16
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib");

            if (target.Optimization == Sharpmake.Optimization.Debug)
            {
                conf.LibraryFiles.Add(@"sdlgfx_d.lib");
            }
            else
            {
                conf.LibraryFiles.Add(@"sdlgfx_r.lib");
            }
        }
Exemplo n.º 17
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.SourceFilesBuildExcludeRegex.Add("glad");
            conf.SourceFilesBuildExcludeRegex.Add("glfw");
            conf.SourceFilesBuildExcludeRegex.Add("imgui");
            conf.SourceFilesBuildExcludeRegex.Add("sajson");
            conf.SourceFilesBuildExcludeRegex.Add("testbed");
            conf.SourceFilesBuildExcludeRegex.Add("unit-test");

            conf.IncludePrivatePaths.Add(SourceRootPath + @"\src");
            conf.IncludePaths.Add(SourceRootPath + @"\include");
        }
Exemplo n.º 18
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddPublicDependency <Puma.Leo>(target);
            conf.AddPublicDependency <Puma.GoogleTest>(target);

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);

            if (target.Optimization != Sharpmake.Optimization.Debug)
            {
                conf.IsExcludedFromBuild = true;
            }
        }
Exemplo n.º 19
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib\");

            if (Sharpmake.Optimization.Debug == target.Optimization)
            {
                conf.LibraryFiles.Add(@"precompileddll_d.lib");
                conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\precompileddll_d.dll");
            }
            else if (Sharpmake.Optimization.Release == target.Optimization)
            {
                conf.LibraryFiles.Add(@"precompileddll_r.lib");
                conf.TargetCopyFiles.Add(SourceRootPath + @"\lib\precompileddll_r.dll");
            }
        }
Exemplo n.º 20
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddPrivateDependency <Export.Box2D>(target);
            conf.AddPublicDependency <Puma.Utils>(target);

            conf.IncludePrivatePaths.Add(@"\private");
            conf.IncludePaths.Add(@"\public");
            conf.IncludePaths.Add(@"\shared");

            conf.PrecompHeader = @"precompiledphysics.h";
            conf.PrecompSource = @"precompiledphysics.cpp";

            conf.Options.Add(Sharpmake.Options.Vc.General.TreatWarningsAsErrors.Enable);
        }
Exemplo n.º 21
0
        public override void ConfigureLink(Configuration conf, Sharpmake.Target target)
        {
            conf.LibraryPaths.Add(SourceRootPath + @"\lib");

            if (target.Optimization == Sharpmake.Optimization.Debug)
            {
                conf.LibraryFiles.Add(@"gmock_maind.lib");
                conf.LibraryFiles.Add(@"gmockd.lib");
                conf.LibraryFiles.Add(@"gtest_maind.lib");
                conf.LibraryFiles.Add(@"gtestd.lib");
            }
            else
            {
                conf.LibraryFiles.Add(@"gmock_main.lib");
                conf.LibraryFiles.Add(@"gmock.lib");
                conf.LibraryFiles.Add(@"gtest_main.lib");
                conf.LibraryFiles.Add(@"gtest.lib");
            }
        }
Exemplo n.º 22
0
 public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
 {
     base.ConfigureAll(conf, target);
     conf.IncludePaths.Add(@"");
 }
Exemplo n.º 23
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.Output = Configuration.OutputType.Lib;
        }
Exemplo n.º 24
0
 public override void ConfigureIncludes(Configuration conf, Sharpmake.Target target)
 {
     conf.IncludePaths.Add(@"\include");
 }
Exemplo n.º 25
0
        public override void ConfigureAll(Configuration conf, Sharpmake.Target target)
        {
            base.ConfigureAll(conf, target);

            conf.AddProject <Extern.Box2D>(target);
        }
Exemplo n.º 26
0
 public virtual void ConfigureAll(Configuration conf, Sharpmake.Target target)
 {
     conf.SolutionPath = Puma.SharpmakeUtils.GetProjectsPath();
 }
Exemplo n.º 27
0
 public virtual void ConfigureAll(Configuration conf, Sharpmake.Target target)
 {
     ConfigureIncludes(conf, target);
     ConfigureLink(conf, target);
 }
Exemplo n.º 28
0
 public abstract void ConfigureLink(Configuration conf, Sharpmake.Target target);
Exemplo n.º 29
0
 public abstract void ConfigureIncludes(Configuration conf, Sharpmake.Target target);