DefaultOutputPath now matches OpenTK source tree

By default, generated bindings are placed in the source tree of
OpenTK. This can be overriden via a commandline switch.
This commit is contained in:
Stefanos A. 2013-11-03 12:13:35 +01:00
parent 0548806487
commit c83d6ad530
4 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,8 @@ namespace Bind.ES
public ES2Generator(Settings settings, string dirName)
: base(settings, dirName)
{
Settings.DefaultOutputPath = Path.Combine(
Settings.DefaultOutputPath, "../ES20");
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES20";
Settings.DefaultImportsFile = "ES20Core.cs";
Settings.DefaultDelegatesFile = "ES20Delegates.cs";

View file

@ -15,8 +15,10 @@ namespace Bind.ES
public ES3Generator(Settings settings, string dirName)
: base(settings, dirName)
{
Settings.DefaultOutputPath = Path.Combine(
Settings.DefaultOutputPath, "../ES30");
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES30";
Settings.DefaultImportsFile = "ES30Core.cs";
Settings.DefaultImportsFile = "ES3Core.cs";
Settings.DefaultDelegatesFile = "ES30Delegates.cs";
Settings.DefaultEnumsFile = "ES30Enums.cs";
Settings.DefaultWrappersFile = "ES30.cs";

View file

@ -15,6 +15,8 @@ namespace Bind.ES
public ESGenerator(Settings settings, string dirName)
: base(settings, dirName)
{
Settings.DefaultOutputPath = Path.Combine(
Settings.DefaultOutputPath, "../ES11");
Settings.DefaultOutputNamespace = "OpenTK.Graphics.ES11";
Settings.DefaultImportsFile = "ES11Core.cs";
Settings.DefaultDelegatesFile = "ES11Delegates.cs";

View file

@ -38,6 +38,8 @@ namespace Bind.GL2
public GL4Generator(Settings settings, string dirname)
: base(settings, dirname)
{
Settings.DefaultOutputPath = Path.Combine(
Settings.DefaultOutputPath, "../OpenGL4");
Settings.DefaultOutputNamespace = "OpenTK.Graphics.OpenGL4";
Settings.DefaultImportsFile = "GL4Core.cs";
Settings.DefaultDelegatesFile = "GL4Delegates.cs";