mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-08 23:35:32 +00:00
Deleted old build system.
This commit is contained in:
parent
3ffe1a727c
commit
4f1e320894
|
@ -1,565 +0,0 @@
|
|||
#region --- License ---
|
||||
/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos
|
||||
* See license.txt for license info
|
||||
*/
|
||||
#endregion
|
||||
|
||||
#region --- Using Directives ---
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Reflection;
|
||||
using OpenTK.Build.Properties;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace OpenTK.Build
|
||||
{
|
||||
partial class Project
|
||||
{
|
||||
static readonly string RootPath = Directory.GetCurrentDirectory();
|
||||
static readonly string SourcePath = Path.Combine(RootPath, "Source");
|
||||
static readonly string DocPath = Path.Combine(RootPath, "Documentation");
|
||||
static readonly string InstallersPath = Path.Combine(RootPath, "Installers");
|
||||
|
||||
const string bindings = "Generator.Prebuild.xml";
|
||||
const string opentk = "OpenTK.Prebuild.xml";
|
||||
const string quickstart = "QuickStart.Prebuild.xml";
|
||||
const string DoxyFile = "Doxyfile";
|
||||
const string ReferenceFile = "Reference.pdf";
|
||||
|
||||
const string KeyFile = "OpenTK.snk"; // Do not change
|
||||
|
||||
const string Usage = @"Solution generator and build script for OpenTK.
|
||||
Usage: [mono] Build.exe [target]
|
||||
[mono]: use the Mono VM (otherwise use .Net)
|
||||
[target]: vs, vs9 - generate solutions
|
||||
all, lib, doc, nsis - build specified target
|
||||
clean, distclean - delete intermediate and/or final build results
|
||||
help - display extended usage information";
|
||||
|
||||
const string Help = Usage + @"
|
||||
|
||||
Available targets:
|
||||
vs: Create Visual Studio 2005 project files.
|
||||
vs9: Create Visual Studio 2008 project files.
|
||||
all: Build library, documentation and installer packages.
|
||||
lib: Build library.
|
||||
doc: Build html and pdf documentation.
|
||||
nsis: Build NSIS installer for Windows.
|
||||
clean: Delete intermediate files but leave final binaries and project
|
||||
files intact.
|
||||
distclean: Delete intermediate files, final binaries and project files.
|
||||
help: Display this help.
|
||||
|
||||
Assembly signing:
|
||||
To create strongly-named assemblies, place a keypair file named OpenTK.snk
|
||||
to the root folder (the same folder as Build.exe). If OpenTK.snk does not
|
||||
exist the resulting assemblies will not be signed.
|
||||
";
|
||||
|
||||
static readonly Assembly Prebuild = Assembly.Load(Resources.Prebuild);
|
||||
static readonly Version AssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
|
||||
static string ProductVersion { get { return AssemblyVersion.Major + "." + AssemblyVersion.Minor; } }
|
||||
static string ProductVersionRevision { get { return AssemblyVersion.Build.ToString(); } }
|
||||
static string ProductVersionExtra
|
||||
{
|
||||
get
|
||||
{
|
||||
// See discussion here: http://www.opentk.com/node/1420#comment-7554
|
||||
// 0-99 = alpha
|
||||
// 100-199 = beta
|
||||
// 200-299 = rc
|
||||
// 300 = final
|
||||
if (AssemblyVersion.Revision < 99)
|
||||
return "alpha" + AssemblyVersion.Revision % 100;
|
||||
else if (AssemblyVersion.Revision < 199)
|
||||
return "beta" + AssemblyVersion.Revision % 100;
|
||||
else if (AssemblyVersion.Revision < 299)
|
||||
return "rc" + AssemblyVersion.Revision % 100;
|
||||
else
|
||||
return "final";
|
||||
}
|
||||
}
|
||||
|
||||
enum BuildTarget
|
||||
{
|
||||
None = 0,
|
||||
All,
|
||||
VS2005,
|
||||
VS2008,
|
||||
Net20,
|
||||
// Net40, // Not implemented yet
|
||||
Clean,
|
||||
DistClean,
|
||||
Docs,
|
||||
Nsis,
|
||||
}
|
||||
|
||||
static void PrintUsage()
|
||||
{
|
||||
Console.WriteLine(Usage);
|
||||
}
|
||||
|
||||
static void PrintHelp()
|
||||
{
|
||||
Console.WriteLine(Help);
|
||||
}
|
||||
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
{
|
||||
PrintUsage();
|
||||
|
||||
args = new string[2] { String.Empty, String.Empty };
|
||||
Console.Write("Select build target: ");
|
||||
args[0] = Console.ReadLine();
|
||||
if (args[0] == String.Empty)
|
||||
args[0] = "vs";
|
||||
}
|
||||
|
||||
DateTime start = DateTime.Now;
|
||||
try
|
||||
{
|
||||
PrepareBuildFiles();
|
||||
PrepareEnvironment();
|
||||
|
||||
BuildTarget target = SelectTarget(args);
|
||||
if (target != BuildTarget.None)
|
||||
{
|
||||
Build(target);
|
||||
foreach (string file in Directory.GetFiles("Source", "*.csproj", SearchOption.AllDirectories))
|
||||
ApplyMonoDevelopWorkarounds(file);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
DateTime end = DateTime.Now;
|
||||
Console.WriteLine("Total build time: {0}", end - start);
|
||||
|
||||
// Wait until Prebuild releases the input files.
|
||||
System.Threading.Thread.Sleep(2000);
|
||||
DeleteBuildFiles();
|
||||
}
|
||||
|
||||
WaitForExit();
|
||||
}
|
||||
|
||||
private static void PrepareEnvironment()
|
||||
{
|
||||
// Workaroung for nant on x64 windows (safe for other platforms too, as this affects only the current process).
|
||||
Environment.SetEnvironmentVariable("CommonProgramFiles(x86)", String.Empty, EnvironmentVariableTarget.Process);
|
||||
Environment.SetEnvironmentVariable("ProgramFiles(x86)", String.Empty, EnvironmentVariableTarget.Process);
|
||||
}
|
||||
|
||||
private static void PrepareBuildFiles()
|
||||
{
|
||||
//string sign_assembly = CheckKeyFile(keyfile) ? "SIGN_ASSEMBLY" : "";
|
||||
string sign_assembly = CheckKeyFile(KeyFile) ? @"<KeyFile>" + KeyFile + @"</KeyFile>" : "";
|
||||
if (sign_assembly != "")
|
||||
DistributeKeyFile(KeyFile);
|
||||
|
||||
File.WriteAllText(bindings, String.Format(Resources.Generator, sign_assembly));
|
||||
File.WriteAllText(opentk, String.Format(Resources.OpenTK, sign_assembly));
|
||||
File.WriteAllText(quickstart, String.Format(Resources.QuickStart, sign_assembly));
|
||||
|
||||
string doxy = Regex.Replace(Resources.DoxyFile, @"(\{\}|\{\w+\})", "");
|
||||
File.WriteAllText(DoxyFile, String.Format(doxy, AssemblyVersion.ToString()));
|
||||
}
|
||||
|
||||
// Copies keyfile to the various source directories. This is necessary
|
||||
// as Visual Studio won't pick up the file otherwise.
|
||||
static void DistributeKeyFile(string keyfile)
|
||||
{
|
||||
foreach (string dir in Directory.GetDirectories("Source"))
|
||||
{
|
||||
File.Copy(keyfile, Path.Combine(dir, keyfile), true);
|
||||
}
|
||||
}
|
||||
|
||||
static BuildTarget SelectTarget(string[] args)
|
||||
{
|
||||
BuildTarget target = BuildTarget.None;
|
||||
|
||||
foreach (string s in args)
|
||||
{
|
||||
string arg = s.ToLower().Trim();
|
||||
switch (arg)
|
||||
{
|
||||
case "":
|
||||
break;
|
||||
|
||||
case "help":
|
||||
PrintHelp();
|
||||
break;
|
||||
|
||||
case "lib":
|
||||
case "lib20":
|
||||
target = BuildTarget.Net20;
|
||||
break;
|
||||
|
||||
//case "lib40":
|
||||
// target = BuildTarget.Net40;
|
||||
// break;
|
||||
|
||||
case "all":
|
||||
target = BuildTarget.All;
|
||||
break;
|
||||
|
||||
case "vs2005":
|
||||
case "vs8":
|
||||
case "vs":
|
||||
target = BuildTarget.VS2005;
|
||||
break;
|
||||
|
||||
case "vs2008":
|
||||
case "vs9":
|
||||
target = BuildTarget.VS2008;
|
||||
break;
|
||||
|
||||
case "doc":
|
||||
case "docs":
|
||||
target = BuildTarget.Docs;
|
||||
break;
|
||||
|
||||
case "ns":
|
||||
case "nsi":
|
||||
case "nsis":
|
||||
target = BuildTarget.Nsis;
|
||||
break;
|
||||
|
||||
case "clean":
|
||||
target = BuildTarget.Clean;
|
||||
break;
|
||||
|
||||
case "distclean":
|
||||
target = BuildTarget.DistClean;
|
||||
break;
|
||||
|
||||
default:
|
||||
Console.WriteLine("Unknown command: {0}", s);
|
||||
PrintUsage();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
static void Build(BuildTarget target)
|
||||
{
|
||||
switch (target)
|
||||
{
|
||||
case BuildTarget.VS2005:
|
||||
BuildVS2005();
|
||||
break;
|
||||
|
||||
case BuildTarget.VS2008:
|
||||
BuildVS2008();
|
||||
break;
|
||||
|
||||
case BuildTarget.All:
|
||||
BuildVS2005();
|
||||
BuildProject();
|
||||
BuildDocumentation();
|
||||
BuildVS2005(); // Ensure that QuickStart project contains the correct links.
|
||||
BuildNsis(ProductVersion, ProductVersionRevision, ProductVersionExtra);
|
||||
break;
|
||||
|
||||
case BuildTarget.Net20:
|
||||
BuildVS2005();
|
||||
BuildProject();
|
||||
break;
|
||||
|
||||
case BuildTarget.Docs:
|
||||
BuildDocumentation();
|
||||
break;
|
||||
|
||||
case BuildTarget.Nsis:
|
||||
BuildNsis(null, null, null);
|
||||
break;
|
||||
|
||||
case BuildTarget.Clean:
|
||||
Console.WriteLine("Cleaning intermediate object files.");
|
||||
ExecutePrebuild("/clean", "/yes", "/file", bindings);
|
||||
ExecutePrebuild("/clean", "/yes", "/file", opentk);
|
||||
ExecutePrebuild("/clean", "/yes", "/file", quickstart);
|
||||
DeleteDirectories(RootPath, "obj");
|
||||
DeleteFiles(SourcePath, KeyFile);
|
||||
CleanNsisFiles();
|
||||
break;
|
||||
|
||||
case BuildTarget.DistClean:
|
||||
Console.WriteLine("Cleaning intermediate and final object files.");
|
||||
ExecutePrebuild("/clean", "/yes", "/file", bindings);
|
||||
ExecutePrebuild("/clean", "/yes", "/file", opentk);
|
||||
ExecutePrebuild("/clean", "/yes", "/file", quickstart);
|
||||
DeleteDirectories(RootPath, "obj");
|
||||
DeleteDirectories(RootPath, "bin");
|
||||
DeleteDirectories(DocPath, "Source");
|
||||
DeleteFiles(DocPath, ReferenceFile);
|
||||
DeleteFiles(SourcePath, KeyFile);
|
||||
DistCleanNsisFiles();
|
||||
|
||||
string binaries_path = Path.Combine(RootPath, "Binaries");
|
||||
try
|
||||
{
|
||||
if (Directory.Exists(binaries_path))
|
||||
Directory.Delete(binaries_path, true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine("Failed to delete directory \"{0}\".", binaries_path);
|
||||
Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
Console.WriteLine("Unknown target: {0}", target);
|
||||
PrintUsage();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void BuildDocumentation()
|
||||
{
|
||||
Console.WriteLine("Generating reference documentation (this may take several minutes)...");
|
||||
Console.WriteLine("Generating html sources...");
|
||||
try { ExecuteCommand("doxygen", null, null); }
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Failed to run \"doxygen\".");
|
||||
Console.WriteLine("Please consult the documentation for more information.");
|
||||
}
|
||||
|
||||
string latex_path = Path.Combine(Path.Combine(DocPath, "Source"), "latex");
|
||||
Console.WriteLine("Compiling sources to pdf...");
|
||||
try
|
||||
{
|
||||
ExecuteCommand("pdflatex", latex_path, "-interaction=batchmode", "refman.tex");
|
||||
ExecuteCommand("makeindex", latex_path, "-q", "refman.idx");
|
||||
ExecuteCommand("pdflatex", latex_path, "-interaction=batchmode", "refman.tex");
|
||||
}
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Failed to run \"pdflatex\" or \"makeindex\".");
|
||||
Console.WriteLine("Please consult the documentation for more information");
|
||||
}
|
||||
File.Copy(Path.Combine(latex_path, "refman.pdf"),
|
||||
Path.Combine(DocPath, ReferenceFile), true);
|
||||
}
|
||||
|
||||
static void BuildVS2005()
|
||||
{
|
||||
Console.WriteLine("Creating VS2005 project files");
|
||||
ExecutePrebuild("/target", "vs2008", "/file", bindings);
|
||||
ExecutePrebuild("/target", "vs2005", "/file", opentk);
|
||||
ExecutePrebuild("/target", "vs2005", "/file", quickstart);
|
||||
PatchPrebuildOutput();
|
||||
}
|
||||
|
||||
static void BuildVS2008()
|
||||
{
|
||||
Console.WriteLine("Creating VS2008 project files");
|
||||
ExecutePrebuild("/target", "vs2008", "/file", bindings);
|
||||
ExecutePrebuild("/target", "vs2008", "/file", opentk);
|
||||
ExecutePrebuild("/target", "vs2008", "/file", quickstart);
|
||||
PatchPrebuildOutput();
|
||||
}
|
||||
|
||||
// Prebuild is fiendishly buggy. Patch a number of known issues
|
||||
// to ensure its output actually works.
|
||||
static void PatchPrebuildOutput()
|
||||
{
|
||||
// Patch 1: sln files contain paths to csproj in the form of
|
||||
// "../[current dir]/Source/". If we rename [current dir]
|
||||
// the generated solutions become invalid. Ugh!
|
||||
Console.WriteLine("Patching paths in prebuild output");
|
||||
foreach (string solution in Directory.GetFiles(RootPath, "*.sln", SearchOption.TopDirectoryOnly))
|
||||
{
|
||||
// We could use an XmlDocument for extra validation,
|
||||
// but it's not worth the extra effort. Let's just remove
|
||||
// the offending part ("../[current dir]") directly.
|
||||
string sln_data = File.ReadAllText(solution);
|
||||
string current_dir = RootPath.Substring(RootPath.LastIndexOf(Path.DirectorySeparatorChar) + 1);
|
||||
sln_data = sln_data.Replace(String.Format("..{0}{1}{0}", Path.DirectorySeparatorChar, current_dir), "");
|
||||
File.WriteAllText(solution, sln_data);
|
||||
}
|
||||
}
|
||||
|
||||
static void WaitForExit()
|
||||
{
|
||||
if (Debugger.IsAttached)
|
||||
{
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Press any key to continue...");
|
||||
Console.ReadKey(true);
|
||||
}
|
||||
}
|
||||
|
||||
static void DeleteBuildFiles()
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(bindings);
|
||||
File.Delete(opentk);
|
||||
File.Delete(quickstart);
|
||||
File.Delete(DoxyFile);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
Console.WriteLine("[Warning] Failed to delete prebuild files, error follows:");
|
||||
Console.WriteLine(e.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
static void ApplyMonoDevelopWorkarounds(string solution)
|
||||
{
|
||||
// Both workarounds cause problems in visual studio...
|
||||
//File.WriteAllText(solution, File.ReadAllText(solution)
|
||||
// .Replace("AssemblyOriginatorKeyFile", "AssemblyKeyFile"));
|
||||
// .Replace(@"..\", @"../"));
|
||||
}
|
||||
|
||||
static void DeleteDirectories(string root_path, string search)
|
||||
{
|
||||
Console.WriteLine("Deleting {0} directories", search);
|
||||
foreach (string m in Directory.GetDirectories(root_path, search, SearchOption.AllDirectories))
|
||||
{
|
||||
Directory.Delete(m, true);
|
||||
}
|
||||
}
|
||||
|
||||
static void DeleteFiles(string root_path, string search)
|
||||
{
|
||||
Console.WriteLine("Deleting {0} files", search);
|
||||
foreach (string m in Directory.GetFiles(root_path, search, SearchOption.AllDirectories))
|
||||
{
|
||||
File.Delete(m);
|
||||
}
|
||||
}
|
||||
|
||||
static void FindDirectories(string directory, string search, List<string> matches)
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (string d in Directory.GetDirectories(directory))
|
||||
{
|
||||
foreach (string f in Directory.GetDirectories(d, search))
|
||||
{
|
||||
matches.Add(f);
|
||||
}
|
||||
FindDirectories(d, search, matches);
|
||||
}
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Console.WriteLine(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
static void FindFiles(string directory, string search, List<string> matches)
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (string d in Directory.GetDirectories(directory))
|
||||
{
|
||||
foreach (string f in Directory.GetFiles(d, search))
|
||||
{
|
||||
matches.Add(f);
|
||||
}
|
||||
FindFiles(d, search, matches);
|
||||
}
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Console.WriteLine(e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
static void FileCopy(string srcdir, string destdir, Regex match)
|
||||
{
|
||||
//DirectoryInfo dir;
|
||||
//FileInfo[] files;
|
||||
//DirectoryInfo[] dirs;
|
||||
//string tmppath;
|
||||
|
||||
//determine if the destination directory exists, if not create it
|
||||
if (!Directory.Exists(destdir))
|
||||
Directory.CreateDirectory(destdir);
|
||||
|
||||
if (!Directory.Exists(srcdir))
|
||||
throw new ArgumentException("source dir doesn't exist -> " + srcdir);
|
||||
|
||||
string[] files = Directory.GetFiles(srcdir);
|
||||
foreach (string f in files)
|
||||
//if (Path.GetExtension(f).ToLower() == ext.ToLower())
|
||||
if (match.IsMatch(Path.GetExtension(f)))
|
||||
File.Copy(f, Path.Combine(destdir, Path.GetFileName(f)), true);
|
||||
|
||||
foreach (string dir in Directory.GetDirectories(srcdir))
|
||||
{
|
||||
string name = dir.Substring(dir.LastIndexOf(Path.DirectorySeparatorChar)+1);
|
||||
if (!name.StartsWith("."))
|
||||
FileCopy(dir, Path.Combine(destdir, name), match);
|
||||
}
|
||||
}
|
||||
|
||||
static void ExecutePrebuild(params string[] options)
|
||||
{
|
||||
Prebuild.EntryPoint.Invoke(null, new object[] { options });
|
||||
}
|
||||
|
||||
static void ExecuteCommand(string command, string workingDirectory, params string[] options)
|
||||
{
|
||||
ProcessStartInfo psi = new ProcessStartInfo(command);
|
||||
|
||||
if (options != null)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
foreach (string opt in options)
|
||||
{
|
||||
sb.Append(opt);
|
||||
sb.Append(" ");
|
||||
}
|
||||
psi.Arguments = sb.ToString();
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(workingDirectory))
|
||||
{
|
||||
psi.WorkingDirectory = workingDirectory;
|
||||
psi.UseShellExecute = false;
|
||||
}
|
||||
|
||||
Process p = Process.Start(psi);
|
||||
p.WaitForExit();
|
||||
}
|
||||
|
||||
static bool CheckKeyFile(string keyfile)
|
||||
{
|
||||
if (!File.Exists(keyfile))
|
||||
{
|
||||
//Console.WriteLine("Keyfile {0} not found. Generating temporary key pair.", keyfile);
|
||||
//Process keygen = Process.Start("sn", "-k " + keyfile);
|
||||
//keygen.WaitForExit();
|
||||
Console.WriteLine("Keyfile {0} not found. Assemblies will not be signed.", keyfile);
|
||||
Console.WriteLine();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Keyfile {0} found. Assemblies will be signed.", keyfile);
|
||||
Console.WriteLine();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,115 +0,0 @@
|
|||
#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.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace OpenTK.Build
|
||||
{
|
||||
partial class Project
|
||||
{
|
||||
static readonly string NsisPath = Path.Combine("Installers", "Nsis");
|
||||
|
||||
// Constructs NSIS installer.
|
||||
// Note 1: for this to work correctly, we need to construct VS projects,
|
||||
// compile them and build documentation first. This is not handled here.
|
||||
// Note 2: if version numbers are not specified, we ask the user explicitly.
|
||||
static void BuildNsis(string pversion, string prevision, string pextra)
|
||||
{
|
||||
if (!CheckNsisInstallation())
|
||||
return;
|
||||
|
||||
Console.WriteLine("IMPORTANT: for a correct NSIS installer, you need to create VS projects, compile them and build documentation first. Use \"Build.exe all\" to do all this automatically.");
|
||||
|
||||
if (String.IsNullOrEmpty(pversion) || String.IsNullOrEmpty(prevision) ||
|
||||
String.IsNullOrEmpty(pextra))
|
||||
RequestVersionInfo(out pversion, out prevision, out pextra);
|
||||
|
||||
string source_nsi = Path.Combine(NsisPath, "opentk.nsi");
|
||||
string actual_nsi = Path.Combine(NsisPath, "opentk-actual.nsi");
|
||||
File.WriteAllText(actual_nsi, File.ReadAllText(source_nsi)
|
||||
.Replace("{{version}}", pversion)
|
||||
.Replace("{{revision}}", prevision)
|
||||
.Replace("{{extra}}", pextra));
|
||||
|
||||
ExecuteCommand("makensis", NsisPath, Path.GetFullPath(actual_nsi));
|
||||
File.Delete(actual_nsi);
|
||||
}
|
||||
|
||||
static bool CheckNsisInstallation()
|
||||
{
|
||||
Console.WriteLine("Checking for NSIS installation.");
|
||||
try
|
||||
{
|
||||
ExecuteCommand("makensis", null, null);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine("Could not detect \"makensis\" command.");
|
||||
Console.WriteLine("Please install NSIS and ensure its installation folder exists in your path.");
|
||||
Console.WriteLine("Windows users: download from http://nsis.sourceforge.net");
|
||||
Console.WriteLine("Ubuntu/Debian users: type \"sudo apt-get install nsis\"");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Exact error message:");
|
||||
Console.WriteLine(e.ToString());
|
||||
return false;
|
||||
}
|
||||
Console.WriteLine("Working fine.");
|
||||
return true;
|
||||
}
|
||||
|
||||
static void RequestVersionInfo(out string pversion, out string prevision, out string pextra)
|
||||
{
|
||||
Console.WriteLine("Please specify the following information (press enter for defaults)");
|
||||
Console.Write("Product version ({0}): ", ProductVersion);
|
||||
pversion = Console.ReadLine();
|
||||
Console.Write("Product revision ({0}): ", ProductVersionRevision);
|
||||
prevision = Console.ReadLine();
|
||||
Console.Write("Product version extra ({0}): ", ProductVersionExtra);
|
||||
pextra = Console.ReadLine();
|
||||
|
||||
if (String.IsNullOrEmpty(pversion))
|
||||
pversion = ProductVersion;
|
||||
if (String.IsNullOrEmpty(prevision))
|
||||
prevision = ProductVersionRevision;
|
||||
if (String.IsNullOrEmpty(pextra))
|
||||
pextra = ProductVersionExtra;
|
||||
}
|
||||
|
||||
static void CleanNsisFiles()
|
||||
{
|
||||
DeleteFiles(Path.Combine("Installers", "Nsis"), "opentk-actual.nsi");
|
||||
}
|
||||
|
||||
static void DistCleanNsisFiles()
|
||||
{
|
||||
CleanNsisFiles();
|
||||
DeleteFiles(Path.Combine("Installers", "Nsis"), "*.exe");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,74 +0,0 @@
|
|||
#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.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.Build.BuildEngine;
|
||||
|
||||
namespace OpenTK.Build
|
||||
{
|
||||
partial class Project
|
||||
{
|
||||
static void BuildProject()
|
||||
{
|
||||
Engine engine = new Engine();
|
||||
engine.BinPath = RuntimeEnvironment.GetRuntimeDirectory();
|
||||
engine.RegisterLogger(new ConsoleLogger());
|
||||
engine.OnlyLogCriticalEvents = true;
|
||||
|
||||
string project_path = Path.Combine(RootPath, "OpenTK.sln");
|
||||
Microsoft.Build.BuildEngine.Project project = new Microsoft.Build.BuildEngine.Project(engine);
|
||||
|
||||
project.Load(project_path);
|
||||
project.GlobalProperties.SetProperty("Configuration", "Release");
|
||||
project.Build();
|
||||
|
||||
project.Load(project_path);
|
||||
project.GlobalProperties.SetProperty("Configuration", "Debug");
|
||||
project.Build();
|
||||
|
||||
// For some reason, xbuild doesn't copy xml docs to the output directory.
|
||||
// Let's do that by hand.
|
||||
CopyXMLDocs();
|
||||
}
|
||||
|
||||
static void CopyXMLDocs()
|
||||
{
|
||||
string binaries_path = Path.Combine(Path.Combine(RootPath, "Binaries"), "OpenTK");
|
||||
foreach (string file in Directory.GetFiles(SourcePath, "OpenTK*.xml", SearchOption.AllDirectories))
|
||||
{
|
||||
if (Path.GetFileName(file).Contains("Prebuild"))
|
||||
continue;
|
||||
|
||||
File.Copy(file, Path.Combine(Path.Combine(binaries_path, "Release"), Path.GetFileName(file)), true);
|
||||
File.Copy(file, Path.Combine(Path.Combine(binaries_path, "Debug"), Path.GetFileName(file)), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("OpenTK.Build")]
|
||||
[assembly: AssemblyDescription("Cross-platform build script for OpenTK")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("The Open Toolkit Library")]
|
||||
[assembly: AssemblyProduct("The Open Toolkit Library")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006-2010 the Open Toolkit Library")]
|
||||
[assembly: AssemblyTrademark("OpenTK")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3041e6aa-1f0c-47f0-81ad-b10fd7791103")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.201")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.201")]
|
||||
|
||||
#if SIGN_ASSEMBLY
|
||||
[assembly: AssemblyKeyFile(@"../../../OpenTK.snk")]
|
||||
#endif
|
192
Source/Build/Properties/Resources.Designer.cs
generated
192
Source/Build/Properties/Resources.Designer.cs
generated
|
@ -1,192 +0,0 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace OpenTK.Build.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OpenTK.Build.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to # Doxyfile 1.6.2
|
||||
///
|
||||
///# This file describes the settings to be used by the documentation system
|
||||
///# doxygen (www.doxygen.org) for a project
|
||||
///#
|
||||
///# All text after a hash (#) is considered a comment and will be ignored
|
||||
///# The format is:
|
||||
///# TAG = value [value, ...]
|
||||
///# For lists items can also be appended using:
|
||||
///# TAG += value [value, ...]
|
||||
///# Values that contain spaces should be placed between quotes (" ")
|
||||
///
|
||||
///#---------------------------------------------------------------------------
|
||||
///# Project related configurati [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string DoxyFile {
|
||||
get {
|
||||
return ResourceManager.GetString("DoxyFile", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
||||
///<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
///
|
||||
/// <Solution name="Generator">
|
||||
///
|
||||
/// <Configuration name="Debug">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
/// <OptimizeCode>false</OptimizeCode>
|
||||
/// <DebugInformation>true</DebugInformation>
|
||||
/// </Options>
|
||||
/// </Configuration>
|
||||
///
|
||||
/// <Configuration name="Release">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>TRACE;</CompilerDefines>
|
||||
/// <Optim [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string Generator {
|
||||
get {
|
||||
return ResourceManager.GetString("Generator", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
||||
///<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
///
|
||||
/// <Solution name="OpenTK">
|
||||
///
|
||||
/// <Configuration name="Debug">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
/// <OptimizeCode>false</OptimizeCode>
|
||||
/// <DebugInformation>true</DebugInformation>
|
||||
/// {0} <!-- KeyFile -->
|
||||
/// </Options>
|
||||
/// </Configuration>
|
||||
///
|
||||
/// <Configuration name="Release">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>TRACE;</Compi [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string OpenTK {
|
||||
get {
|
||||
return ResourceManager.GetString("OpenTK", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static byte[] Prebuild {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Prebuild", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to BSD License
|
||||
///Copyright (c)2004-2008
|
||||
///
|
||||
///See AUTHORS file for list of copyright holders
|
||||
///
|
||||
///Dave Hudson (jendave@yahoo.com),
|
||||
///Matthew Holmes (matthew@wildfiregames.com)
|
||||
///Dan Moorehead (dan05a@gmail.com)
|
||||
///Rob Loach (http://www.robloach.net)
|
||||
///C.J. Adams-Collier (cjac@colliertech.org)
|
||||
///
|
||||
///http://dnpb.sourceforge.net
|
||||
///All rights reserved.
|
||||
///
|
||||
///Redistribution and use in source and binary forms, with or without
|
||||
///modification, are permitted provided that the following conditions
|
||||
/// [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string Prebuild_License {
|
||||
get {
|
||||
return ResourceManager.GetString("Prebuild_License", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
||||
///<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
///
|
||||
/// <Solution name="QuickStart">
|
||||
///
|
||||
/// <Configuration name="Debug">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
/// <OptimizeCode>false</OptimizeCode>
|
||||
/// <DebugInformation>true</DebugInformation>
|
||||
/// </Options>
|
||||
/// </Configuration>
|
||||
///
|
||||
/// <Configuration name="Release">
|
||||
/// <Options>
|
||||
/// <CompilerDefines>TRACE;</CompilerDefines>
|
||||
/// <Opti [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
internal static string QuickStart {
|
||||
get {
|
||||
return ResourceManager.GetString("QuickStart", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,139 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="DoxyFile" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/DoxyFile.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1253</value>
|
||||
</data>
|
||||
<data name="Generator" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/Generator.Prebuild.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="OpenTK" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/OpenTK.Prebuild.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
<data name="Prebuild" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/Prebuild.exe;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Prebuild_License" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/Prebuild License.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
<data name="QuickStart" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>../Resources/QuickStart.Prebuild.xml;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
|
||||
</data>
|
||||
</root>
|
File diff suppressed because it is too large
Load diff
|
@ -1,84 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
|
||||
<Solution name="Generator">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Project name="Bind" path="Source/Bind" language="C#" type="Exe">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/Generator/Debug</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/Generator/Release</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Core"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.spec" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.tm" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.xml" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.xslt" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.txt" recurse="true" buildAction="None"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
<Project name="Convert" path="Source/Converter" language="C#" type="Exe">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/Generator/Debug</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/Generator/Release</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Xml"/>
|
||||
<Reference name="System.Core"/>
|
||||
<Reference name="System.Xml.Linq"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.h" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.spec" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.tm" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.xml" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.xslt" recurse="true" buildAction="None"/>
|
||||
<Match path="." pattern="*.txt" recurse="true" buildAction="None"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
|
||||
</Prebuild>
|
|
@ -1,198 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
|
||||
<Solution name="OpenTK">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
{0} <!-- KeyFile -->
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
{0} <!-- KeyFile -->
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Files>
|
||||
<File>Documentation/Todo.txt</File>
|
||||
<File>Documentation/Release.txt</File>
|
||||
<File>Documentation/Changelog.txt</File>
|
||||
<File>Documentation/License.txt</File>
|
||||
<File>Build/Instructions.txt</File>
|
||||
<File>Build/Prebuild.xml</File>
|
||||
</Files>
|
||||
|
||||
<Project name="OpenTK" path="Source/OpenTK" language="C#" type="Library">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Debug</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Release</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.resx" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match path="." pattern="OpenTK.dll.config" buildAction="None" copyToOutput="Always"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
<Project name="OpenTK.Build" path="Source/Build" language="C#" type="Exe" assemblyName="Build">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Debug</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Release</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="System"/>
|
||||
<Reference name="Microsoft.Build.Engine"/>
|
||||
<Reference name="Microsoft.Build.Framework"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.resx" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match path="Resources" pattern="*.*" buildAction="Content"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
<Project name="OpenTK.Compatibility" path="Source/Compatibility" language="C#" type="Library">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Debug</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.Compatibility.xml</XmlDocFile>
|
||||
<SuppressWarnings>1591</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Release</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.Compatibility.xml</XmlDocFile>
|
||||
<SuppressWarnings>1591</SuppressWarnings>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="OpenTK"/>
|
||||
<Reference name="OpenTK.GLControl"/>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.resx" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match path="." pattern="OpenTK.Compatibility.dll.config" buildAction="None" copyToOutput="Always"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
<Project name="OpenTK.Examples" path="Source/Examples" language="C#" type="WinExe" startupObject="Examples.Program" assemblyName="Examples" icon="Resources/App.ico">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Debug</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Release</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="OpenTK" localCopy="true"/>
|
||||
<Reference name="OpenTK.GLControl" localCopy="true"/>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="." pattern="*.rtf" recurse="true" buildAction="EmbeddedResource">
|
||||
<Exclude name="obj"/>
|
||||
</Match>
|
||||
<Match path="." pattern="*.resx" recurse="true" buildAction="EmbeddedResource"/>
|
||||
<Match path="Data" pattern="^.*\.(bmp|png|jpg|txt|glsl|wav|ogg|dds|ico)$" useRegex="true" recurse="true" buildAction="None" copyToOutput="Always"/>
|
||||
<Match path="Resources" pattern="^.*\.(bmp|png|jpg|txt|glsl|wav|ogg|dds|ico)$" useRegex="true" recurse="true" buildAction="None"/>
|
||||
<Match path="../OpenTK" pattern="OpenTK.dll.config" buildAction="None" copyToOutput="Always"/>
|
||||
<Match path="../OpenTK" pattern="OpenTK.Compatibility.dll.config" buildAction="None" copyToOutput="Always"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
<Project name="OpenTK.GLControl" path="Source/GLControl" language="C#" type="Library">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Debug</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.GLControl.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/OpenTK/Release</OutputPath>
|
||||
<AllowUnsafe>true</AllowUnsafe>
|
||||
<XmlDocFile>OpenTK.GLControl.xml</XmlDocFile>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="OpenTK"/>
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="System.Windows.Forms"/>
|
||||
<Reference name="System.Data"/>
|
||||
<Reference name="System.Xml"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
|
||||
</Prebuild>
|
|
@ -1,65 +0,0 @@
|
|||
BSD License
|
||||
Copyright (c)2004-2008
|
||||
|
||||
See AUTHORS file for list of copyright holders
|
||||
|
||||
Dave Hudson (jendave@yahoo.com),
|
||||
Matthew Holmes (matthew@wildfiregames.com)
|
||||
Dan Moorehead (dan05a@gmail.com)
|
||||
Rob Loach (http://www.robloach.net)
|
||||
C.J. Adams-Collier (cjac@colliertech.org)
|
||||
|
||||
http://dnpb.sourceforge.net
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. The names of the authors may not be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
---
|
||||
|
||||
Portions of src/Core/Targets/AutotoolsTarget.cs
|
||||
// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
// 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.
|
Binary file not shown.
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Prebuild xmlns="http://dnpb.sourceforge.net/schemas/prebuild-1.7.xsd">
|
||||
|
||||
<Solution name="QuickStart">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<CompilerDefines>DEBUG;TRACE;</CompilerDefines>
|
||||
<OptimizeCode>false</OptimizeCode>
|
||||
<DebugInformation>true</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<CompilerDefines>TRACE;</CompilerDefines>
|
||||
<OptimizeCode>true</OptimizeCode>
|
||||
<DebugInformation>false</DebugInformation>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Project name="QuickStart" path="Source/QuickStart" language="C#" type="WinExe">
|
||||
|
||||
<Configuration name="Debug">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/QuickStart/Debug</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Configuration name="Release">
|
||||
<Options>
|
||||
<OutputPath>../../Binaries/QuickStart/Release</OutputPath>
|
||||
</Options>
|
||||
</Configuration>
|
||||
|
||||
<Reference name="System"/>
|
||||
<Reference name="System.Drawing"/>
|
||||
<Reference name="OpenTK" localCopy="true"/>
|
||||
|
||||
<Files>
|
||||
<Match path="." pattern="*.cs" recurse="true"/>
|
||||
<Match path="../../Binaries/OpenTK/Release" pattern="OpenTK.dll" buildAction="None"/>
|
||||
<Match path="../../Binaries/OpenTK/Release" pattern="OpenTK.dll.config" buildAction="None" copyToOutput="Always"/>
|
||||
</Files>
|
||||
|
||||
</Project>
|
||||
|
||||
</Solution>
|
||||
|
||||
</Prebuild>
|
Loading…
Reference in a new issue