49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using Sharpmake;
|
|
|
|
namespace JustDance.Engine
|
|
{
|
|
[Generate]
|
|
internal class BuildProbe : BaseCppProject
|
|
{
|
|
public BuildProbe()
|
|
{
|
|
ClearTargets();
|
|
AddTargets(new BaseCppTarget(Platform.win32, DevEnv.vs2017, Optimization.Debug | Optimization.Release, Sharpmake.OutputType.Lib));
|
|
|
|
RootPath = SourcePath + @"tools\BuildProbe";
|
|
OutputType = Configuration.OutputType.Exe;
|
|
Name = "BuildProbe";
|
|
DeployProject = true;
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, BaseCppTarget target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.If(target.Platform.IsWindows()).TargetFileName = Name;
|
|
|
|
conf.Options.Add(Options.Vc.Linker.SubSystem.Console);
|
|
conf.Options.Add(Options.Vc.Linker.UseLibraryDependencyInputs.Enable);
|
|
|
|
conf.Defines.Add("_CONSOLE");
|
|
conf.IgnoreLibrary("LIBCMT.lib", "LIBCMTd.lib");
|
|
conf.If(Optimization.Debug).IgnoreLibrary("msvcrt.lib");
|
|
}
|
|
}
|
|
|
|
[Generate]
|
|
internal class SimpleMainSolution : BaseCppSolution
|
|
{
|
|
public SimpleMainSolution()
|
|
{
|
|
Name = "BuildProbe";
|
|
ClearTargets();
|
|
AddTargets(new BaseCppTarget(Platform.win32, DevEnv.vs2017, Optimization.Debug | Optimization.Release, Sharpmake.OutputType.Lib));
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, BaseCppTarget target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.AddProject<BuildProbe>(target);
|
|
}
|
|
}
|
|
}
|