2010-12-04 21:51:40 +00:00
|
|
|
|
#region License
|
|
|
|
|
//
|
|
|
|
|
// The Open Toolkit Library License
|
|
|
|
|
//
|
|
|
|
|
// Copyright (c) 2006 - 2010 the Open Toolkit library.
|
|
|
|
|
//
|
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
|
// of this software and associated documentation files (the "Software"), to deal
|
|
|
|
|
// in the Software without restriction, including without limitation the rights to
|
|
|
|
|
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
|
|
|
// the Software, and to permit persons to whom the Software is furnished to do
|
|
|
|
|
// so, subject to the following conditions:
|
|
|
|
|
//
|
|
|
|
|
// The above copyright notice and this permission notice shall be included in all
|
|
|
|
|
// copies or substantial portions of the Software.
|
|
|
|
|
//
|
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
|
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
//
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Bind.Structures;
|
|
|
|
|
|
|
|
|
|
namespace Bind
|
|
|
|
|
{
|
|
|
|
|
using Delegate = Bind.Structures.Delegate;
|
|
|
|
|
using Enum = Bind.Structures.Enum;
|
|
|
|
|
using Type = Bind.Structures.Type;
|
|
|
|
|
|
|
|
|
|
sealed class CppSpecWriter : ISpecWriter
|
|
|
|
|
{
|
|
|
|
|
readonly char[] numbers = "0123456789".ToCharArray();
|
2010-12-05 09:51:36 +00:00
|
|
|
|
const string AllowDeprecated = "ALLOW_DEPRECATED_GL";
|
2010-12-04 21:51:40 +00:00
|
|
|
|
|
|
|
|
|
#region WriteBindings
|
|
|
|
|
|
|
|
|
|
public void WriteBindings(IBind generator)
|
|
|
|
|
{
|
|
|
|
|
WriteBindings(generator.Delegates, generator.Wrappers, generator.Enums);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void WriteBindings(DelegateCollection delegates, FunctionCollection wrappers, EnumCollection enums)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Writing bindings to {0}", Settings.OutputPath);
|
|
|
|
|
if (!Directory.Exists(Settings.OutputPath))
|
|
|
|
|
Directory.CreateDirectory(Settings.OutputPath);
|
|
|
|
|
|
2010-12-05 11:32:49 +00:00
|
|
|
|
// Hack: Fix 3dfx extension category so it doesn't start with a digit
|
|
|
|
|
if (wrappers.ContainsKey("3dfx"))
|
|
|
|
|
{
|
|
|
|
|
var three_dee_fx = wrappers["3dfx"];
|
|
|
|
|
wrappers.Remove("3dfx");
|
|
|
|
|
wrappers.Add("T3dfx", three_dee_fx);
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-05 02:20:18 +00:00
|
|
|
|
Settings.DefaultOutputNamespace = "OpenTK";
|
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
string temp_header_file = Path.GetTempFileName();
|
|
|
|
|
string temp_cpp_file = Path.GetTempFileName();
|
2010-12-04 21:51:40 +00:00
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
using (BindStreamWriter sw = new BindStreamWriter(temp_header_file))
|
2010-12-04 21:51:40 +00:00
|
|
|
|
{
|
|
|
|
|
WriteLicense(sw);
|
|
|
|
|
|
2010-12-05 11:52:51 +00:00
|
|
|
|
sw.WriteLine("#include \"gldef++.h\"");
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.WriteLine("namespace {0}", Settings.OutputNamespace);
|
2010-12-04 21:51:40 +00:00
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
|
|
|
|
|
WriteEnums(sw, enums);
|
2010-12-05 10:47:06 +00:00
|
|
|
|
|
|
|
|
|
sw.WriteLine("struct {0}", Settings.GLClass);
|
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
WriteDelegates(sw, delegates);
|
2010-12-04 21:51:40 +00:00
|
|
|
|
WriteWrappers(sw, wrappers, Type.CSTypes);
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("};");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("}");
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
using (BindStreamWriter sw = new BindStreamWriter(temp_cpp_file))
|
|
|
|
|
{
|
|
|
|
|
WriteLicense(sw);
|
|
|
|
|
|
2010-12-05 11:52:51 +00:00
|
|
|
|
sw.WriteLine("#include \"gldef++.cpp\"");
|
2010-12-05 09:08:57 +00:00
|
|
|
|
sw.WriteLine("namespace {0}", Settings.OutputNamespace);
|
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
|
|
|
|
|
WriteLoader(sw, wrappers, Type.CSTypes);
|
|
|
|
|
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string output_header = Path.Combine(Settings.OutputPath, "gl++.h");
|
|
|
|
|
string output_cpp = Path.Combine(Settings.OutputPath, "gl++.cpp");
|
|
|
|
|
if (File.Exists(output_header))
|
|
|
|
|
File.Delete(output_header);
|
|
|
|
|
File.Move(temp_header_file, output_header);
|
|
|
|
|
if (File.Exists(output_cpp))
|
|
|
|
|
File.Delete(output_cpp);
|
|
|
|
|
File.Move(temp_cpp_file, output_cpp);
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
#region WriteLoader
|
2010-12-04 21:51:40 +00:00
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
void WriteLoader(BindStreamWriter sw, FunctionCollection wrappers,
|
|
|
|
|
Dictionary<string, string> CSTypes)
|
2010-12-04 21:51:40 +00:00
|
|
|
|
{
|
2010-12-05 09:51:36 +00:00
|
|
|
|
// Used to avoid multiple declarations of the same function
|
|
|
|
|
Delegate last_delegate = null;
|
|
|
|
|
|
|
|
|
|
// Declare all functions
|
|
|
|
|
foreach (var ext in wrappers.Keys)
|
|
|
|
|
{
|
|
|
|
|
var forward_compatible = wrappers[ext].Where(f => !f.Deprecated);
|
|
|
|
|
var deprecated = wrappers[ext].Where(f => f.Deprecated);
|
|
|
|
|
|
|
|
|
|
last_delegate = null;
|
|
|
|
|
for (var current = forward_compatible; current != deprecated; current = deprecated)
|
|
|
|
|
{
|
|
|
|
|
foreach (var function in current)
|
|
|
|
|
{
|
|
|
|
|
if (function.WrappedDelegate == last_delegate)
|
|
|
|
|
continue;
|
|
|
|
|
last_delegate = function.WrappedDelegate;
|
|
|
|
|
|
|
|
|
|
if (ext == "Core")
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("{0}::p{1} {0}::{1} = 0;", Settings.GLClass, function.Name);
|
2010-12-05 09:51:36 +00:00
|
|
|
|
else
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("{0}::{1}::p{2} {0}::{1}::{2} = 0;", Settings.GLClass,
|
|
|
|
|
function.Extension, function.Name);
|
2010-12-05 09:51:36 +00:00
|
|
|
|
}
|
|
|
|
|
sw.WriteLine("#ifdef {0}", AllowDeprecated);
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.Indent();
|
2010-12-05 09:51:36 +00:00
|
|
|
|
}
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.Unindent();
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("#endif");
|
|
|
|
|
}
|
|
|
|
|
sw.WriteLine();
|
|
|
|
|
|
|
|
|
|
// Add Init() methods
|
2010-12-05 09:08:57 +00:00
|
|
|
|
foreach (var ext in wrappers.Keys)
|
2010-12-04 21:51:40 +00:00
|
|
|
|
{
|
2010-12-05 09:08:57 +00:00
|
|
|
|
if (ext == "Core")
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("{0}::Init()", Settings.GLClass);
|
2010-12-05 09:08:57 +00:00
|
|
|
|
else
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("{0}::{1}::Init()", Settings.GLClass, ext);
|
2010-12-05 09:08:57 +00:00
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
|
2010-12-05 09:51:36 +00:00
|
|
|
|
var forward_compatible = wrappers[ext].Where(f => !f.Deprecated);
|
|
|
|
|
var deprecated = wrappers[ext].Where(f => f.Deprecated);
|
|
|
|
|
|
|
|
|
|
for (var current = forward_compatible; current != deprecated; current = deprecated)
|
2010-12-05 09:08:57 +00:00
|
|
|
|
{
|
2010-12-05 09:51:36 +00:00
|
|
|
|
last_delegate = null;
|
|
|
|
|
foreach (var function in wrappers[ext])
|
|
|
|
|
{
|
|
|
|
|
if (function.WrappedDelegate == last_delegate)
|
|
|
|
|
continue;
|
|
|
|
|
last_delegate = function.WrappedDelegate;
|
|
|
|
|
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("{0} = (p{0})GetAddress(\"gl{0}\");",
|
|
|
|
|
function.WrappedDelegate.Name);
|
2010-12-05 09:51:36 +00:00
|
|
|
|
}
|
|
|
|
|
sw.WriteLine("#ifdef {0}", AllowDeprecated);
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.Indent();
|
2010-12-05 09:08:57 +00:00
|
|
|
|
}
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.Unindent();
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("#endif");
|
2010-12-05 09:08:57 +00:00
|
|
|
|
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("}");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2010-12-05 09:08:57 +00:00
|
|
|
|
#region WriteDelegates
|
|
|
|
|
|
|
|
|
|
public void WriteDelegates(BindStreamWriter sw, DelegateCollection delegates)
|
|
|
|
|
{
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("private:");
|
|
|
|
|
|
|
|
|
|
// Avoid multiple definitions of the same function
|
|
|
|
|
Delegate last_delegate = null;
|
|
|
|
|
foreach (var d in delegates)
|
|
|
|
|
{
|
|
|
|
|
WriteDelegate(sw, d.Value, ref last_delegate);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void WriteDelegate(BindStreamWriter sw, Delegate d, ref Delegate last_delegate)
|
|
|
|
|
{
|
|
|
|
|
// Avoid multiple definitions of the same function
|
|
|
|
|
if (d != last_delegate)
|
|
|
|
|
{
|
|
|
|
|
last_delegate = d;
|
|
|
|
|
sw.WriteLine("typedef {0} (*p{1}){2};", d.ReturnType, d.Name, d.Parameters);
|
|
|
|
|
sw.WriteLine("static p{0} {0};", d.Name);
|
|
|
|
|
}
|
2010-12-05 09:08:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2010-12-04 21:51:40 +00:00
|
|
|
|
#region WriteImports
|
|
|
|
|
|
|
|
|
|
public void WriteImports(BindStreamWriter sw, DelegateCollection delegates)
|
|
|
|
|
{
|
2010-12-05 09:08:57 +00:00
|
|
|
|
throw new NotImplementedException();
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region WriteWrappers
|
|
|
|
|
|
2010-12-05 09:51:36 +00:00
|
|
|
|
public void WriteWrappers(BindStreamWriter sw, FunctionCollection wrappers,
|
|
|
|
|
Dictionary<string, string> CSTypes)
|
2010-12-04 21:51:40 +00:00
|
|
|
|
{
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("public:");
|
2010-12-05 02:20:18 +00:00
|
|
|
|
|
2010-12-04 21:51:40 +00:00
|
|
|
|
foreach (string extension in wrappers.Keys)
|
|
|
|
|
{
|
|
|
|
|
if (extension != "Core")
|
|
|
|
|
{
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.WriteLine("struct {0}", extension);
|
2010-12-04 21:51:40 +00:00
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
}
|
|
|
|
|
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("static void Init();");
|
|
|
|
|
|
2010-12-05 08:48:44 +00:00
|
|
|
|
// Avoid multiple definitions of the same function
|
2010-12-05 02:20:18 +00:00
|
|
|
|
Delegate last_delegate = null;
|
2010-12-05 08:48:44 +00:00
|
|
|
|
|
|
|
|
|
// Write forward-compatible functions
|
2010-12-05 10:47:06 +00:00
|
|
|
|
var forward_compatible = wrappers[extension].Where(f => !f.Deprecated);
|
|
|
|
|
var deprecated = wrappers[extension].Where(f => f.Deprecated);
|
2010-12-05 08:48:44 +00:00
|
|
|
|
|
2010-12-05 10:47:06 +00:00
|
|
|
|
for (var current = forward_compatible; current != deprecated; current = deprecated)
|
2010-12-04 21:51:40 +00:00
|
|
|
|
{
|
2010-12-05 10:47:06 +00:00
|
|
|
|
last_delegate = null;
|
|
|
|
|
foreach (var f in current)
|
|
|
|
|
{
|
2010-12-05 11:52:51 +00:00
|
|
|
|
if (last_delegate == f.WrappedDelegate)
|
|
|
|
|
continue;
|
|
|
|
|
last_delegate = f.WrappedDelegate;
|
|
|
|
|
|
|
|
|
|
sw.WriteLine("static inline {0} {1}{2}", f.WrappedDelegate.Parameters,
|
|
|
|
|
f.TrimmedName, f.WrappedDelegate.Parameters);
|
2010-12-05 10:47:06 +00:00
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
|
|
|
|
//WriteMethodBody(sw, f);
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("}");
|
|
|
|
|
}
|
|
|
|
|
sw.WriteLine("#ifdef {0}", AllowDeprecated);
|
|
|
|
|
sw.Indent();
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
2010-12-05 08:48:44 +00:00
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("#endif");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
|
|
|
|
|
if (extension != "Core")
|
|
|
|
|
{
|
|
|
|
|
sw.Unindent();
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.WriteLine("};");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2010-12-05 02:20:18 +00:00
|
|
|
|
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("};");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static DocProcessor processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile));
|
|
|
|
|
static Dictionary<string, string> docfiles;
|
|
|
|
|
void WriteDocumentation(BindStreamWriter sw, Function f)
|
|
|
|
|
{
|
|
|
|
|
if (docfiles == null)
|
|
|
|
|
{
|
|
|
|
|
docfiles = new Dictionary<string, string>();
|
|
|
|
|
foreach (string file in Directory.GetFiles(Settings.DocPath))
|
|
|
|
|
{
|
|
|
|
|
docfiles.Add(Path.GetFileName(file), file);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string docfile = null;
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
docfile = Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml";
|
|
|
|
|
if (!docfiles.ContainsKey(docfile))
|
|
|
|
|
docfile = Settings.FunctionPrefix + f.TrimmedName + ".xml";
|
|
|
|
|
if (!docfiles.ContainsKey(docfile))
|
|
|
|
|
docfile = Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml";
|
|
|
|
|
|
|
|
|
|
string doc = null;
|
|
|
|
|
if (docfiles.ContainsKey(docfile))
|
|
|
|
|
{
|
|
|
|
|
doc = processor.ProcessFile(docfiles[docfile]);
|
|
|
|
|
}
|
|
|
|
|
if (doc == null)
|
|
|
|
|
{
|
|
|
|
|
doc = "/// <summary></summary>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int summary_start = doc.IndexOf("<summary>") + "<summary>".Length;
|
|
|
|
|
string warning = "[deprecated: v{0}]";
|
|
|
|
|
string category = "[requires: {0}]";
|
|
|
|
|
if (f.Deprecated)
|
|
|
|
|
{
|
|
|
|
|
warning = String.Format(warning, f.DeprecatedVersion);
|
|
|
|
|
doc = doc.Insert(summary_start, warning);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (f.Extension != "Core" && !String.IsNullOrEmpty(f.Category))
|
|
|
|
|
{
|
|
|
|
|
category = String.Format(category, f.Category);
|
|
|
|
|
doc = doc.Insert(summary_start, category);
|
|
|
|
|
}
|
|
|
|
|
else if (!String.IsNullOrEmpty(f.Version))
|
|
|
|
|
{
|
|
|
|
|
if (f.Category.StartsWith("VERSION"))
|
|
|
|
|
category = String.Format(category, "v" + f.Version);
|
|
|
|
|
else
|
|
|
|
|
category = String.Format(category, "v" + f.Version + " and " + f.Category);
|
|
|
|
|
doc = doc.Insert(summary_start, category);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sw.WriteLine(doc);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("[Warning] Error processing file {0}: {1}", docfile, e.ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region WriteTypes
|
|
|
|
|
|
|
|
|
|
public void WriteTypes(BindStreamWriter sw, Dictionary<string, string> CSTypes)
|
|
|
|
|
{
|
|
|
|
|
sw.WriteLine();
|
|
|
|
|
foreach (string s in CSTypes.Keys)
|
|
|
|
|
{
|
|
|
|
|
sw.WriteLine("typedef {0} {1};", s, CSTypes[s]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region WriteEnums
|
|
|
|
|
|
|
|
|
|
public void WriteEnums(BindStreamWriter sw, EnumCollection enums)
|
|
|
|
|
{
|
|
|
|
|
foreach (Enum @enum in enums.Values)
|
|
|
|
|
{
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("struct {0} : Enumeration<{0}>", @enum.Name);
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.WriteLine("{");
|
|
|
|
|
sw.Indent();
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("enum");
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.WriteLine("{");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
sw.Indent();
|
|
|
|
|
foreach (var c in @enum.ConstantCollection.Values)
|
|
|
|
|
{
|
2010-12-05 09:51:36 +00:00
|
|
|
|
sw.WriteLine("{0},", c);
|
2010-12-04 21:51:40 +00:00
|
|
|
|
}
|
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("};");
|
2010-12-05 02:20:18 +00:00
|
|
|
|
sw.Unindent();
|
|
|
|
|
sw.WriteLine("};");
|
2010-12-04 21:51:40 +00:00
|
|
|
|
sw.WriteLine();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region WriteLicense
|
|
|
|
|
|
|
|
|
|
public void WriteLicense(BindStreamWriter sw)
|
|
|
|
|
{
|
|
|
|
|
sw.WriteLine(File.ReadAllText(Path.Combine(Settings.InputPath, Settings.LicenseFile)));
|
|
|
|
|
sw.WriteLine();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|