From 50f5686d918dbd519f21c0c611bea3f28daf4657 Mon Sep 17 00:00:00 2001
From: lbsa71
Date: Sat, 24 Mar 2007 08:06:41 +0000
Subject: * Added separate exe project * Prebuild exe is now built in /bin dir
---
OpenSim/OpenSim.csproj | 120 ++++++++++++++++++++++++++++++++++++++++++++++
OpenSim/OpenSim.exe.build | 47 ++++++++++++++++++
OpenSim/RegionServer.cs | 75 +++++++++++++++++++++++++++++
3 files changed, 242 insertions(+)
create mode 100644 OpenSim/OpenSim.csproj
create mode 100644 OpenSim/OpenSim.exe.build
create mode 100644 OpenSim/RegionServer.cs
(limited to 'OpenSim')
diff --git a/OpenSim/OpenSim.csproj b/OpenSim/OpenSim.csproj
new file mode 100644
index 0000000..12ead94
--- /dev/null
+++ b/OpenSim/OpenSim.csproj
@@ -0,0 +1,120 @@
+
+
+ Local
+ 8.0.50727
+ 2.0
+ {778D384D-088A-42DF-A683-2244BD9530DE}
+ Debug
+ AnyCPU
+
+
+
+ OpenSim
+ JScript
+ Grid
+ IE50
+ false
+ Exe
+
+ OpenSim
+
+
+
+
+
+ False
+ 285212672
+ False
+
+
+ TRACE;DEBUG
+
+ True
+ 4096
+ False
+ ..\bin\
+ False
+ False
+ False
+ 4
+
+
+
+ False
+ 285212672
+ False
+
+
+ TRACE
+
+ False
+ 4096
+ True
+ ..\bin\
+ False
+ False
+ False
+ 4
+
+
+
+
+ System.dll
+ False
+
+
+ System.Xml.dll
+ False
+
+
+ ..\bin\libsecondlife.dll
+ False
+
+
+ ..\bin\Axiom.MathLib.dll
+ False
+
+
+ ..\bin\Db4objects.Db4o.dll
+ False
+
+
+
+
+ OpenSim.Framework
+ {71848571-2BC0-41DC-A69C-28B6DDB8C8CE}
+ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ False
+
+
+ OpenSim.Framework.Console
+ {CE124F22-69FC-4499-AE68-1B877C5898C4}
+ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ False
+
+
+ OpenSim.Physics.Manager
+ {79C8C9A7-EF80-426D-B815-AC88E7998DFE}
+ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ False
+
+
+ OpenSim.RegionServer
+ {457CE564-0922-4F15-846F-147E5BE62D67}
+ {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ False
+
+
+
+
+ Code
+
+
+
+
+
+
+
+
+
+
diff --git a/OpenSim/OpenSim.exe.build b/OpenSim/OpenSim.exe.build
new file mode 100644
index 0000000..7d69d90
--- /dev/null
+++ b/OpenSim/OpenSim.exe.build
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/OpenSim/RegionServer.cs b/OpenSim/RegionServer.cs
new file mode 100644
index 0000000..6fabe3f
--- /dev/null
+++ b/OpenSim/RegionServer.cs
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using OpenSim.UserServer;
+
+namespace OpenSim
+{
+ public class RegionServer : OpenSimMain
+ {
+ [STAThread]
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("OpenSim " + VersionInfo.Version + "\n");
+ Console.WriteLine("Starting...\n");
+ OpenSim.Framework.Console.MainConsole.Instance = new SimConsole(OpenSim.Framework.Console.ConsoleBase.ConsoleType.Local, "", 0);
+
+ //OpenSimRoot.instance = new OpenSimRoot();
+ OpenSimMain sim = new OpenSimMain();
+ OpenSimRoot.Instance.Application = sim;
+
+ sim.sandbox = false;
+ sim.loginserver = false;
+ sim._physicsEngine = "basicphysics";
+
+ for (int i = 0; i < args.Length; i++)
+ {
+ if (args[i] == "-sandbox")
+ {
+ sim.sandbox = true;
+ OpenSimRoot.Instance.Sandbox = true;
+ }
+
+ if (args[i] == "-loginserver")
+ {
+ sim.loginserver = true;
+ }
+ if (args[i] == "-realphysx")
+ {
+ sim._physicsEngine = "RealPhysX";
+ OpenSim.world.Avatar.PhysicsEngineFlying = true;
+ }
+ }
+
+
+ OpenSimRoot.Instance.GridServers = new Grid();
+ if (sim.sandbox)
+ {
+ OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Local.dll";
+ OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Local.dll";
+ OpenSimRoot.Instance.GridServers.Initialise();
+ OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Sandbox mode");
+ }
+ else
+ {
+ OpenSimRoot.Instance.GridServers.AssetDll = "OpenSim.GridInterfaces.Remote.dll";
+ OpenSimRoot.Instance.GridServers.GridDll = "OpenSim.GridInterfaces.Remote.dll";
+ OpenSimRoot.Instance.GridServers.Initialise();
+ OpenSim.Framework.Console.MainConsole.Instance.WriteLine("Starting in Grid mode");
+ }
+
+ if (sim.loginserver && sim.sandbox)
+ {
+ LoginServer loginServer = new LoginServer(OpenSimRoot.Instance.GridServers.GridServer);
+ loginServer.Startup();
+ }
+
+ OpenSimRoot.Instance.StartUp();
+
+ while (true)
+ {
+ OpenSim.Framework.Console.MainConsole.Instance.MainConsolePrompt();
+ }
+ }
+ }
+}
--
cgit v1.1