184 lines
5 KiB
C#
184 lines
5 KiB
C#
using JustDance.Tools.Extern;
|
|
using Sharpmake;
|
|
using System.IO;
|
|
|
|
namespace JustDance.Tools
|
|
{
|
|
#region CSharpDataWrapper
|
|
[Sharpmake.Generate]
|
|
class CSharpDataWrapper : LegacyToolsLibrary
|
|
{
|
|
public CSharpDataWrapper()
|
|
{
|
|
RootPath = @"[project.SharpmakeCsPath]\..\..\src\CSharpDataWrapper";
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
|
|
conf.RegisterWinForms();
|
|
conf.RegisterWpf();
|
|
conf.ReferencesByName.Add("System.ComponentModel.DataAnnotations");
|
|
conf.ReferencesByName.Add("System.Design");
|
|
Externs.RegisterLuaInterface(conf);
|
|
}
|
|
}
|
|
|
|
[Generate]
|
|
class CSharpDataWrapperSolution : LegacyToolsSingleProjectSolution<CSharpDataWrapper>
|
|
{
|
|
public CSharpDataWrapperSolution() { }
|
|
|
|
public override void ConfigureAll(Solution.Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.SolutionPath = string.Format(Path.Combine(Globals.BranchRoot, @"src\CSharpDataWrapper\[solution.Name]\"));
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region NetworkCommon
|
|
[Sharpmake.Generate]
|
|
class NetworkCommon : LegacyToolsLibrary
|
|
{
|
|
public NetworkCommon()
|
|
{
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterEngineWrapper(target);
|
|
conf.AddPublicDependency<PluginCommon>(target);
|
|
conf.RegisterWinForms();
|
|
}
|
|
}
|
|
|
|
[Sharpmake.Generate]
|
|
class NetworkCommonSolution : LegacyToolsSingleProjectSolution<NetworkCommon>
|
|
{
|
|
public NetworkCommonSolution()
|
|
{
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region PluginCommon
|
|
[Sharpmake.Generate]
|
|
class PluginCommon : LegacyToolsLibrary
|
|
{
|
|
public PluginCommon()
|
|
{
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterWinForms();
|
|
conf.AddPublicDependency<JD_Core>(target);
|
|
conf.ReferencesByNuGetPackage.Add(Externs.UbisoftCore);
|
|
conf.ReferencesByName.Add("System.Runtime.Serialization");
|
|
conf.ReferencesByName.Add("Microsoft.Office.Interop.Excel");
|
|
conf.ReferencesByPath.Add(Externs.DotNetZip);
|
|
}
|
|
}
|
|
|
|
[Sharpmake.Generate]
|
|
class PluginCommonSolution : LegacyToolsSingleProjectSolution<PluginCommon>
|
|
{
|
|
public PluginCommonSolution() { }
|
|
}
|
|
#endregion
|
|
|
|
#region VinceToolbox
|
|
[Sharpmake.Generate]
|
|
class VinceToolbox : LegacyToolsLibrary
|
|
{
|
|
public VinceToolbox() { }
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterWinForms();
|
|
conf.RegisterEngineWrapper(target);
|
|
conf.AddPublicDependency<PluginCommon>(target);
|
|
Externs.RegisterLuaInterface(conf);
|
|
conf.ReferencesByPath.Add(Externs.TargaImage);
|
|
}
|
|
}
|
|
|
|
[Sharpmake.Generate]
|
|
class VinceToolboxSolution : LegacyToolsSingleProjectSolution<VinceToolbox>
|
|
{
|
|
public VinceToolboxSolution() { }
|
|
}
|
|
#endregion
|
|
|
|
#region WinFormsUI
|
|
[Sharpmake.Generate]
|
|
class WinFormsUI : LegacyToolsLibrary
|
|
{
|
|
public WinFormsUI()
|
|
{
|
|
SourceRootPath = @"[project.RootPath]\BehaviorTreeTools\[project.Name]";
|
|
}
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterWinForms();
|
|
conf.ReferencesByName.Add("System.Design");
|
|
}
|
|
}
|
|
|
|
[Sharpmake.Generate]
|
|
class WinFormsUISolution : LegacyToolsSingleProjectSolution<WinFormsUI>
|
|
{
|
|
public WinFormsUISolution() { }
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region WwiseToolbox
|
|
[Sharpmake.Generate]
|
|
class WwiseToolbox : LegacyToolsLibrary
|
|
{
|
|
public WwiseToolbox() { }
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterWinForms();
|
|
conf.AddPublicDependency<VinceToolbox>(target);
|
|
}
|
|
}
|
|
|
|
[Sharpmake.Generate]
|
|
class WwiseToolboxSolution : LegacyToolsSingleProjectSolution<WwiseToolbox>
|
|
{
|
|
public WwiseToolboxSolution() { }
|
|
}
|
|
#endregion
|
|
|
|
#region TechnoControls
|
|
|
|
[Generate]
|
|
class TechnoControls : LegacyToolsLibrary
|
|
{
|
|
public TechnoControls() { }
|
|
|
|
public override void ConfigureAll(Configuration conf, Target target)
|
|
{
|
|
base.ConfigureAll(conf, target);
|
|
conf.RegisterWinForms();
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
}
|