mirror of https://github.com/opensim/opensim.git
changes so mono.data.sqlite use dllmap
This commit is contained in:
parent
a133a0c7ac
commit
4565281d41
|
@ -81,8 +81,7 @@ namespace OpenSim.Data.SQLite
|
|||
/// <param name="dbconnect">connect string</param>
|
||||
override public void Initialise(string dbconnect)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAssetData).Assembly);
|
||||
|
||||
if (dbconnect.Length == 0)
|
||||
{
|
||||
|
|
|
@ -65,8 +65,7 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
if (!m_initialized)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteAuthenticationData).Assembly);
|
||||
|
||||
m_Connection = new SqliteConnection(connectionString);
|
||||
m_Connection.Open();
|
||||
|
|
|
@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
public void Initialise(string connectionString)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteEstateStore).Assembly);
|
||||
|
||||
m_connectionString = connectionString;
|
||||
|
||||
|
|
|
@ -48,8 +48,7 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
protected SQLiteFramework(string connectionString)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteFramework).Assembly);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -113,8 +113,7 @@ namespace OpenSim.Data.SQLite
|
|||
{
|
||||
try
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteSimulationData).Assembly);
|
||||
|
||||
m_connectionString = connectionString;
|
||||
|
||||
|
|
|
@ -69,8 +69,7 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
public void Initialise(string connectionString)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteUserProfilesData).Assembly);
|
||||
|
||||
m_connectionString = connectionString;
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@ namespace OpenSim.Data.SQLite
|
|||
|
||||
public SQLiteXInventoryData(string conn, string realm)
|
||||
{
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteXInventoryData).Assembly);
|
||||
|
||||
m_Folders = new SqliteFolderHandler(
|
||||
conn, "inventoryfolders", "XInventoryStore");
|
||||
|
|
|
@ -91,8 +91,7 @@ namespace OpenSim.Region.UserStatistics
|
|||
if (!enabled)
|
||||
return;
|
||||
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
DllmapConfigHelper.RegisterAssembly(typeof(WebStatsModule).Assembly);
|
||||
|
||||
//IConfig startupConfig = config.Configs["Startup"];
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<configuration>
|
||||
<dllmap os="osx" dll="sqlite3" target="lib64/libsqlite3.dylib" />
|
||||
<dllmap os="!windows,osx" cpu="x86-64,ia64" wordsize="64" dll="sqlite3" target="lib64/libsqlite3_64.so" />
|
||||
<dllmap os="!windows,osx" cpu="x86" wordsize="32" dll="sqlite3" target="lib32/libsqlite3_32.so" />
|
||||
<dllmap os="windows" cpu="x86-64" dll="sqlite3" target="lib64/sqlite3.dll" />
|
||||
<dllmap os="windows" cpu="x86" dll="sqlite3" target="lib32/sqlite3.dll" />
|
||||
<dllmap os="osx" cpu="x86,x86-64" dll="sqlite3" target="lib64/libsqlite3.dylib" />
|
||||
<dllmap os="!windows,osx" cpu="x86-64" dll="sqlite3" target="lib64/libsqlite3_64.so" />
|
||||
<dllmap os="!windows,osx" cpu="x86" dll="sqlite3" target="lib32/libsqlite3_32.so" />
|
||||
</configuration>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<configuration>
|
||||
<dllmap os="windows" cpu="x86-64" dll="sqlite3" target="lib64/sqlite3.dll" />
|
||||
<dllmap os="windows" cpu="x86" dll="sqlite3" target="lib32/sqlite3.dll" />
|
||||
<dllmap os="osx" cpu="x86,x86-64" dll="sqlite3" target="lib64/libsqlite3.dylib" />
|
||||
<dllmap os="!windows,osx" cpu="x86-64" dll="sqlite3" target="lib64/libsqlite3_64.so" />
|
||||
<dllmap os="!windows,osx" cpu="x86" dll="sqlite3" target="lib32/libsqlite3_32.so" />
|
||||
</configuration>
|
Loading…
Reference in New Issue