[Bind] Do not generate DllImports

These break dynamic loading of OpenGL ES and bloat OpenTK.dll with
duplicated strings. The new extension loading mechanism is now fast
enough to make DllImports unnecessary.
This commit is contained in:
thefiddler 2014-04-26 14:22:37 +02:00
parent b732e377c9
commit bd339523ab
5 changed files with 9 additions and 9 deletions

View file

@ -32,7 +32,7 @@ namespace Bind.ES
// overloads using the "All" enum in addition to strongly-typed enums.
// This can be disabled by passing "-o:-keep_untyped_enums" as a cmdline parameter.
Settings.DefaultCompatibility |= Settings.Legacy.KeepUntypedEnums;
Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
//Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
}
}
}

View file

@ -32,7 +32,7 @@ namespace Bind.ES
// overloads using the "All" enum in addition to strongly-typed enums.
// This can be disabled by passing "-o:-keep_untyped_enums" as a cmdline parameter.
Settings.DefaultCompatibility |= Settings.Legacy.KeepUntypedEnums;
Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
//Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
}
}
}

View file

@ -35,7 +35,7 @@ namespace Bind.ES
// overloads using the "All" enum in addition to strongly-typed enums.
// This can be disabled by passing "-o:-keep_untyped_enums" as a cmdline parameter.
Settings.DefaultCompatibility |= Settings.Legacy.KeepUntypedEnums;
Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
//Settings.DefaultCompatibility |= Settings.Legacy.UseDllImports;
}
}
}

View file

@ -1,4 +1,4 @@
#region License
#region License
//
// GL2Generator.cs
//
@ -56,8 +56,8 @@ namespace Bind.GL2
Settings.DefaultDocPath = Path.Combine(
Settings.DefaultDocPath, "GL");
Settings.DefaultCompatibility |=
Settings.Legacy.UseDllImports | Settings.Legacy.UseWindowsCompatibleGL;
//Settings.DefaultCompatibility |=
// Settings.Legacy.UseDllImports | Settings.Legacy.UseWindowsCompatibleGL;
}
}
}

View file

@ -1,4 +1,4 @@
#region License
#region License
//
// The Open Toolkit Library License
//
@ -50,8 +50,8 @@ namespace Bind.GL2
Profile = "glcore";
Settings.DefaultCompatibility |=
Settings.Legacy.UseDllImports | Settings.Legacy.UseWindowsCompatibleGL;
//Settings.DefaultCompatibility |=
// Settings.Legacy.UseDllImports | Settings.Legacy.UseWindowsCompatibleGL;
}
}
}